summaryrefslogtreecommitdiff
path: root/src/wx/table_dialog.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/wx/table_dialog.cc')
-rw-r--r--src/wx/table_dialog.cc15
1 files changed, 14 insertions, 1 deletions
diff --git a/src/wx/table_dialog.cc b/src/wx/table_dialog.cc
index 3c5d9d3d5..3f8d10fe1 100644
--- a/src/wx/table_dialog.cc
+++ b/src/wx/table_dialog.cc
@@ -50,9 +50,22 @@ TableDialog::layout ()
}
void
+#ifdef DCPOMATIC_OSX
TableDialog::add (wxString text, bool label)
+#else
+TableDialog::add (wxString text, bool)
+#endif
{
- add_label_to_sizer (_table, this, text, label);
+ int flags = wxALIGN_CENTER_VERTICAL | wxLEFT | wxRIGHT;
+#ifdef __WXOSX__
+ if (label) {
+ flags |= wxALIGN_RIGHT;
+ t += wxT (":");
+ }
+#endif
+ wxStaticText* m = new wxStaticText (this, wxID_ANY, wxT (""));
+ m->SetLabelMarkup (text);
+ _table->Add (m, 0, flags, 6);
}
void