Commit dbba8384 authored by Matthias Clasen's avatar Matthias Clasen Committed by Matthias Clasen
Browse files

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)
parent 161b0a5c
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
......
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
......
......@@ -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)
{
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment