summaryrefslogtreecommitdiff
path: root/shell/ev-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-message-area.c
parent285289c2e4d7d625c96d3e683dfdb01b098df373 (diff)
downloadatril-32ae49f81c05e676a86544e66b09f65f83b9db37.tar.bz2
atril-32ae49f81c05e676a86544e66b09f65f83b9db37.tar.xz
avoid deprecated gtk_misc_set_alignment
Diffstat (limited to 'shell/ev-message-area.c')
-rw-r--r--shell/ev-message-area.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/shell/ev-message-area.c b/shell/ev-message-area.c
index 8226537b..64a11ee2 100644
--- a/shell/ev-message-area.c
+++ b/shell/ev-message-area.c
@@ -105,7 +105,11 @@ ev_message_area_init (EvMessageArea *area)
gtk_label_set_use_markup (GTK_LABEL (area->priv->label), TRUE);
gtk_label_set_line_wrap (GTK_LABEL (area->priv->label), TRUE);
gtk_label_set_selectable (GTK_LABEL (area->priv->label), TRUE);
+#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_widget_set_can_focus (area->priv->label, TRUE);
gtk_box_pack_start (GTK_BOX (vbox), area->priv->label, TRUE, TRUE, 0);
gtk_widget_show (area->priv->label);
@@ -114,12 +118,17 @@ ev_message_area_init (EvMessageArea *area)
gtk_label_set_use_markup (GTK_LABEL (area->priv->secondary_label), TRUE);
gtk_label_set_line_wrap (GTK_LABEL (area->priv->secondary_label), TRUE);
gtk_label_set_selectable (GTK_LABEL (area->priv->secondary_label), TRUE);
+#if GTK_CHECK_VERSION (3, 16, 0)
+ gtk_label_set_xalign (GTK_LABEL (area->priv->secondary_label), 0.0);
+#else
gtk_misc_set_alignment (GTK_MISC (area->priv->secondary_label), 0.0, 0.5);
+#endif
gtk_widget_set_can_focus (area->priv->secondary_label, TRUE);
gtk_box_pack_start (GTK_BOX (vbox), area->priv->secondary_label, TRUE, TRUE, 0);
area->priv->image = gtk_image_new_from_stock (NULL, GTK_ICON_SIZE_DIALOG);
- gtk_misc_set_alignment (GTK_MISC (area->priv->image), 0.5, 0.0);
+ gtk_widget_set_halign (area->priv->image, GTK_ALIGN_CENTER);
+ gtk_widget_set_valign (area->priv->image, GTK_ALIGN_START);
gtk_box_pack_start (GTK_BOX (hbox), area->priv->image, FALSE, FALSE, 0);
gtk_widget_show (area->priv->image);