summaryrefslogtreecommitdiff
path: root/src/eom-error-message-area.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/eom-error-message-area.c')
-rw-r--r--src/eom-error-message-area.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/eom-error-message-area.c b/src/eom-error-message-area.c
index 552e2bd..51f2ba2 100644
--- a/src/eom-error-message-area.c
+++ b/src/eom-error-message-area.c
@@ -59,7 +59,7 @@ set_message_area_text_and_icon (GtkInfoBar *message_area,
image = gtk_image_new_from_stock (icon_stock_id, GTK_ICON_SIZE_DIALOG);
gtk_widget_show (image);
gtk_box_pack_start (GTK_BOX (hbox_content), image, FALSE, FALSE, 0);
-#if GTK_CHECK_VERSION (3, 14, 0)
+#if GTK_CHECK_VERSION (3, 0, 0)
gtk_widget_set_valign (image, GTK_ALIGN_START);
#else
gtk_misc_set_alignment (GTK_MISC (image), 0.5, 0);
@@ -78,10 +78,10 @@ set_message_area_text_and_icon (GtkInfoBar *message_area,
gtk_box_pack_start (GTK_BOX (vbox), primary_label, TRUE, TRUE, 0);
gtk_label_set_use_markup (GTK_LABEL (primary_label), TRUE);
gtk_label_set_line_wrap (GTK_LABEL (primary_label), FALSE);
-#if GTK_CHECK_VERSION (3, 14, 0)
- gtk_widget_set_halign (primary_label, GTK_ALIGN_START);
+#if GTK_CHECK_VERSION (3, 16, 0)
+ gtk_label_set_xalign (GTK_LABEL (primary_label), 0.0);
#else
- gtk_misc_set_alignment (GTK_MISC (primary_label), 0, 0.5);
+ gtk_misc_set_alignment (GTK_MISC (primary_label), 0.0, 0.5);
#endif
gtk_widget_set_can_focus (primary_label, TRUE);
@@ -103,10 +103,10 @@ set_message_area_text_and_icon (GtkInfoBar *message_area,
gtk_label_set_use_markup (GTK_LABEL (secondary_label), TRUE);
gtk_label_set_line_wrap (GTK_LABEL (secondary_label), TRUE);
gtk_label_set_selectable (GTK_LABEL (secondary_label), TRUE);
-#if GTK_CHECK_VERSION (3, 14, 0)
- gtk_widget_set_halign (secondary_label, GTK_ALIGN_START);
+#if GTK_CHECK_VERSION (3, 16, 0)
+ gtk_label_set_xalign (GTK_LABEL (secondary_label), 0.0);
#else
- gtk_misc_set_alignment (GTK_MISC (secondary_label), 0, 0.5);
+ gtk_misc_set_alignment (GTK_MISC (secondary_label), 0.0, 0.5);
#endif
}