summaryrefslogtreecommitdiff
path: root/mate-dictionary/libgdict/gdict-strategy-chooser.c
diff options
context:
space:
mode:
authormonsta <[email protected]>2016-01-22 15:10:28 +0300
committermonsta <[email protected]>2016-01-22 15:10:28 +0300
commit3967123299f476612b6d546b0b31c9293b3d5f26 (patch)
treed7d0e771cdbd38702cfebf0aa37a7f28826a7b30 /mate-dictionary/libgdict/gdict-strategy-chooser.c
parent61fc4065c4cdcb49aeab3a38a9da95a043260f50 (diff)
downloadmate-utils-3967123299f476612b6d546b0b31c9293b3d5f26.tar.bz2
mate-utils-3967123299f476612b6d546b0b31c9293b3d5f26.tar.xz
[GTK+3] dictionary: (almost) fix deprecated usage of Gtk{H,V}Box
Diffstat (limited to 'mate-dictionary/libgdict/gdict-strategy-chooser.c')
-rw-r--r--mate-dictionary/libgdict/gdict-strategy-chooser.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/mate-dictionary/libgdict/gdict-strategy-chooser.c b/mate-dictionary/libgdict/gdict-strategy-chooser.c
index 98467a77..d78ef1b4 100644
--- a/mate-dictionary/libgdict/gdict-strategy-chooser.c
+++ b/mate-dictionary/libgdict/gdict-strategy-chooser.c
@@ -108,7 +108,7 @@ static guint db_chooser_signals[LAST_SIGNAL] = { 0 };
G_DEFINE_TYPE (GdictStrategyChooser,
gdict_strategy_chooser,
- GTK_TYPE_VBOX);
+ GTK_TYPE_BOX);
static void
@@ -354,7 +354,11 @@ gdict_strategy_chooser_constructor (GType type,
gtk_container_add (GTK_CONTAINER (sw), priv->treeview);
gtk_widget_show (priv->treeview);
+#if GTK_CHECK_VERSION (3, 0, 0)
+ hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0);
+#else
hbox = gtk_hbox_new (FALSE, 0);
+#endif
priv->refresh_button = gtk_button_new ();
gtk_button_set_image (GTK_BUTTON (priv->refresh_button),
@@ -441,6 +445,7 @@ gdict_strategy_chooser_init (GdictStrategyChooser *chooser)
{
GdictStrategyChooserPrivate *priv;
+ gtk_orientable_set_orientation (GTK_ORIENTABLE (chooser), GTK_ORIENTATION_VERTICAL);
chooser->priv = priv = GDICT_STRATEGY_CHOOSER_GET_PRIVATE (chooser);
priv->results = -1;