summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWolfgang Ulbrich <[email protected]>2016-01-19 01:57:04 +0100
committerWolfgang Ulbrich <[email protected]>2016-01-19 01:57:04 +0100
commitaded26ee41b319149994e1ca9ca717e51b086f64 (patch)
tree8f8b2c2450f97f044a26dab37fef6b1aef58833a
parentd6f6175563e204a6450ce60dadd90280dcb807f2 (diff)
downloadcaja-aded26ee41b319149994e1ca9ca717e51b086f64.tar.bz2
caja-aded26ee41b319149994e1ca9ca717e51b086f64.tar.xz
GTK3 mime-application-chooser: don't use deprecated gtk_hbutton_box_new
-rw-r--r--libcaja-private/caja-mime-application-chooser.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libcaja-private/caja-mime-application-chooser.c b/libcaja-private/caja-mime-application-chooser.c
index e6103618..547a4685 100644
--- a/libcaja-private/caja-mime-application-chooser.c
+++ b/libcaja-private/caja-mime-application-chooser.c
@@ -418,7 +418,11 @@ caja_mime_application_chooser_init (CajaMimeApplicationChooser *chooser)
gtk_container_add (GTK_CONTAINER (scrolled),
chooser->details->treeview);
+#if GTK_CHECK_VERSION(3, 0, 0)
+ box = gtk_button_box_new (GTK_ORIENTATION_HORIZONTAL);
+#else
box = gtk_hbutton_box_new ();
+#endif
gtk_box_set_spacing (GTK_BOX (box), 6);
gtk_button_box_set_layout (GTK_BUTTON_BOX (box), GTK_BUTTONBOX_END);
gtk_box_pack_start (GTK_BOX (chooser), box, FALSE, FALSE, 6);