summaryrefslogtreecommitdiff
path: root/gdk/x11/gdkdrawable-x11.c
diff options
context:
space:
mode:
authorAlexander Larsson <alexl@redhat.com>2009-06-01 11:57:59 +0200
committerAlexander Larsson <alexl@redhat.com>2009-06-01 11:57:59 +0200
commit287b821705b5418cd14d5a31fda3f167ac4ddf72 (patch)
tree489e7dd10390324f74a6c38520f06d00432c384a /gdk/x11/gdkdrawable-x11.c
parentd1f5050262da637a6609d6e794bcca45ae2fcb3e (diff)
downloadgdk-pixbuf-287b821705b5418cd14d5a31fda3f167ac4ddf72.tar.gz
Rename gdk_window_set_has_native to gdk_window_ensure_native
This also removes the (unimplemented) possibility to change a window to non-native. This seems generally not very useful, and there are some problems with it, for instance if two "users" need a window to be native and then one of the "users" doesn't need it anymore it can't change it back, because it is unaware of the other reason the window is native.
Diffstat (limited to 'gdk/x11/gdkdrawable-x11.c')
-rw-r--r--gdk/x11/gdkdrawable-x11.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdk/x11/gdkdrawable-x11.c b/gdk/x11/gdkdrawable-x11.c
index 90d5c9e8a..2b9b1d2c4 100644
--- a/gdk/x11/gdkdrawable-x11.c
+++ b/gdk/x11/gdkdrawable-x11.c
@@ -915,7 +915,7 @@ gdk_x11_drawable_get_xid (GdkDrawable *drawable)
/* Try to ensure the window has a native window */
if (!_gdk_window_has_impl (window))
{
- gdk_window_set_has_native (window, TRUE);
+ gdk_window_ensure_native (window);
/* We sync here to ensure the window is created in the Xserver when
* this function returns. This is required because the returned XID