diff options
Diffstat (limited to 'shell/ev-message-area.c')
-rw-r--r-- | shell/ev-message-area.c | 11 |
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); |