diff options
author | Owen Taylor <otaylor@redhat.com> | 2001-12-27 19:20:23 +0000 |
---|---|---|
committer | Owen Taylor <otaylor@src.gnome.org> | 2001-12-27 19:20:23 +0000 |
commit | 95f4d72e626c69c5be8a2a9ab0532f043f53673e (patch) | |
tree | 45bdef6eaa82e7052930564ae8d04530199bc79e /gtk/gtkplug.c | |
parent | 2282ef41d1a1e5687748eb977ae5a1d1ade68567 (diff) | |
download | gtk+-95f4d72e626c69c5be8a2a9ab0532f043f53673e.tar.gz |
gtk/gtkplug.c (gtk_plug_key_press_event): Don't do special handling of key
Thu Dec 27 14:04:22 2001 Owen Taylor <otaylor@redhat.com>
* gtk/gtksocket.c (gtk_socket_key_press_event):
gtk/gtkplug.c (gtk_plug_key_press_event): Don't do
special handling of key presses unless we are doing
iter-app embedding. (Fixes #67590, Anders Carlsson)
Diffstat (limited to 'gtk/gtkplug.c')
-rw-r--r-- | gtk/gtkplug.c | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/gtk/gtkplug.c b/gtk/gtkplug.c index 8a919ef208..e8af9c5f05 100644 --- a/gtk/gtkplug.c +++ b/gtk/gtkplug.c @@ -567,13 +567,18 @@ static gboolean gtk_plug_key_press_event (GtkWidget *widget, GdkEventKey *event) { - if (!GTK_WINDOW (widget)->has_focus) + if (GTK_WIDGET_TOPLEVEL (widget)) { - gtk_plug_forward_key_press (GTK_PLUG (widget), event); - return TRUE; + if (!GTK_WINDOW (widget)->has_focus) + { + gtk_plug_forward_key_press (GTK_PLUG (widget), event); + return TRUE; + } + else + return GTK_WIDGET_CLASS (parent_class)->key_press_event (widget, event); } else - return GTK_WIDGET_CLASS (parent_class)->key_press_event (widget, event); + return FALSE; } static void |