summaryrefslogtreecommitdiff
path: root/mate-dictionary/libgdict/gdict-speller.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-speller.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-speller.c')
-rw-r--r--mate-dictionary/libgdict/gdict-speller.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/mate-dictionary/libgdict/gdict-speller.c b/mate-dictionary/libgdict/gdict-speller.c
index fc16112a..9b151994 100644
--- a/mate-dictionary/libgdict/gdict-speller.c
+++ b/mate-dictionary/libgdict/gdict-speller.c
@@ -108,7 +108,7 @@ enum
static guint speller_signals[LAST_SIGNAL] = { 0 };
-G_DEFINE_TYPE (GdictSpeller, gdict_speller, GTK_TYPE_VBOX);
+G_DEFINE_TYPE (GdictSpeller, gdict_speller, GTK_TYPE_BOX);
static void
@@ -343,7 +343,11 @@ gdict_speller_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->clear_button = gtk_button_new ();
gtk_button_set_image (GTK_BUTTON (priv->clear_button),
@@ -416,6 +420,7 @@ gdict_speller_init (GdictSpeller *speller)
{
GdictSpellerPrivate *priv;
+ gtk_orientable_set_orientation (GTK_ORIENTABLE (speller), GTK_ORIENTATION_VERTICAL);
speller->priv = priv = GDICT_SPELLER_GET_PRIVATE (speller);
priv->database = NULL;
@@ -467,8 +472,8 @@ gdict_speller_new_with_context (GdictContext *context)
g_return_val_if_fail (GDICT_IS_CONTEXT (context), NULL);
return g_object_new (GDICT_TYPE_SPELLER,
- "context", context,
- NULL);
+ "context", context,
+ NULL);
}
/**