diff options
author | Tim Janik <timj@gimp.org> | 1998-01-26 01:20:14 +0000 |
---|---|---|
committer | Tim Janik <timj@src.gnome.org> | 1998-01-26 01:20:14 +0000 |
commit | f734007af4cba93349a969b50ea1d44bfa0e95a3 (patch) | |
tree | 1acb1a364b6b2c3fb1e4bf14a6e9f5ebaa8b0a37 /gdk/gdkselection.c | |
parent | 63f6c689ff1ac6f28a412bf8a9861e9e7541be55 (diff) | |
download | gtk+-f734007af4cba93349a969b50ea1d44bfa0e95a3.tar.gz |
added a bunch of checks for window != NULL and private->destroyed. (don't
Mon Jan 26 02:15:29 1998 Tim Janik <timj@gimp.org>
* gdk/gdkdraw.c:
* gdk/gdkgc.c:
* gdk/gdkimage.c:
* gdk/gdkinput.c:
* gdk/gdkpixmap.c:
* gdk/gdkproperty.c:
* gdk/gdkselection.c:
* gdk/gdkwindow.c: added a bunch of checks for window != NULL and
private->destroyed.
(don't trust this cvs commit message, i didn't modify that many files!)
Diffstat (limited to 'gdk/gdkselection.c')
-rw-r--r-- | gdk/gdkselection.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/gdk/gdkselection.c b/gdk/gdkselection.c index f1fb5c6109..b8f1c9ff60 100644 --- a/gdk/gdkselection.c +++ b/gdk/gdkselection.c @@ -29,13 +29,17 @@ gdk_selection_owner_set (GdkWindow *owner, guint32 time, gint send_event) { - GdkWindowPrivate *private; Display *xdisplay; Window xwindow; if (owner) { + GdkWindowPrivate *private; + private = (GdkWindowPrivate*) owner; + if (private->destroyed) + return FALSE; + xdisplay = private->xdisplay; xwindow = private->xwindow; } @@ -73,6 +77,8 @@ gdk_selection_convert (GdkWindow *requestor, g_return_if_fail (requestor != NULL); private = (GdkWindowPrivate*) requestor; + if (private->destroyed) + return; XConvertSelection (private->xdisplay, selection, target, gdk_selection_property, private->xwindow, time); @@ -99,6 +105,8 @@ gdk_selection_property_get (GdkWindow *requestor, moderate length, to avoid two round trips to the server */ private = (GdkWindowPrivate*) requestor; + if (private->destroyed) + return 0; XGetWindowProperty (private->xdisplay, private->xwindow, gdk_selection_property, 0, 0, False, |