diff options
author | monsta <[email protected]> | 2016-01-22 15:10:28 +0300 |
---|---|---|
committer | monsta <[email protected]> | 2016-01-22 15:10:28 +0300 |
commit | 3967123299f476612b6d546b0b31c9293b3d5f26 (patch) | |
tree | d7d0e771cdbd38702cfebf0aa37a7f28826a7b30 /mate-dictionary/libgdict/gdict-database-chooser.c | |
parent | 61fc4065c4cdcb49aeab3a38a9da95a043260f50 (diff) | |
download | mate-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-database-chooser.c')
-rw-r--r-- | mate-dictionary/libgdict/gdict-database-chooser.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/mate-dictionary/libgdict/gdict-database-chooser.c b/mate-dictionary/libgdict/gdict-database-chooser.c index aac4e41c..2a4eb73f 100644 --- a/mate-dictionary/libgdict/gdict-database-chooser.c +++ b/mate-dictionary/libgdict/gdict-database-chooser.c @@ -111,7 +111,7 @@ static guint db_chooser_signals[LAST_SIGNAL] = { 0 }; G_DEFINE_TYPE (GdictDatabaseChooser, gdict_database_chooser, - GTK_TYPE_VBOX); + GTK_TYPE_BOX); static void @@ -370,7 +370,11 @@ gdict_database_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->buttons_box = hbox; priv->refresh_button = gtk_button_new (); @@ -493,6 +497,7 @@ gdict_database_chooser_init (GdictDatabaseChooser *chooser) { GdictDatabaseChooserPrivate *priv; + gtk_orientable_set_orientation (GTK_ORIENTABLE (chooser), GTK_ORIENTATION_VERTICAL); chooser->priv = priv = GDICT_DATABASE_CHOOSER_GET_PRIVATE (chooser); priv->results = -1; |