diff options
author | Owen Taylor <otaylor@redhat.com> | 2001-11-26 00:19:31 +0000 |
---|---|---|
committer | Owen Taylor <otaylor@src.gnome.org> | 2001-11-26 00:19:31 +0000 |
commit | bc99cf97a2da79ee5ed33080af0ddb5cf16a8a81 (patch) | |
tree | 0c6a530219835ca8438120bf1b4e8a6bfbe307c5 /gtk/gtklistitem.c | |
parent | 9a60bfac0c7342461430125098291c6b5d7550fc (diff) | |
download | gtk+-bc99cf97a2da79ee5ed33080af0ddb5cf16a8a81.tar.gz |
Calculate size based on the _child_ of the menu item, not the menuitem.
Sun Nov 25 18:59:19 2001 Owen Taylor <otaylor@redhat.com>
* gtk/gtkoptionmenu.c (gtk_option_menu_calc_size):
Calculate size based on the _child_ of the menu item,
not the menuitem. (#65005, Damon Chaplin)
* gtk/gtklistitem.c (gtk_list_item_new_with_label): Add
some extra vertical padding to the label widget ... restores
GTK+-1.2 spacing. (#65085, Damon Chaplin.)
Diffstat (limited to 'gtk/gtklistitem.c')
-rw-r--r-- | gtk/gtklistitem.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gtk/gtklistitem.c b/gtk/gtklistitem.c index d6f7a1d40b..996fb618e6 100644 --- a/gtk/gtklistitem.c +++ b/gtk/gtklistitem.c @@ -390,7 +390,8 @@ gtk_list_item_new_with_label (const gchar *label) list_item = gtk_list_item_new (); label_widget = gtk_label_new (label); gtk_misc_set_alignment (GTK_MISC (label_widget), 0.0, 0.5); - + gtk_misc_set_padding (GTK_MISC (label_widget), 0, 1); + gtk_container_add (GTK_CONTAINER (list_item), label_widget); gtk_widget_show (label_widget); |