diff options
author | Matthias Clasen <maclas@gmx.de> | 2004-03-10 00:46:51 +0000 |
---|---|---|
committer | Matthias Clasen <matthiasc@src.gnome.org> | 2004-03-10 00:46:51 +0000 |
commit | 8f52057bbcb92c4afcd711489bc48aa7b1996315 (patch) | |
tree | 6afd13811ff2521e1264f908c5dc2eeb5b806732 /gtk/gtkoptionmenu.c | |
parent | 83130a7a730dfb98042d2ca6372438564fa9b6c0 (diff) | |
download | gtk+-8f52057bbcb92c4afcd711489bc48aa7b1996315.tar.gz |
Fix #136614 in a better way:
Wed Mar 10 01:49:27 2004 Matthias Clasen <maclas@gmx.de>
Fix #136614 in a better way:
* gtk/gtkoptionmenu.c (gtk_option_menu_init): Undo the last change.
* gtk/gtkbutton.c (struct _GtkButtonPrivate): Add a flag, align_set.
* gtk/gtkbutton.c (gtk_button_init): Initialize align_set to 0.
* gtk/gtkbutton.c (maybe_set_alignment): Rework to only set the
alignment if priv->align_set is set.
* gtk/gtkbutton.c (gtk_button_set_alignment): Set align_set to 1.
Diffstat (limited to 'gtk/gtkoptionmenu.c')
-rw-r--r-- | gtk/gtkoptionmenu.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/gtk/gtkoptionmenu.c b/gtk/gtkoptionmenu.c index c13b9a2f17..75bef4edb9 100644 --- a/gtk/gtkoptionmenu.c +++ b/gtk/gtkoptionmenu.c @@ -225,12 +225,6 @@ gtk_option_menu_init (GtkOptionMenu *option_menu) option_menu->menu_item = NULL; option_menu->width = 0; option_menu->height = 0; - /* - * Avoid centering the label that is reparented from the menuitem. - * Since gobject doesn't support overriding default values of - * properties in a convenient way yet, we simply set the value here. - */ - gtk_button_set_alignment (GTK_BUTTON (option_menu), 0.0, 0.5); } GtkWidget* |