summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2014-09-15 21:05:08 -0400
committerMatthias Clasen <mclasen@redhat.com>2014-09-15 21:11:06 -0400
commitfdb13b6ef5bd30e4621f091a0a1766eb499ef931 (patch)
tree807ea1e23063ff83cf2a9ae63f11056a9e8b62ab
parent0a3162be4559fb9a24c0d9e43a8920c1ad547874 (diff)
downloadgtk+-fdb13b6ef5bd30e4621f091a0a1766eb499ef931.tar.gz
Revert "GtkAssistant: Drop use of GtkMisc"
This reverts commit 687eae4b513b367aaff2ad89457e874b935ce3d0. Still not a solved problem.
-rw-r--r--gtk/gtkassistant.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/gtk/gtkassistant.c b/gtk/gtkassistant.c
index 64a8089450..444890f79d 100644
--- a/gtk/gtkassistant.c
+++ b/gtk/gtkassistant.c
@@ -1758,8 +1758,15 @@ 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);
- gtk_widget_set_halign (page_info->regular_title, GTK_ALIGN_START);
- gtk_widget_set_halign (page_info->current_title, GTK_ALIGN_START);
+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_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);