summaryrefslogtreecommitdiff
path: root/mate-dictionary/libgdict/gdict-source-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-source-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-source-chooser.c')
-rw-r--r--mate-dictionary/libgdict/gdict-source-chooser.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/mate-dictionary/libgdict/gdict-source-chooser.c b/mate-dictionary/libgdict/gdict-source-chooser.c
index 32379d47..4990ae2f 100644
--- a/mate-dictionary/libgdict/gdict-source-chooser.c
+++ b/mate-dictionary/libgdict/gdict-source-chooser.c
@@ -96,7 +96,7 @@ enum
static guint source_chooser_signals[LAST_SIGNAL] = { 0, };
-G_DEFINE_TYPE (GdictSourceChooser, gdict_source_chooser, GTK_TYPE_VBOX);
+G_DEFINE_TYPE (GdictSourceChooser, gdict_source_chooser, GTK_TYPE_BOX);
static void
gdict_source_chooser_finalize (GObject *gobject)
@@ -287,7 +287,11 @@ gdict_source_chooser_constructor (GType gtype,
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, 6);
+#else
hbox = gtk_hbox_new (FALSE, 6);
+#endif
priv->buttons_box = hbox;
priv->refresh_button = gtk_button_new ();
@@ -400,6 +404,7 @@ gdict_source_chooser_init (GdictSourceChooser *chooser)
{
GdictSourceChooserPrivate *priv;
+ gtk_orientable_set_orientation (GTK_ORIENTABLE (chooser), GTK_ORIENTATION_VERTICAL);
chooser->priv = priv = GDICT_SOURCE_CHOOSER_GET_PRIVATE (chooser);
priv->store = gtk_list_store_new (SOURCE_N_COLUMNS,