[evince/wip/gpoo/improve-message-area] message-area: Fix gtk_misc deprecated symbols
- From: Germán Poo-Caamaño <gpoo src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evince/wip/gpoo/improve-message-area] message-area: Fix gtk_misc deprecated symbols
- Date: Fri, 9 Nov 2018 04:42:20 +0000 (UTC)
commit 716edee68820ad061d026a857e19286c25033bc2
Author: Germán Poo-Caamaño <gpoo gnome org>
Date: Fri Nov 9 01:41:09 2018 -0300
message-area: Fix gtk_misc deprecated symbols
shell/ev-message-area.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/shell/ev-message-area.c b/shell/ev-message-area.c
index c79b5301..032a8c5f 100644
--- a/shell/ev-message-area.c
+++ b/shell/ev-message-area.c
@@ -102,7 +102,7 @@ ev_message_area_init (EvMessageArea *area)
gtk_label_set_use_markup (GTK_LABEL (priv->label), TRUE);
gtk_label_set_line_wrap (GTK_LABEL (priv->label), TRUE);
gtk_label_set_selectable (GTK_LABEL (priv->label), TRUE);
- gtk_misc_set_alignment (GTK_MISC (priv->label), 0.0, 0.5);
+ g_object_set (G_OBJECT (priv->label), "xalign", 0., "yalign", 0.5, NULL);
gtk_widget_set_can_focus (priv->label, TRUE);
gtk_box_pack_start (GTK_BOX (vbox), priv->label, TRUE, TRUE, 0);
gtk_widget_show (priv->label);
@@ -111,12 +111,12 @@ ev_message_area_init (EvMessageArea *area)
gtk_label_set_use_markup (GTK_LABEL (priv->secondary_label), TRUE);
gtk_label_set_line_wrap (GTK_LABEL (priv->secondary_label), TRUE);
gtk_label_set_selectable (GTK_LABEL (priv->secondary_label), TRUE);
- gtk_misc_set_alignment (GTK_MISC (priv->secondary_label), 0.0, 0.5);
+ g_object_set (G_OBJECT (priv->secondary_label), "xalign", 0., "yalign", 0.5, NULL);
gtk_widget_set_can_focus (priv->secondary_label, TRUE);
gtk_box_pack_start (GTK_BOX (vbox), priv->secondary_label, TRUE, TRUE, 0);
priv->image = gtk_image_new_from_icon_name (NULL, GTK_ICON_SIZE_DIALOG);
- gtk_misc_set_alignment (GTK_MISC (priv->image), 0.5, 0.0);
+ g_object_set (G_OBJECT (priv->image), "xalign", 0.5, "yalign", 0., NULL);
gtk_box_pack_start (GTK_BOX (hbox), priv->image, FALSE, FALSE, 0);
gtk_widget_show (priv->image);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]