forked from AuroraMiddleware/gtk
gtkaboutdialog: gtk_misc_set_alignment replacing
Replacing the function gtk_misc_set_alignment () with gtk_widget_set_halign () and gtk_widget_set_valign () in gtk/gtkaboutdialog.c https://bugzilla.gnome.org/show_bug.cgi?id=650762
This commit is contained in:
parent
f060343a82
commit
9dfff27c42
@ -2239,7 +2239,8 @@ add_credits_section (GtkAboutDialog *about,
|
||||
label = gtk_label_new (markup);
|
||||
gtk_label_set_use_markup (GTK_LABEL (label), TRUE);
|
||||
g_free (markup);
|
||||
gtk_misc_set_alignment (GTK_MISC (label), 1.0, 0.5);
|
||||
gtk_widget_set_halign (label, GTK_ALIGN_END);
|
||||
gtk_widget_set_valign (label, GTK_ALIGN_CENTER);
|
||||
gtk_grid_attach (grid, label, 0, *row, 1, 1);
|
||||
|
||||
for (p = people; *p; p++)
|
||||
@ -2328,7 +2329,8 @@ add_credits_section (GtkAboutDialog *about,
|
||||
label = gtk_label_new (str->str);
|
||||
gtk_label_set_use_markup (GTK_LABEL (label), TRUE);
|
||||
g_string_free (str, TRUE);
|
||||
gtk_misc_set_alignment (GTK_MISC (label), 0, 0.5);
|
||||
gtk_widget_set_halign (label, GTK_ALIGN_START);
|
||||
gtk_widget_set_valign (label, GTK_ALIGN_CENTER);
|
||||
gtk_grid_attach (grid, label, 1, *row, 1, 1);
|
||||
(*row)++;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user