[gtk+] gtk/gtkassistant: gtk_misc_set_alignment replacing
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] gtk/gtkassistant: gtk_misc_set_alignment replacing
- Date: Fri, 10 Jun 2011 22:19:06 +0000 (UTC)
commit c92600c00f7046bc46e780cffeb7593afefe8af1
Author: Diego Celix <dcelix gmail com>
Date: Fri Jun 10 02:26:43 2011 +0200
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
gtk/gtkassistant.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/gtk/gtkassistant.c b/gtk/gtkassistant.c
index 69fc67e..ccf419d 100644
--- a/gtk/gtkassistant.c
+++ b/gtk/gtkassistant.c
@@ -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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]