summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorraveit65 <[email protected]>2016-08-07 14:54:17 +0200
committerraveit65 <[email protected]>2016-08-07 16:53:38 +0200
commit615eaf5a02b141a57b607a605f46ad3a5bd58843 (patch)
tree88216baf1d16e24047fba7b7becf95388ef3dfc1
parentdc3424d9f4687e0434b70c91fdfb399bb87c9433 (diff)
downloadmate-utils-615eaf5a02b141a57b607a605f46ad3a5bd58843.tar.bz2
mate-utils-615eaf5a02b141a57b607a605f46ad3a5bd58843.tar.xz
GTK+-3 logview-findbar: avoid deprecated gtk_misc_set_alignment ()
-rw-r--r--logview/src/logview-findbar.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/logview/src/logview-findbar.c b/logview/src/logview-findbar.c
index 1ccf3fa0..768b1e01 100644
--- a/logview/src/logview-findbar.c
+++ b/logview/src/logview-findbar.c
@@ -232,7 +232,12 @@ logview_findbar_init (LogviewFindbar *findbar)
gtk_tool_item_set_expand (priv->status_item, TRUE);
priv->message = gtk_label_new ("");
gtk_label_set_use_markup (GTK_LABEL (priv->message), TRUE);
+#if GTK_CHECK_VERSION(3,16,0)
+ gtk_label_set_xalign (GTK_LABEL (priv->message), 0.0);
+ gtk_label_set_yalign (GTK_LABEL (priv->message), 0.5);
+#else
gtk_misc_set_alignment (GTK_MISC (priv->message), 0.0, 0.5);
+#endif
gtk_container_add (GTK_CONTAINER (priv->status_item), priv->message);
gtk_widget_show (priv->message);
gtk_toolbar_insert (gtoolbar, priv->status_item, -1);