Check that the widget is viewable. (#336200, Bastian Nocera)

2006-03-27  Matthias Clasen  <mclasen@redhat.com>

	* gtk/gtkmnemonichash.c (_gtk_mnemonic_hash_activate): Check that
	the widget is viewable.  (#336200, Bastian Nocera)
This commit is contained in:
Matthias Clasen 2006-03-27 18:30:22 +00:00 committed by Matthias Clasen
parent 161b0a5c55
commit dbba8384d1
3 changed files with 13 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2006-03-27 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkmnemonichash.c (_gtk_mnemonic_hash_activate): Check that
the widget is viewable. (#336200, Bastian Nocera)
2006-03-27 Michael Natterer <mitch@imendio.com>
* gtk/gtkmenu.c (gtk_menu_scroll_by): bail out if there is no need

View File

@ -1,3 +1,8 @@
2006-03-27 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkmnemonichash.c (_gtk_mnemonic_hash_activate): Check that
the widget is viewable. (#336200, Bastian Nocera)
2006-03-27 Michael Natterer <mitch@imendio.com>
* gtk/gtkmenu.c (gtk_menu_scroll_by): bail out if there is no need

View File

@ -127,7 +127,9 @@ _gtk_mnemonic_hash_activate (GtkMnemonicHash *mnemonic_hash,
widget = GTK_WIDGET (list->data);
if (GTK_WIDGET_IS_SENSITIVE (widget) &&
GTK_WIDGET_MAPPED (widget))
GTK_WIDGET_MAPPED (widget) &&
widget->window &&
gdk_window_is_viewable (widget->window))
{
if (chosen_widget)
{