[gtk+/client-side-windows] Fix up gdk_window_set_has_native rename issues
- From: Alexander Larsson <alexl src gnome org>
- To: svn-commits-list gnome org
- Subject: [gtk+/client-side-windows] Fix up gdk_window_set_has_native rename issues
- Date: Mon, 1 Jun 2009 08:52:31 -0400 (EDT)
commit 1d739c2ff60796e75aeb808134b9bc6c25f2efd5
Author: Alexander Larsson <alexl redhat com>
Date: Mon Jun 1 14:07:36 2009 +0200
Fix up gdk_window_set_has_native rename issues
Seems like i forgot a bunch of things.
---
gdk/gdkwindow.c | 4 +++-
gdk/gdkwindow.h | 3 +--
gdk/x11/gdkmain-x11.c | 2 +-
gdk/x11/gdkwindow-x11.c | 2 +-
4 files changed, 6 insertions(+), 5 deletions(-)
diff --git a/gdk/gdkwindow.c b/gdk/gdkwindow.c
index 1943804..aa52a26 100644
--- a/gdk/gdkwindow.c
+++ b/gdk/gdkwindow.c
@@ -1410,7 +1410,7 @@ gdk_window_ensure_native (GdkWindow *window)
GdkWindowObject *above;
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 ||
GDK_WINDOW_DESTROYED (window))
@@ -1474,6 +1474,8 @@ gdk_window_ensure_native (GdkWindow *window)
if (gdk_window_is_viewable (window))
GDK_WINDOW_IMPL_GET_IFACE (private->impl)->show (window);
+
+ return TRUE;
}
static void
diff --git a/gdk/gdkwindow.h b/gdk/gdkwindow.h
index 6a9985a..bb2ef8c 100644
--- a/gdk/gdkwindow.h
+++ b/gdk/gdkwindow.h
@@ -387,8 +387,7 @@ void gdk_window_move_region (GdkWindow *window,
const GdkRegion *region,
gint dx,
gint dy);
-void gdk_window_set_has_native (GdkWindow *window,
- gboolean has_native);
+gboolean gdk_window_ensure_native (GdkWindow *window);
/*
* This allows for making shaped (partially transparent) windows
diff --git a/gdk/x11/gdkmain-x11.c b/gdk/x11/gdkmain-x11.c
index 1e7d04b..471a8f2 100644
--- a/gdk/x11/gdkmain-x11.c
+++ b/gdk/x11/gdkmain-x11.c
@@ -206,7 +206,7 @@ gdk_pointer_grab (GdkWindow * window,
/* We need a native window for confine to to work, ensure we have one */
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 */
if (!GDK_IS_WINDOW_IMPL_X11 (GDK_WINDOW_OBJECT (native)->impl))
diff --git a/gdk/x11/gdkwindow-x11.c b/gdk/x11/gdkwindow-x11.c
index afe65f3..6bbc1b1 100644
--- a/gdk/x11/gdkwindow-x11.c
+++ b/gdk/x11/gdkwindow-x11.c
@@ -5366,7 +5366,7 @@ gdk_window_enable_synchronized_configure (GdkWindow *window)
{
/* This basically means you want to do fancy X specific stuff, so
ensure we have a native window */
- gdk_window_ensure_native (window, TRUE);
+ gdk_window_ensure_native (window);
impl->use_synchronized_configure = TRUE;
ensure_sync_counter (window);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]