[gtk+] gtk/gtkmenuitem: gtk_misc_set_alignment replacing
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] gtk/gtkmenuitem: gtk_misc_set_alignment replacing
- Date: Fri, 10 Jun 2011 22:18:20 +0000 (UTC)
commit 49e62d2a5f6cb0cefbb03a4b6a1df413f3903fea
Author: Diego Celix <dcelix gmail com>
Date: Sat May 21 19:54:50 2011 +0200
gtk/gtkmenuitem: gtk_misc_set_alignment replacing
Replacing the function gtk_misc_set_alignment () with
gtk_widget_set_halign () and gtk_widget_set_valign () in
gtk/gtkmenuitem.c
https://bugzilla.gnome.org/show_bug.cgi?id=650762
gtk/gtkmenuitem.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkmenuitem.c b/gtk/gtkmenuitem.c
index 1537e84..628e813 100644
--- a/gtk/gtkmenuitem.c
+++ b/gtk/gtkmenuitem.c
@@ -2566,7 +2566,8 @@ gtk_menu_item_ensure_label (GtkMenuItem *menu_item)
if (!gtk_bin_get_child (GTK_BIN (menu_item)))
{
accel_label = g_object_new (GTK_TYPE_ACCEL_LABEL, NULL);
- gtk_misc_set_alignment (GTK_MISC (accel_label), 0.0, 0.5);
+ gtk_widget_set_halign (accel_label, GTK_ALIGN_START);
+ gtk_widget_set_valign (accel_label, GTK_ALIGN_CENTER);
gtk_container_add (GTK_CONTAINER (menu_item), accel_label);
gtk_accel_label_set_accel_widget (GTK_ACCEL_LABEL (accel_label),
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]