forked from AuroraMiddleware/gtk
gtk/gtkassistant: gtk_misc_set_alignment replacing
Replacing the function gtk_misc_set_alignment () with gtk_widget_set_halign () and gtk_widget_set_valign () in gtk/gtkassistant.c https://bugzilla.gnome.org/show_bug.cgi?id=650762
This commit is contained in:
parent
0a75ffd4a3
commit
c92600c00f
@ -1588,10 +1588,12 @@ gtk_assistant_insert_page (GtkAssistant *assistant,
|
||||
page_info->regular_title = gtk_label_new (NULL);
|
||||
page_info->current_title = gtk_label_new (NULL);
|
||||
|
||||
gtk_misc_set_alignment (GTK_MISC (page_info->regular_title), 0.,0.5);
|
||||
gtk_widget_set_halign (page_info->regular_title, GTK_ALIGN_START);
|
||||
gtk_widget_set_valign (page_info->regular_title, GTK_ALIGN_CENTER);
|
||||
gtk_widget_show (page_info->regular_title);
|
||||
|
||||
gtk_misc_set_alignment (GTK_MISC (page_info->current_title), 0.,0.5);
|
||||
gtk_widget_set_halign (page_info->current_title, GTK_ALIGN_START);
|
||||
gtk_widget_set_valign (page_info->current_title, GTK_ALIGN_CENTER);
|
||||
gtk_widget_hide (page_info->current_title);
|
||||
|
||||
context = gtk_widget_get_style_context (page_info->current_title);
|
||||
|
Loading…
Reference in New Issue
Block a user