diff options
author | Matthias Clasen <maclas@gmx.de> | 2004-03-09 22:14:30 +0000 |
---|---|---|
committer | Matthias Clasen <matthiasc@src.gnome.org> | 2004-03-09 22:14:30 +0000 |
commit | 158158ea0417a3c54496249a901dacec9337c8ab (patch) | |
tree | 3ebf2302b9c184079c59954047e008b67bd6aa0f /gtk/gtkoptionmenu.c | |
parent | efbefd0731321084256f402ecca930fae01bd64b (diff) | |
download | gtk+-158158ea0417a3c54496249a901dacec9337c8ab.tar.gz |
Avoid centering the label that is reparented from the menuitem. (#136614,
Tue Mar 9 23:09:46 2004 Matthias Clasen <maclas@gmx.de>
* gtk/gtkoptionmenu.c (gtk_option_menu_init): Avoid centering
the label that is reparented from the menuitem. (#136614, Dennis
Cranston)
Diffstat (limited to 'gtk/gtkoptionmenu.c')
-rw-r--r-- | gtk/gtkoptionmenu.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/gtk/gtkoptionmenu.c b/gtk/gtkoptionmenu.c index d3bbb02122..c13b9a2f17 100644 --- a/gtk/gtkoptionmenu.c +++ b/gtk/gtkoptionmenu.c @@ -1,5 +1,5 @@ /* GTK - The GIMP Toolkit - * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald + * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Jsh MacDonald * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public @@ -225,6 +225,12 @@ 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* |