summaryrefslogtreecommitdiff
path: root/mate-dictionary/src/gdict-sidebar.c
diff options
context:
space:
mode:
authormonsta <[email protected]>2016-01-22 11:39:41 +0300
committermonsta <[email protected]>2016-01-22 11:53:21 +0300
commit386f747d82bdd2607896a1c80dff5dfaaec1aa23 (patch)
tree47b7679a5bdcd98a2c7c1ebbc97a3cf47738a581 /mate-dictionary/src/gdict-sidebar.c
parente5a2a7363348f8db0a581a5b9c3c8872e82c4312 (diff)
downloadmate-utils-386f747d82bdd2607896a1c80dff5dfaaec1aa23.tar.bz2
mate-utils-386f747d82bdd2607896a1c80dff5dfaaec1aa23.tar.xz
[GTK+3] dictionary: fix some deprecations
Diffstat (limited to 'mate-dictionary/src/gdict-sidebar.c')
-rw-r--r--mate-dictionary/src/gdict-sidebar.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/mate-dictionary/src/gdict-sidebar.c b/mate-dictionary/src/gdict-sidebar.c
index 87658a70..273ac1f6 100644
--- a/mate-dictionary/src/gdict-sidebar.c
+++ b/mate-dictionary/src/gdict-sidebar.c
@@ -345,7 +345,12 @@ gdict_sidebar_init (GdictSidebar *sidebar)
select_hbox = gtk_hbox_new (FALSE, 0);
priv->label = gtk_label_new (NULL);
+#if GTK_CHECK_VERSION (3, 16, 0)
+ gtk_label_set_xalign (GTK_LABEL (priv->label), 0.0);
+ gtk_label_set_yalign (GTK_LABEL (priv->label), 0.5);
+#else
gtk_misc_set_alignment (GTK_MISC (priv->label), 0.0, 0.5);
+#endif
gtk_box_pack_start (GTK_BOX (select_hbox), priv->label, FALSE, FALSE, 0);
gtk_widget_show (priv->label);