[gtk+] Add gdk_window_is_destroyed



commit f64ef921da53be7268f4a337e1fbeaa3332016b0
Author: Alexander Larsson <alexl redhat com>
Date:   Fri Sep 4 17:49:57 2009 +0200

    Add gdk_window_is_destroyed

 gdk/gdk.symbols |    1 +
 gdk/gdkwindow.c |   14 ++++++++++++++
 gdk/gdkwindow.h |    1 +
 3 files changed, 16 insertions(+), 0 deletions(-)
---
diff --git a/gdk/gdk.symbols b/gdk/gdk.symbols
index e8c5109..22226a6 100644
--- a/gdk/gdk.symbols
+++ b/gdk/gdk.symbols
@@ -701,6 +701,7 @@ gdk_window_get_toplevels
 gdk_window_get_update_area
 gdk_window_get_user_data
 gdk_window_get_window_type
+gdk_window_is_destroyed
 gdk_window_invalidate_maybe_recurse
 gdk_window_invalidate_rect
 gdk_window_invalidate_region
diff --git a/gdk/gdkwindow.c b/gdk/gdkwindow.c
index 3c611e0..40176b2 100644
--- a/gdk/gdkwindow.c
+++ b/gdk/gdkwindow.c
@@ -2097,6 +2097,20 @@ gdk_window_get_window_type (GdkWindow *window)
 }
 
 /**
+ * gdk_window_is_destroyed:
+ * @window: a #GdkWindow
+ *
+ * Check to see if a window is destroyed..
+ *
+ * Return value: %TRUE if the window is destroyed
+ **/
+gboolean
+gdk_window_is_destroyed (GdkWindow *window)
+{
+  return GDK_WINDOW_DESTROYED (window);
+}
+
+/**
  * gdk_window_get_position:
  * @window: a #GdkWindow
  * @x: X coordinate of window
diff --git a/gdk/gdkwindow.h b/gdk/gdkwindow.h
index bea3ca9..36a79f0 100644
--- a/gdk/gdkwindow.h
+++ b/gdk/gdkwindow.h
@@ -330,6 +330,7 @@ GdkWindow*    gdk_window_new                   (GdkWindow     *parent,
                                                 gint           attributes_mask);
 void          gdk_window_destroy               (GdkWindow     *window);
 GdkWindowType gdk_window_get_window_type       (GdkWindow     *window);
+gboolean      gdk_window_is_destroyed          (GdkWindow     *window);
 GdkWindow*    gdk_window_at_pointer            (gint          *win_x,
                                                 gint          *win_y);
 void          gdk_window_show                  (GdkWindow     *window);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]