From 543c421aede7cf64d9b5096d47c2d257c96e6863 Mon Sep 17 00:00:00 2001 From: Alex Valavanis Date: Thu, 9 Feb 2012 11:32:53 +0000 Subject: Backward compat fix for Gtkmm 2.20 Fixed bugs: - https://launchpad.net/bugs/928520 (bzr r10956) --- src/dialogs/export.cpp | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'src/dialogs/export.cpp') diff --git a/src/dialogs/export.cpp b/src/dialogs/export.cpp index 499c720a9..759745cbf 100644 --- a/src/dialogs/export.cpp +++ b/src/dialogs/export.cpp @@ -272,7 +272,11 @@ sp_export_dialog_area_box (GtkWidget * dlg) { Gtk::VBox* vb = new Gtk::VBox(false, 3); +#if WITH_GTKMM_2_22 Gtk::Label* lbl = new Gtk::Label(_("Export area"), Gtk::ALIGN_START); +#else + Gtk::Label* lbl = new Gtk::Label(_("Export area"), Gtk::ALIGN_LEFT); +#endif lbl->set_use_markup(true); vb->pack_start(*lbl); @@ -470,7 +474,11 @@ sp_export_dialog (void) Gtk::VBox *size_box = new Gtk::VBox(false, 3); size_box->set_border_width(3); +#if WITH_GTKMM_2_22 Gtk::Label* lbl = new Gtk::Label(_("Bitmap size"), Gtk::ALIGN_START); +#else + Gtk::Label* lbl = new Gtk::Label(_("Bitmap size"), Gtk::ALIGN_LEFT); +#endif lbl->set_use_markup(true); size_box->pack_start(*lbl, false, false, 0); const int rows = 2; @@ -519,7 +527,11 @@ sp_export_dialog (void) file_box->set_border_width(3); // true = has mnemonic - Gtk::Label *flabel = new Gtk::Label(_("_Filename"), Gtk::ALIGN_START, Gtk::ALIGN_CENTER, true); +#if WITH_GTKMM_2_22 + Gtk::Label *flabel = new Gtk::Label(_("_Filename"), Gtk::ALIGN_START, Gtk::ALIGN_CENTER, true); +#else + Gtk::Label *flabel = new Gtk::Label(_("_Filename"), Gtk::ALIGN_LEFT, Gtk::ALIGN_CENTER, true); +#endif flabel->set_use_markup(true); file_box->pack_start(*flabel, false, false, 0); -- cgit v1.2.3