summaryrefslogtreecommitdiff
path: root/shell/ev-progress-message-area.c
diff options
context:
space:
mode:
authorraveit65 <[email protected]>2017-03-04 12:12:48 +0100
committerraveit65 <[email protected]>2017-03-06 16:10:06 +0100
commit32ae49f81c05e676a86544e66b09f65f83b9db37 (patch)
treee7276b2611c75b1e8363d43894749f4b1ed9bd49 /shell/ev-progress-message-area.c
parent285289c2e4d7d625c96d3e683dfdb01b098df373 (diff)
downloadatril-32ae49f81c05e676a86544e66b09f65f83b9db37.tar.bz2
atril-32ae49f81c05e676a86544e66b09f65f83b9db37.tar.xz
avoid deprecated gtk_misc_set_alignment
Diffstat (limited to 'shell/ev-progress-message-area.c')
-rw-r--r--shell/ev-progress-message-area.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/shell/ev-progress-message-area.c b/shell/ev-progress-message-area.c
index c50b6041..4c972e7c 100644
--- a/shell/ev-progress-message-area.c
+++ b/shell/ev-progress-message-area.c
@@ -91,7 +91,11 @@ ev_progress_message_area_init (EvProgressMessageArea *area)
gtk_label_set_use_markup (GTK_LABEL (area->priv->label), TRUE);
gtk_label_set_ellipsize (GTK_LABEL (area->priv->label),
PANGO_ELLIPSIZE_END);
+#if GTK_CHECK_VERSION (3, 16, 0)
+ gtk_label_set_xalign (GTK_LABEL (area->priv->label), 0.0);
+#else
gtk_misc_set_alignment (GTK_MISC (area->priv->label), 0.0, 0.5);
+#endif
gtk_box_pack_start (GTK_BOX (vbox), area->priv->label, TRUE, TRUE, 0);
gtk_widget_show (area->priv->label);