summaryrefslogtreecommitdiff
path: root/gdk/gdkdnd.c
diff options
context:
space:
mode:
authorOwen Taylor <otaylor@redhat.com>1999-10-03 22:12:41 +0000
committerOwen Taylor <otaylor@src.gnome.org>1999-10-03 22:12:41 +0000
commitf903bdf1a745021df882b4f5ba2724e7536a3c5d (patch)
tree6c6d081a42a6c650a9a366caa4222ae9e0af2fe6 /gdk/gdkdnd.c
parent344e8000a2d338719d6870faf4ca4e18bd2094ed (diff)
downloadgdk-pixbuf-f903bdf1a745021df882b4f5ba2724e7536a3c5d.tar.gz
Fix a reference to window_private->destroyed.
Sun Oct 3 18:13:44 1999 Owen Taylor <otaylor@redhat.com> * gtk/gtkwidget.c (gtk_reset_shapes_recurse): Fix a reference to window_private->destroyed. * gtk/gtkplug.c (gtk_plug_realize): Fix up a direct (ugly) setting of an internal GdkWindow member to use a _slightly_ cleaner macro. * gdk/gdkprivate.h: Split GdkWindowPrivate into GdkDrawablePrivate and GdkWindowPrivate. Add extra macros for accessing GDK_DRAWABLE_ components. * *.[ch]: Massive adjustments for the above, use the new macros in a lot of places.
Diffstat (limited to 'gdk/gdkdnd.c')
-rw-r--r--gdk/gdkdnd.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/gdk/gdkdnd.c b/gdk/gdkdnd.c
index 378822924..a58da225b 100644
--- a/gdk/gdkdnd.c
+++ b/gdk/gdkdnd.c
@@ -2416,9 +2416,8 @@ xdnd_manage_source_filter (GdkDragContext *context,
gboolean add_filter)
{
gint old_warnings = 0; /* quiet gcc */
- GdkWindowPrivate *private = (GdkWindowPrivate *)window;
- gboolean is_foreign = (private->window_type == GDK_WINDOW_FOREIGN);
+ gboolean is_foreign = GDK_DRAWABLE_TYPE (window);
if (is_foreign)
{
@@ -2426,7 +2425,7 @@ xdnd_manage_source_filter (GdkDragContext *context,
gdk_error_warnings = 0;
}
- if (!private->destroyed)
+ if (!GDK_DRAWABLE_DESTROYED (window))
{
if (add_filter)
{