diff options
author | monsta <[email protected]> | 2016-01-22 11:39:41 +0300 |
---|---|---|
committer | monsta <[email protected]> | 2016-01-22 11:53:21 +0300 |
commit | 386f747d82bdd2607896a1c80dff5dfaaec1aa23 (patch) | |
tree | 47b7679a5bdcd98a2c7c1ebbc97a3cf47738a581 /mate-dictionary/src/gdict-applet.c | |
parent | e5a2a7363348f8db0a581a5b9c3c8872e82c4312 (diff) | |
download | mate-utils-386f747d82bdd2607896a1c80dff5dfaaec1aa23.tar.bz2 mate-utils-386f747d82bdd2607896a1c80dff5dfaaec1aa23.tar.xz |
[GTK+3] dictionary: fix some deprecations
Diffstat (limited to 'mate-dictionary/src/gdict-applet.c')
-rw-r--r-- | mate-dictionary/src/gdict-applet.c | 6 |
1 files changed, 5 insertions, 1 deletions
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); |