summaryrefslogtreecommitdiff
path: root/src/wx/table_dialog.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2016-02-18 17:42:58 +0000
committerCarl Hetherington <cth@carlh.net>2016-02-18 17:42:58 +0000
commitd8a19dca28268e3ac92f117d00c1064c0b06515c (patch)
treec3a9d9d6b25689c828578300c46361444bb72c1b /src/wx/table_dialog.cc
parent1b81ba7c24e7f117d1960021d7e28c8f0147009f (diff)
Various improvements to the content properties dialogue (including #791).
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