[gtk+] GtkAssistant: Drop use of GtkMisc
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] GtkAssistant: Drop use of GtkMisc
- Date: Sat, 24 May 2014 04:48:44 +0000 (UTC)
commit 687eae4b513b367aaff2ad89457e874b935ce3d0
Author: Matthias Clasen <mclasen redhat com>
Date: Thu May 22 22:53:52 2014 -0400
GtkAssistant: Drop use of GtkMisc
Use halign instead of xalign.
https://bugzilla.gnome.org/show_bug.cgi?id=730613
gtk/gtkassistant.c | 11 ++---------
1 files changed, 2 insertions(+), 9 deletions(-)
---
diff --git a/gtk/gtkassistant.c b/gtk/gtkassistant.c
index 5ad8648..215a9c8 100644
--- a/gtk/gtkassistant.c
+++ b/gtk/gtkassistant.c
@@ -1760,15 +1760,8 @@ 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_misc_set_alignment (GTK_MISC (page_info->current_title), 0, 0.5);
-G_GNUC_END_IGNORE_DEPRECATIONS
+ gtk_widget_set_halign (page_info->regular_title, GTK_ALIGN_START);
+ gtk_widget_set_halign (page_info->current_title, GTK_ALIGN_START);
gtk_widget_show (page_info->regular_title);
gtk_widget_hide (page_info->current_title);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]