diff options
author | Robert Brady <robert@suse.co.uk> | 2000-10-25 21:05:37 +0000 |
---|---|---|
committer | Robert Brady <rbrady@src.gnome.org> | 2000-10-25 21:05:37 +0000 |
commit | 7ae3922d2cdc89cba86694f7e46393a629b12b61 (patch) | |
tree | 2c70058d39763d43f229d5098f04e1e997f320f9 /gdk/x11/gdkproperty-x11.c | |
parent | aa9f75179df280810eae115bc266e66e9c01e685 (diff) | |
download | gtk+-7ae3922d2cdc89cba86694f7e46393a629b12b61.tar.gz |
If window == NULL, assume the root window. (restoring the behaviour that
2000-10-25 Robert Brady <robert@suse.co.uk>
* gdk/x11/gdkproperty-x11.c (gdk_property_get, gdk_property_change,
gdk_property_delete): If window == NULL, assume the root window.
(restoring the behaviour that was in 1.2).
--------------------------------------------------------------------
Diffstat (limited to 'gdk/x11/gdkproperty-x11.c')
-rw-r--r-- | gdk/x11/gdkproperty-x11.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/gdk/x11/gdkproperty-x11.c b/gdk/x11/gdkproperty-x11.c index 4ff07a2b33..3929729892 100644 --- a/gdk/x11/gdkproperty-x11.c +++ b/gdk/x11/gdkproperty-x11.c @@ -112,8 +112,7 @@ gdk_property_get (GdkWindow *window, gulong ret_length; guchar *ret_data; - g_return_val_if_fail (window != NULL, FALSE); - g_return_val_if_fail (GDK_IS_WINDOW (window), FALSE); + g_return_val_if_fail (!window || GDK_IS_WINDOW (window), FALSE); if (window) { @@ -201,8 +200,7 @@ gdk_property_change (GdkWindow *window, Display *xdisplay; Window xwindow; - g_return_if_fail (window != NULL); - g_return_if_fail (GDK_IS_WINDOW (window)); + g_return_if_fail (!window || GDK_IS_WINDOW (window)); if (window) { @@ -229,8 +227,7 @@ gdk_property_delete (GdkWindow *window, Display *xdisplay; Window xwindow; - g_return_if_fail (window != NULL); - g_return_if_fail (GDK_IS_WINDOW (window)); + g_return_if_fail (!window || GDK_IS_WINDOW (window)); if (window) { |