diff options
author | Matthias Clasen <mclasen@redhat.com> | 2006-03-27 18:30:22 +0000 |
---|---|---|
committer | Matthias Clasen <matthiasc@src.gnome.org> | 2006-03-27 18:30:22 +0000 |
commit | dbba8384d1e2927009d5f8c6405b17d067cd76db (patch) | |
tree | 13f38804148f181658d50aeb3053244672e5ce5a /gtk/gtkmnemonichash.c | |
parent | 161b0a5c55433a10678de80cfed276d4d98bfa48 (diff) | |
download | gtk+-dbba8384d1e2927009d5f8c6405b17d067cd76db.tar.gz |
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)
Diffstat (limited to 'gtk/gtkmnemonichash.c')
-rw-r--r-- | gtk/gtkmnemonichash.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gtk/gtkmnemonichash.c b/gtk/gtkmnemonichash.c index c9f38408c8..705484aded 100644 --- a/gtk/gtkmnemonichash.c +++ b/gtk/gtkmnemonichash.c @@ -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) { |