summaryrefslogtreecommitdiff
path: root/gtk/gtkplug.c
diff options
context:
space:
mode:
authorOwen Taylor <otaylor@redhat.com>2002-05-16 23:59:23 +0000
committerOwen Taylor <otaylor@src.gnome.org>2002-05-16 23:59:23 +0000
commit2bf6824ffafe27fcf8bddba71d05e346e5126359 (patch)
tree9f22fa4f70d7bb1b37570f33a6683eccf9dffb34 /gtk/gtkplug.c
parent20be61eef6a9632e64a896bc10e1f80aaa8d3bd5 (diff)
downloadgdk-pixbuf-2bf6824ffafe27fcf8bddba71d05e346e5126359.tar.gz
Only optimize out the full configure handling if we got a gratuitous
Thu May 16 19:49:24 2002 Owen Taylor <otaylor@redhat.com> * gtk/gtkwindow.c (gtk_window_configure_event): Only optimize out the full configure handling if we got a gratuitous configure event(configure_request_count == 0) and the size didn't change. * gtk/gtkwindow.c (gtk_window_move_resize): Use g_message(), not g_print() for debug spew.b * gtk/gtkwindow.c (gtk_window_real_set_focus): Ref the old and new focus widgets for the scope of the function. * gtk/gtksocket.c gtkplug.c: Remove various #if 0'd bits of old code.
Diffstat (limited to 'gtk/gtkplug.c')
-rw-r--r--gtk/gtkplug.c30
1 files changed, 0 insertions, 30 deletions
diff --git a/gtk/gtkplug.c b/gtk/gtkplug.c
index 918327a21..fc3b66a82 100644
--- a/gtk/gtkplug.c
+++ b/gtk/gtkplug.c
@@ -681,23 +681,6 @@ gtk_plug_set_focus (GtkWindow *window,
if (focus && !window->has_focus)
{
-#if 0
- XEvent xevent;
-
- xevent.xfocus.type = FocusIn;
- xevent.xfocus.display = GDK_WINDOW_XDISPLAY (plug->socket_window);
- xevent.xfocus.window = GDK_WINDOW_XWINDOW (plug->socket_window);
- xevent.xfocus.mode = EMBEDDED_APP_WANTS_FOCUS;
- xevent.xfocus.detail = FALSE; /* Don't force */
-
- gdk_error_trap_push ();
- XSendEvent (GDK_DISPLAY (),
- GDK_WINDOW_XWINDOW (plug->socket_window),
- False, NoEventMask, &xevent);
- gdk_display_sync (gdk_drawable_get_display (plug->socket_window));
- gdk_error_trap_pop ();
-#endif
-
send_xembed_message (plug, XEMBED_REQUEST_FOCUS, 0, 0, 0,
gtk_get_current_event_time ());
}
@@ -862,19 +845,6 @@ gtk_plug_focus (GtkWidget *widget,
send_xembed_message (plug, message, 0, 0, 0,
gtk_get_current_event_time ());
-
-#if 0
- gtk_window_set_focus (GTK_WINDOW (widget), NULL);
-
- gdk_error_trap_push ();
- XSetInputFocus (GDK_WINDOW_XDISPLAY (plug->socket_window),
- GDK_WINDOW_XWINDOW (plug->socket_window),
- RevertToParent, event->time);
- gdk_display_sync (gdk_drawable_get_display (plug->socket_window));
- gdk_error_trap_pop ();
-
- gtk_plug_forward_key_press (plug, event);
-#endif
}
}