summaryrefslogtreecommitdiff
path: root/gsearchtool/src/gsearchtool-support.c
diff options
context:
space:
mode:
authormonsta <[email protected]>2016-01-21 17:25:45 +0300
committermonsta <[email protected]>2016-01-21 17:31:06 +0300
commite9d08e8c975af48e8d730ca2dd97521efc5fbdf5 (patch)
treeb612ec1b1266386a4c1fbc803a1cbf28b731948c /gsearchtool/src/gsearchtool-support.c
parent31c6e251a91b52dbba6c9176dd50e37540afbcfb (diff)
downloadmate-utils-e9d08e8c975af48e8d730ca2dd97521efc5fbdf5.tar.bz2
mate-utils-e9d08e8c975af48e8d730ca2dd97521efc5fbdf5.tar.xz
[GTK+3] gsearchtool: fix deprecated usage of Gtk{H,V}Box, GtkHButtonBox
Diffstat (limited to 'gsearchtool/src/gsearchtool-support.c')
-rw-r--r--gsearchtool/src/gsearchtool-support.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/gsearchtool/src/gsearchtool-support.c b/gsearchtool/src/gsearchtool-support.c
index aa823da1..2d0b36c8 100644
--- a/gsearchtool/src/gsearchtool-support.c
+++ b/gsearchtool/src/gsearchtool-support.c
@@ -1128,7 +1128,11 @@ gsearchtool_button_new_with_stock_icon (const gchar * string,
label = gtk_label_new_with_mnemonic (string);
gtk_label_set_mnemonic_widget (GTK_LABEL (label), GTK_WIDGET (button));
image = gtk_image_new_from_stock (stock_id, GTK_ICON_SIZE_BUTTON);
+#if GTK_CHECK_VERSION (3, 0, 0)
+ hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 2);
+#else
hbox = gtk_hbox_new (FALSE, 2);
+#endif
align = gtk_alignment_new (0.5, 0.5, 0.0, 0.0);
gtk_box_pack_start (GTK_BOX (hbox), image, FALSE, FALSE, 0);
gtk_box_pack_end (GTK_BOX (hbox), label, FALSE, FALSE, 0);