Add gdk_window_redirect_to_drawable and gdk_window_remove_redirection.

2008-05-23  Tor Lillqvist  <tml@novell.com>

	* gdk/gdk.symbols: Add gdk_window_redirect_to_drawable and
	gdk_window_remove_redirection.

	* gdk/win32/gdkwindow-win32.c (_gdk_window_new)
	(_gdk_window_reparent): Rename to adapt to the offscreen rendering
	changes. Remove now unnecessary parameter checks as the caller
	does that already.

	* gtk/gtk.symbols: Add gtk_widget_get_snapshot.


svn path=/trunk/; revision=20130
This commit is contained in:
Tor Lillqvist 2008-05-23 18:46:40 +00:00 committed by Tor Lillqvist
parent 5b8f0faa94
commit a8b5f3ee6b
4 changed files with 24 additions and 19 deletions

View File

@ -1,3 +1,15 @@
2008-05-23 Tor Lillqvist <tml@novell.com>
* gdk/gdk.symbols: Add gdk_window_redirect_to_drawable and
gdk_window_remove_redirection.
* gdk/win32/gdkwindow-win32.c (_gdk_window_new)
(_gdk_window_reparent): Rename to adapt to the offscreen rendering
changes. Remove now unnecessary parameter checks as the caller
does that already.
* gtk/gtk.symbols: Add gtk_widget_get_snapshot.
2008-05-23 Tor Lillqvist <tml@novell.com>
* gdk/win32/gdkwindow-win32.c (update_style_bits): Don't do

View File

@ -687,6 +687,8 @@ gdk_window_set_user_data
gdk_window_thaw_toplevel_updates_libgtk_only
gdk_window_thaw_updates
gdk_window_set_composited
gdk_window_redirect_to_drawable
gdk_window_remove_redirection
#endif
#endif

View File

@ -508,7 +508,7 @@ gdk_window_new_internal (GdkWindow *parent,
orig_parent = parent;
GDK_NOTE (MISC,
g_print ("gdk_window_new: %s\n",
g_print ("gdk_window_new_internal: %s\n",
(attributes->window_type == GDK_WINDOW_TOPLEVEL ? "TOPLEVEL" :
(attributes->window_type == GDK_WINDOW_CHILD ? "CHILD" :
(attributes->window_type == GDK_WINDOW_DIALOG ? "DIALOG" :
@ -757,9 +757,9 @@ gdk_window_new_internal (GdkWindow *parent,
}
GdkWindow*
gdk_window_new (GdkWindow *parent,
GdkWindowAttr *attributes,
gint attributes_mask)
_gdk_window_new (GdkWindow *parent,
GdkWindowAttr *attributes,
gint attributes_mask)
{
return gdk_window_new_internal (parent, attributes, attributes_mask, FALSE);
}
@ -1350,10 +1350,10 @@ gdk_window_move_resize (GdkWindow *window,
}
void
gdk_window_reparent (GdkWindow *window,
GdkWindow *new_parent,
gint x,
gint y)
_gdk_window_reparent (GdkWindow *window,
GdkWindow *new_parent,
gint x,
gint y)
{
GdkWindowObject *window_private;
GdkWindowObject *parent_private;
@ -1362,16 +1362,6 @@ gdk_window_reparent (GdkWindow *window,
gboolean was_toplevel;
LONG style;
g_return_if_fail (GDK_IS_WINDOW (window));
g_return_if_fail (new_parent == NULL || GDK_IS_WINDOW (new_parent));
g_return_if_fail (window != _gdk_root);
if (GDK_WINDOW_DESTROYED (window) ||
(new_parent && GDK_WINDOW_DESTROYED (new_parent)))
{
return;
}
if (!new_parent)
new_parent = _gdk_root;
@ -1380,7 +1370,7 @@ gdk_window_reparent (GdkWindow *window,
parent_private = (GdkWindowObject*) new_parent;
impl = GDK_WINDOW_IMPL_WIN32 (window_private->impl);
GDK_NOTE (MISC, g_print ("gdk_window_reparent: %p: %p\n",
GDK_NOTE (MISC, g_print ("_gdk_window_reparent: %p: %p\n",
GDK_WINDOW_HWND (window),
GDK_WINDOW_HWND (new_parent)));

View File

@ -4816,6 +4816,7 @@ gtk_widget_unmap
gtk_widget_unparent
gtk_widget_unrealize
gtk_widget_unref
gtk_widget_get_snapshot
#endif
#endif