[evince/wip/gpoo/fix-deprecated-symbols: 3/4] shell: Fix gtk_misc_set_alignment



commit 2bea8b0c76429e841d33323a8543a4faf3324278
Author: Germán Poo-Caamaño <gpoo gnome org>
Date:   Tue Nov 6 13:26:26 2018 -0300

    shell: Fix gtk_misc_set_alignment

 shell/ev-annotation-properties-dialog.c | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/shell/ev-annotation-properties-dialog.c b/shell/ev-annotation-properties-dialog.c
index e3f0f209..99d19553 100644
--- a/shell/ev-annotation-properties-dialog.c
+++ b/shell/ev-annotation-properties-dialog.c
@@ -95,7 +95,7 @@ ev_annotation_properties_dialog_constructed (GObject *object)
        switch (dialog->annot_type) {
        case EV_ANNOTATION_TYPE_TEXT:
                label = gtk_label_new (_("Icon:"));
-               gtk_misc_set_alignment (GTK_MISC (label), 0., 0.5);
+               g_object_set (G_OBJECT (label), "xalign", 0., "yalign", 0.5, NULL);
                gtk_grid_attach (GTK_GRID (grid), label, 0, 4, 1, 1);
                gtk_widget_show (label);
 
@@ -121,7 +121,7 @@ ev_annotation_properties_dialog_constructed (GObject *object)
                 break;
         case EV_ANNOTATION_TYPE_TEXT_MARKUP:
                 label = gtk_label_new (_("Markup type:"));
-                gtk_misc_set_alignment (GTK_MISC (label), 0., 0.5);
+                g_object_set (G_OBJECT (label), "xalign", 0., "yalign", 0.5, NULL);
                 gtk_grid_attach (GTK_GRID (grid), label, 0, 5, 1, 1);
                 gtk_widget_show (label);
 
@@ -169,7 +169,7 @@ ev_annotation_properties_dialog_init (EvAnnotationPropertiesDialog *annot_dialog
        gtk_widget_show (grid);
 
        label = gtk_label_new (_("Author:"));
-       gtk_misc_set_alignment (GTK_MISC (label), 0., 0.5);
+       g_object_set (G_OBJECT (label), "xalign", 0., "yalign", 0.5, NULL);
        gtk_grid_attach (GTK_GRID (grid), label, 0, 0, 1, 1);
        gtk_widget_show (label);
 
@@ -180,7 +180,7 @@ ev_annotation_properties_dialog_init (EvAnnotationPropertiesDialog *annot_dialog
        gtk_widget_show (annot_dialog->author);
 
        label = gtk_label_new (_("Color:"));
-       gtk_misc_set_alignment (GTK_MISC (label), 0., 0.5);
+       g_object_set (G_OBJECT (label), "xalign", 0., "yalign", 0.5, NULL);
        gtk_grid_attach (GTK_GRID (grid), label, 0, 1, 1, 1);
        gtk_widget_show (label);
 
@@ -190,7 +190,7 @@ ev_annotation_properties_dialog_init (EvAnnotationPropertiesDialog *annot_dialog
        gtk_widget_show (annot_dialog->color);
 
        label = gtk_label_new (_("Opacity:"));
-       gtk_misc_set_alignment (GTK_MISC (label), 0., 0.5);
+       g_object_set (G_OBJECT (label), "xalign", 0., "yalign", 0.5, NULL);
        gtk_grid_attach (GTK_GRID (grid), label, 0, 2, 1, 1);
        gtk_widget_show (label);
 
@@ -202,7 +202,7 @@ ev_annotation_properties_dialog_init (EvAnnotationPropertiesDialog *annot_dialog
        gtk_widget_show (annot_dialog->opacity);
 
        label = gtk_label_new (_("Initial window state:"));
-       gtk_misc_set_alignment (GTK_MISC (label), 0., 0.5);
+       g_object_set (G_OBJECT (label), "xalign", 0., "yalign", 0.5, NULL);
        gtk_grid_attach (GTK_GRID (grid), label, 0, 3, 1, 1);
        gtk_widget_show (label);
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]