From 386f747d82bdd2607896a1c80dff5dfaaec1aa23 Mon Sep 17 00:00:00 2001 From: monsta Date: Fri, 22 Jan 2016 11:39:41 +0300 Subject: [GTK+3] dictionary: fix some deprecations --- mate-dictionary/src/gdict-applet.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'mate-dictionary/src/gdict-applet.c') diff --git a/mate-dictionary/src/gdict-applet.c b/mate-dictionary/src/gdict-applet.c index dc082da2..3e89c272 100644 --- a/mate-dictionary/src/gdict-applet.c +++ b/mate-dictionary/src/gdict-applet.c @@ -347,8 +347,12 @@ gdict_applet_build_window (GdictApplet *applet) gtk_widget_show (priv->defbox); gtk_widget_set_can_focus (priv->defbox, TRUE); gtk_widget_set_can_default (priv->defbox, TRUE); - + +#if GTK_CHECK_VERSION (3, 0, 0) + bbox = gtk_button_box_new (GTK_ORIENTATION_HORIZONTAL); +#else bbox = gtk_hbutton_box_new (); +#endif gtk_button_box_set_layout (GTK_BUTTON_BOX (bbox), GTK_BUTTONBOX_END); gtk_box_set_spacing (GTK_BOX (bbox), 6); gtk_box_pack_end (GTK_BOX (vbox), bbox, FALSE, FALSE, 0); -- cgit v1.2.1