summaryrefslogtreecommitdiff
path: root/gtk/gtkassistant.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2014-05-13 08:45:00 -0400
committerMatthias Clasen <mclasen@redhat.com>2014-05-13 08:45:00 -0400
commitec0a60a2483e1b9dc5708aa0291279e3386ab9b5 (patch)
tree6377017cdb03801d29b815da05392e8b46b8bb8f /gtk/gtkassistant.c
parent7840bad5d78664f47c19d019d5d4614aec19e7ea (diff)
downloadgtk+-ec0a60a2483e1b9dc5708aa0291279e3386ab9b5.tar.gz
Deprecate GtkMisc
This has been dangling ever since 3.0.
Diffstat (limited to 'gtk/gtkassistant.c')
-rw-r--r--gtk/gtkassistant.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/gtk/gtkassistant.c b/gtk/gtkassistant.c
index fbd12cfef2..4847a65f69 100644
--- a/gtk/gtkassistant.c
+++ b/gtk/gtkassistant.c
@@ -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);