diff options
author | Alexander Larsson <alla@lysator.liu.se> | 2002-04-21 19:17:58 +0000 |
---|---|---|
committer | Alexander Larsson <alexl@src.gnome.org> | 2002-04-21 19:17:58 +0000 |
commit | 398e83736aaf408129e0c2301ebc27f8aad33d06 (patch) | |
tree | ac359c5e07bbc169624d2718597efd3bd3c090e9 /gtk/gtkplug.c | |
parent | 1ffde0469ea991648a4341cd87ca3a42de9a8b41 (diff) | |
download | gdk-pixbuf-398e83736aaf408129e0c2301ebc27f8aad33d06.tar.gz |
Save x and y in window_private.
2002-04-21 Alexander Larsson <alla@lysator.liu.se>
* gdk/x11/gdkwindow-x11.c (gdk_window_reparent):
Save x and y in window_private.
* gtk/gtkplug.c (_gtk_plug_add_to_socket):
Move plug window outside the visible area to avoid flashing until
the first size_allocate.
Diffstat (limited to 'gtk/gtkplug.c')
-rw-r--r-- | gtk/gtkplug.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/gtk/gtkplug.c b/gtk/gtkplug.c index b179fe865..7b6d39172 100644 --- a/gtk/gtkplug.c +++ b/gtk/gtkplug.c @@ -217,6 +217,7 @@ _gtk_plug_add_to_socket (GtkPlug *plug, GtkSocket *socket) { GtkWidget *widget; + gint w, h; g_return_if_fail (GTK_IS_PLUG (plug)); g_return_if_fail (GTK_IS_SOCKET (socket)); @@ -232,7 +233,10 @@ _gtk_plug_add_to_socket (GtkPlug *plug, plug->socket_window = GTK_WIDGET (socket)->window; if (GTK_WIDGET_REALIZED (widget)) - gdk_window_reparent (widget->window, plug->socket_window, 0, 0); + { + gdk_drawable_get_size (GDK_DRAWABLE (widget->window), &w, &h); + gdk_window_reparent (widget->window, plug->socket_window, -w, -h); + } gtk_widget_set_parent (widget, GTK_WIDGET (socket)); |