Fix up gdk_window_set_has_native rename issues

Seems like i forgot a bunch of things.
This commit is contained in:
Alexander Larsson 2009-06-01 14:07:36 +02:00
parent e123931a65
commit 1d739c2ff6
4 changed files with 6 additions and 5 deletions

View File

@ -1410,7 +1410,7 @@ gdk_window_ensure_native (GdkWindow *window)
GdkWindowObject *above; GdkWindowObject *above;
GList listhead; GList listhead;
g_return_if_fail (GDK_IS_WINDOW (window)); g_return_val_if_fail (GDK_IS_WINDOW (window), FALSE);
if (GDK_WINDOW_TYPE (window) == GDK_WINDOW_ROOT || if (GDK_WINDOW_TYPE (window) == GDK_WINDOW_ROOT ||
GDK_WINDOW_DESTROYED (window)) GDK_WINDOW_DESTROYED (window))
@ -1474,6 +1474,8 @@ gdk_window_ensure_native (GdkWindow *window)
if (gdk_window_is_viewable (window)) if (gdk_window_is_viewable (window))
GDK_WINDOW_IMPL_GET_IFACE (private->impl)->show (window); GDK_WINDOW_IMPL_GET_IFACE (private->impl)->show (window);
return TRUE;
} }
static void static void

View File

@ -387,8 +387,7 @@ void gdk_window_move_region (GdkWindow *window,
const GdkRegion *region, const GdkRegion *region,
gint dx, gint dx,
gint dy); gint dy);
void gdk_window_set_has_native (GdkWindow *window, gboolean gdk_window_ensure_native (GdkWindow *window);
gboolean has_native);
/* /*
* This allows for making shaped (partially transparent) windows * This allows for making shaped (partially transparent) windows

View File

@ -206,7 +206,7 @@ gdk_pointer_grab (GdkWindow * window,
/* We need a native window for confine to to work, ensure we have one */ /* We need a native window for confine to to work, ensure we have one */
if (confine_to) if (confine_to)
gdk_window_ensure_native (confine_to, TRUE); gdk_window_ensure_native (confine_to);
/* TODO: What do we do for offscreens and their children? We need to proxy the grab somehow */ /* TODO: What do we do for offscreens and their children? We need to proxy the grab somehow */
if (!GDK_IS_WINDOW_IMPL_X11 (GDK_WINDOW_OBJECT (native)->impl)) if (!GDK_IS_WINDOW_IMPL_X11 (GDK_WINDOW_OBJECT (native)->impl))

View File

@ -5366,7 +5366,7 @@ gdk_window_enable_synchronized_configure (GdkWindow *window)
{ {
/* This basically means you want to do fancy X specific stuff, so /* This basically means you want to do fancy X specific stuff, so
ensure we have a native window */ ensure we have a native window */
gdk_window_ensure_native (window, TRUE); gdk_window_ensure_native (window);
impl->use_synchronized_configure = TRUE; impl->use_synchronized_configure = TRUE;
ensure_sync_counter (window); ensure_sync_counter (window);