summaryrefslogtreecommitdiffstats
path: root/src/interface.cpp
diff options
context:
space:
mode:
authorAlex Valavanis <valavanisalex@gmail.com>2012-04-10 00:25:07 +0000
committerAlex Valavanis <valavanisalex@gmail.com>2012-04-10 00:25:07 +0000
commitcd8cae5bf430285e5dcef81e9b46a43d8f91131b (patch)
treedf6b945ab108f750f2bdcc66efb9b41174c460c1 /src/interface.cpp
parentadd GSEAL_ENABLE flag, ready to be activated (diff)
downloadinkscape-cd8cae5bf430285e5dcef81e9b46a43d8f91131b.tar.gz
inkscape-cd8cae5bf430285e5dcef81e9b46a43d8f91131b.zip
Replace remaining gtk_hbox_new usage
(bzr r11204)
Diffstat (limited to '')
-rw-r--r--src/interface.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/interface.cpp b/src/interface.cpp
index 5d030c397..afef8a08d 100644
--- a/src/interface.cpp
+++ b/src/interface.cpp
@@ -486,7 +486,12 @@ static GtkWidget *sp_ui_menu_append_item_from_verb(GtkMenu *menu, Inkscape::Verb
shortcut = sp_shortcut_get_primary(verb);
if (shortcut!=GDK_VoidSymbol) {
gchar* c = sp_shortcut_get_label(shortcut);
+#if GTK_CHECK_VERSION(3,0,0)
+ GtkWidget *const hb = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 16);
+ gtk_box_set_homogeneous(GTK_BOX(hb), FALSE);
+#else
GtkWidget *const hb = gtk_hbox_new(FALSE, 16);
+#endif
GtkWidget *const name_lbl = gtk_label_new("");
gtk_label_set_markup_with_mnemonic(GTK_LABEL(name_lbl), action->name);
gtk_misc_set_alignment(reinterpret_cast<GtkMisc *>(name_lbl), 0.0, 0.5);
@@ -670,7 +675,12 @@ sp_ui_menu_append_check_item_from_verb(GtkMenu *menu, Inkscape::UI::View::View *
if (verb && shortcut!=GDK_VoidSymbol) {
gchar* c = sp_shortcut_get_label(shortcut);
+#if GTK_CHECK_VERSION(3,0,0)
+ GtkWidget *hb = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 16);
+ gtk_box_set_homogeneous(GTK_BOX(hb), FALSE);
+#else
GtkWidget *hb = gtk_hbox_new(FALSE, 16);
+#endif
{
GtkWidget *l = gtk_label_new_with_mnemonic(action ? action->name : label);