diff options
author | Owen Taylor <otaylor@redhat.com> | 2002-05-14 16:48:31 +0000 |
---|---|---|
committer | Owen Taylor <otaylor@src.gnome.org> | 2002-05-14 16:48:31 +0000 |
commit | 278582d61d10411cde26fff4d4bd1df8528df832 (patch) | |
tree | 90b11f93c840fe1386110e20d2602b06417467d6 /gtk/gtkmenuitem.c | |
parent | 3fd4c9f16997dec7f120bf0a9a93dd70d4bded8c (diff) | |
download | gdk-pixbuf-278582d61d10411cde26fff4d4bd1df8528df832.tar.gz |
Discard configure events from SubstructureNotify. (#81760, Rich Burridge)
Tue May 14 11:21:19 2002 Owen Taylor <otaylor@redhat.com>
* gdk/x11/gdkevents-x11.c (gdk_event_translate):
Discard configure events from SubstructureNotify.
(#81760, Rich Burridge)
* gtk/gtkfontsel.c (cmp_families): Use g_utf8_strcoll(), not
strcmp().
* gtk/gtkmenuitem.c (gtk_menu_item_size_allocate): Clamp
width of child allocation to >= 1. (Fixes warnings from
#77639, Martin Schulze)
Diffstat (limited to 'gtk/gtkmenuitem.c')
-rw-r--r-- | gtk/gtkmenuitem.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gtk/gtkmenuitem.c b/gtk/gtkmenuitem.c index ec34f441b..118e7009b 100644 --- a/gtk/gtkmenuitem.c +++ b/gtk/gtkmenuitem.c @@ -515,6 +515,9 @@ gtk_menu_item_size_allocate (GtkWidget *widget, if (menu_item->submenu && menu_item->show_submenu_indicator) child_allocation.width -= child_requisition.height; + if (child_allocation.width < 1) + child_allocation.width = 1; + gtk_widget_size_allocate (bin->child, &child_allocation); } |