mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-13 04:10:13 +00:00
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.
This commit is contained in:
parent
1ffde0469e
commit
398e83736a
@ -1,3 +1,12 @@
|
|||||||
|
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.
|
||||||
|
|
||||||
2002-04-21 Matthias Clasen <maclas@gmx.de>
|
2002-04-21 Matthias Clasen <maclas@gmx.de>
|
||||||
|
|
||||||
* gtk/gtktextiter.c (gtk_text_iter_forward_search): More verbose
|
* gtk/gtktextiter.c (gtk_text_iter_forward_search): More verbose
|
||||||
|
@ -1,3 +1,12 @@
|
|||||||
|
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.
|
||||||
|
|
||||||
2002-04-21 Matthias Clasen <maclas@gmx.de>
|
2002-04-21 Matthias Clasen <maclas@gmx.de>
|
||||||
|
|
||||||
* gtk/gtktextiter.c (gtk_text_iter_forward_search): More verbose
|
* gtk/gtktextiter.c (gtk_text_iter_forward_search): More verbose
|
||||||
|
@ -1,3 +1,12 @@
|
|||||||
|
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.
|
||||||
|
|
||||||
2002-04-21 Matthias Clasen <maclas@gmx.de>
|
2002-04-21 Matthias Clasen <maclas@gmx.de>
|
||||||
|
|
||||||
* gtk/gtktextiter.c (gtk_text_iter_forward_search): More verbose
|
* gtk/gtktextiter.c (gtk_text_iter_forward_search): More verbose
|
||||||
|
@ -1,3 +1,12 @@
|
|||||||
|
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.
|
||||||
|
|
||||||
2002-04-21 Matthias Clasen <maclas@gmx.de>
|
2002-04-21 Matthias Clasen <maclas@gmx.de>
|
||||||
|
|
||||||
* gtk/gtktextiter.c (gtk_text_iter_forward_search): More verbose
|
* gtk/gtktextiter.c (gtk_text_iter_forward_search): More verbose
|
||||||
|
@ -1,3 +1,12 @@
|
|||||||
|
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.
|
||||||
|
|
||||||
2002-04-21 Matthias Clasen <maclas@gmx.de>
|
2002-04-21 Matthias Clasen <maclas@gmx.de>
|
||||||
|
|
||||||
* gtk/gtktextiter.c (gtk_text_iter_forward_search): More verbose
|
* gtk/gtktextiter.c (gtk_text_iter_forward_search): More verbose
|
||||||
|
@ -1,3 +1,12 @@
|
|||||||
|
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.
|
||||||
|
|
||||||
2002-04-21 Matthias Clasen <maclas@gmx.de>
|
2002-04-21 Matthias Clasen <maclas@gmx.de>
|
||||||
|
|
||||||
* gtk/gtktextiter.c (gtk_text_iter_forward_search): More verbose
|
* gtk/gtktextiter.c (gtk_text_iter_forward_search): More verbose
|
||||||
|
@ -1251,6 +1251,9 @@ gdk_window_reparent (GdkWindow *window,
|
|||||||
GDK_WINDOW_XID (new_parent),
|
GDK_WINDOW_XID (new_parent),
|
||||||
x, y);
|
x, y);
|
||||||
|
|
||||||
|
window_private->x = x;
|
||||||
|
window_private->y = y;
|
||||||
|
|
||||||
/* From here on, we treat parents of type GDK_WINDOW_FOREIGN like
|
/* From here on, we treat parents of type GDK_WINDOW_FOREIGN like
|
||||||
* the root window
|
* the root window
|
||||||
*/
|
*/
|
||||||
|
@ -217,6 +217,7 @@ _gtk_plug_add_to_socket (GtkPlug *plug,
|
|||||||
GtkSocket *socket)
|
GtkSocket *socket)
|
||||||
{
|
{
|
||||||
GtkWidget *widget;
|
GtkWidget *widget;
|
||||||
|
gint w, h;
|
||||||
|
|
||||||
g_return_if_fail (GTK_IS_PLUG (plug));
|
g_return_if_fail (GTK_IS_PLUG (plug));
|
||||||
g_return_if_fail (GTK_IS_SOCKET (socket));
|
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;
|
plug->socket_window = GTK_WIDGET (socket)->window;
|
||||||
|
|
||||||
if (GTK_WIDGET_REALIZED (widget))
|
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));
|
gtk_widget_set_parent (widget, GTK_WIDGET (socket));
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user