Commit 940e2bee authored by Germán Poo-Caamaño's avatar Germán Poo-Caamaño

shell: Fix gtk_misc_set_alignment deprecations

parent 4d6f0302
......@@ -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);
......
......@@ -110,8 +110,9 @@ ev_properties_license_add_section (EvPropertiesLicense *properties,
GtkWidget *alignment;
gchar *markup;
title = gtk_label_new (NULL);
gtk_misc_set_alignment (GTK_MISC (title), 0.0, 0.5);
g_object_set (G_OBJECT (title), "xalign", 0., "yalign", 0.5, NULL);
gtk_label_set_use_markup (GTK_LABEL (title), TRUE);
markup = g_strdup_printf ("<b>%s</b>", title_text);
gtk_label_set_markup (GTK_LABEL (title), markup);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment