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)
This commit is contained in:
Owen Taylor 2002-05-14 16:48:31 +00:00 committed by Owen Taylor
parent 3fd4c9f169
commit 278582d61d
9 changed files with 86 additions and 1 deletions

View File

@ -1,3 +1,16 @@
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)
2002-05-14 Matthias Clasen <maclas@gmx.de>
* gtk/gtkcontainer.c (gtk_container_class_install_child_property):

View File

@ -1,3 +1,16 @@
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)
2002-05-14 Matthias Clasen <maclas@gmx.de>
* gtk/gtkcontainer.c (gtk_container_class_install_child_property):

View File

@ -1,3 +1,16 @@
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)
2002-05-14 Matthias Clasen <maclas@gmx.de>
* gtk/gtkcontainer.c (gtk_container_class_install_child_property):

View File

@ -1,3 +1,16 @@
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)
2002-05-14 Matthias Clasen <maclas@gmx.de>
* gtk/gtkcontainer.c (gtk_container_class_install_child_property):

View File

@ -1,3 +1,16 @@
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)
2002-05-14 Matthias Clasen <maclas@gmx.de>
* gtk/gtkcontainer.c (gtk_container_class_install_child_property):

View File

@ -1,3 +1,16 @@
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)
2002-05-14 Matthias Clasen <maclas@gmx.de>
* gtk/gtkcontainer.c (gtk_container_class_install_child_property):

View File

@ -1382,13 +1382,17 @@ gdk_event_translate (GdkDisplay *display,
? " (discarding)"
: GDK_WINDOW_TYPE (window) == GDK_WINDOW_CHILD
? " (discarding child)"
: xevent->xconfigure.event != xevent->xconfigure.window
? " (discarding substructure)"
: ""));
if (window &&
xevent->xconfigure.event == xevent->xconfigure.window &&
!GDK_WINDOW_DESTROYED (window) &&
(window_private->extension_events != 0))
_gdk_input_configure_event (&xevent->xconfigure, window);
if (!window ||
xevent->xconfigure.event != xevent->xconfigure.window ||
GDK_WINDOW_TYPE (window) == GDK_WINDOW_CHILD ||
GDK_WINDOW_TYPE (window) == GDK_WINDOW_ROOT)
return_val = FALSE;

View File

@ -670,7 +670,7 @@ cmp_families (const void *a, const void *b)
const char *a_name = pango_font_family_get_name (*(PangoFontFamily **)a);
const char *b_name = pango_font_family_get_name (*(PangoFontFamily **)b);
return strcmp (a_name, b_name);
return g_utf8_collate (a_name, b_name);
}
static void

View File

@ -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);
}