[gtk+] Revert "gtk/gtkmenuitem: gtk_misc_set_alignment replacing"
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] Revert "gtk/gtkmenuitem: gtk_misc_set_alignment replacing"
- Date: Mon, 13 Jun 2011 01:37:12 +0000 (UTC)
commit 36f6c6167b2599374343d1c6daab4b5765719a43
Author: Matthias Clasen <mclasen redhat com>
Date: Sun Jun 12 21:36:37 2011 -0400
Revert "gtk/gtkmenuitem: gtk_misc_set_alignment replacing"
This reverts commit 49e62d2a5f6cb0cefbb03a4b6a1df413f3903fea.
It turns out that GtkAccelLabel is not quite ready for
widget align properties.
gtk/gtkmenuitem.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/gtk/gtkmenuitem.c b/gtk/gtkmenuitem.c
index 628e813..1537e84 100644
--- a/gtk/gtkmenuitem.c
+++ b/gtk/gtkmenuitem.c
@@ -2566,8 +2566,7 @@ 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_widget_set_halign (accel_label, GTK_ALIGN_START);
- gtk_widget_set_valign (accel_label, GTK_ALIGN_CENTER);
+ gtk_misc_set_alignment (GTK_MISC (accel_label), 0.0, 0.5);
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]