Deprecate GtkMisc
This has been dangling ever since 3.0.
This commit is contained in:
@ -1756,15 +1756,17 @@ gtk_assistant_insert_page (GtkAssistant *assistant,
|
||||
page_info->current_title = gtk_label_new (NULL);
|
||||
gtk_widget_set_no_show_all (page_info->current_title, TRUE);
|
||||
|
||||
G_GNUC_BEGIN_IGNORE_DEPRECATIONS
|
||||
/* Note: we need to use misc alignment here as long as GtkLabel
|
||||
* pays attention to it. GtkWiget::halign is ineffective, since
|
||||
* all the labels are getting the same size anyway, due to the
|
||||
* size group.
|
||||
*/
|
||||
gtk_misc_set_alignment (GTK_MISC (page_info->regular_title), 0, 0.5);
|
||||
gtk_widget_show (page_info->regular_title);
|
||||
|
||||
gtk_misc_set_alignment (GTK_MISC (page_info->current_title), 0, 0.5);
|
||||
G_GNUC_END_IGNORE_DEPRECATIONS
|
||||
|
||||
gtk_widget_show (page_info->regular_title);
|
||||
gtk_widget_hide (page_info->current_title);
|
||||
|
||||
context = gtk_widget_get_style_context (page_info->current_title);
|
||||
|
||||
Reference in New Issue
Block a user