[gtk+] gtk/gtknotebook: gtk_misc_set_alignment replacing
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] gtk/gtknotebook: gtk_misc_set_alignment replacing
- Date: Wed, 1 Jun 2011 00:04:46 +0000 (UTC)
commit 95fd3d708d1b68eaf5c143d49d76822183bcfc9c
Author: Diego Celix <dcelix gmail com>
Date: Fri May 20 02:48:22 2011 +0100
gtk/gtknotebook: gtk_misc_set_alignment replacing
Replacing the function gtk_misc_set_alignment () with
gtk_widget_set_halign () and gtk_widget_set_valign () in
gtk/gtknotebook.c
https://bugzilla.gnome.org/show_bug.cgi?id=650762
gtk/gtknotebook.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/gtk/gtknotebook.c b/gtk/gtknotebook.c
index b6ebff4..77e8a47 100644
--- a/gtk/gtknotebook.c
+++ b/gtk/gtknotebook.c
@@ -6563,7 +6563,8 @@ gtk_notebook_menu_item_create (GtkNotebook *notebook,
page->menu_label = gtk_label_new (gtk_label_get_label (GTK_LABEL (page->tab_label)));
else
page->menu_label = gtk_label_new ("");
- gtk_misc_set_alignment (GTK_MISC (page->menu_label), 0.0, 0.5);
+ gtk_widget_set_halign (page->menu_label, GTK_ALIGN_START);
+ gtk_widget_set_valign (page->menu_label, GTK_ALIGN_CENTER);
}
gtk_widget_show (page->menu_label);
@@ -7688,7 +7689,8 @@ gtk_notebook_set_menu_label_text (GtkNotebook *notebook,
if (menu_text)
{
menu_label = gtk_label_new (menu_text);
- gtk_misc_set_alignment (GTK_MISC (menu_label), 0.0, 0.5);
+ gtk_widget_set_halign (menu_label, GTK_ALIGN_START);
+ gtk_widget_set_valign (menu_label, GTK_ALIGN_CENTER);
}
gtk_notebook_set_menu_label (notebook, child, menu_label);
gtk_widget_child_notify (child, "menu-label");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]