diff options
author | Owen Taylor <otaylor@redhat.com> | 2002-02-23 00:36:49 +0000 |
---|---|---|
committer | Owen Taylor <otaylor@src.gnome.org> | 2002-02-23 00:36:49 +0000 |
commit | 53171867b5ac4e7385aacd30170fdf80f8ad1bbe (patch) | |
tree | a8cec425ea7f8dcd1eb71f83692e025ef8f942fd /gtk/gtksocket.c | |
parent | a504db9e83bb022aaaa6d265481fc2bb376e87df (diff) | |
download | gtk+-53171867b5ac4e7385aacd30170fdf80f8ad1bbe.tar.gz |
Patch from Matthias Clasen (#54488)
Fri Feb 22 19:17:46 2002 Owen Taylor <otaylor@redhat.com>
Patch from Matthias Clasen (#54488)
* gtk/gtkwindow.c: Set/unset HAS_FOCUS flags here,
and do ::has-focus notifications.
* gtk/gtkclist.c gtk/gtkentry.c gtk/gtksocket.c
gtk/gtktext.c gtk/gtktextview.c gtk/gtkwidget.c:
Remove unecessary focus_in/out handles and unecessary
flag setting.
* gtk/gtkwidget.c: Adda missing notification on ::parent.
Diffstat (limited to 'gtk/gtksocket.c')
-rw-r--r-- | gtk/gtksocket.c | 15 |
1 files changed, 3 insertions, 12 deletions
diff --git a/gtk/gtksocket.c b/gtk/gtksocket.c index 543cb15442..6a65e199b0 100644 --- a/gtk/gtksocket.c +++ b/gtk/gtksocket.c @@ -731,16 +731,9 @@ gtk_socket_focus_in_event (GtkWidget *widget, GdkEventFocus *event) { GtkSocket *socket = GTK_SOCKET (widget); - if (!GTK_WIDGET_HAS_FOCUS (widget)) - { - GTK_WIDGET_SET_FLAGS (widget, GTK_HAS_FOCUS); - - if (socket->plug_window) - { - send_xembed_message (socket, XEMBED_FOCUS_IN, XEMBED_FOCUS_CURRENT, 0, 0, - gtk_get_current_event_time ()); - } - } + if (socket->plug_window) + send_xembed_message (socket, XEMBED_FOCUS_IN, XEMBED_FOCUS_CURRENT, 0, 0, + gtk_get_current_event_time ()); return TRUE; } @@ -750,8 +743,6 @@ gtk_socket_focus_out_event (GtkWidget *widget, GdkEventFocus *event) { GtkSocket *socket = GTK_SOCKET (widget); - GTK_WIDGET_UNSET_FLAGS (widget, GTK_HAS_FOCUS); - #if 0 GtkWidget *toplevel; toplevel = gtk_widget_get_toplevel (widget); |