From cd8cae5bf430285e5dcef81e9b46a43d8f91131b Mon Sep 17 00:00:00 2001 From: Alex Valavanis Date: Tue, 10 Apr 2012 01:25:07 +0100 Subject: Replace remaining gtk_hbox_new usage (bzr r11204) --- src/interface.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/interface.cpp') 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(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); -- cgit v1.2.3