[gtk+/gtk-2-22] Add gdk_display_is_closed



commit 32c4f471d57a5e8cfc899028a59fbbaa323eb566
Author: John Stowers <john stowers gmail com>
Date:   Wed Jul 14 20:48:54 2010 +1200

    Add gdk_display_is_closed
    
    https://bugzilla.gnome.org/show_bug.cgi?id=624224

 docs/reference/gdk/gdk-sections.txt |    1 +
 gdk/gdk.symbols                     |    1 +
 gdk/gdkdisplay.c                    |   16 ++++++++++++++++
 gdk/gdkdisplay.h                    |    3 ++-
 4 files changed, 20 insertions(+), 1 deletions(-)
---
diff --git a/docs/reference/gdk/gdk-sections.txt b/docs/reference/gdk/gdk-sections.txt
index ff5a902..5343449 100644
--- a/docs/reference/gdk/gdk-sections.txt
+++ b/docs/reference/gdk/gdk-sections.txt
@@ -132,6 +132,7 @@ gdk_display_beep
 gdk_display_sync
 gdk_display_flush
 gdk_display_close
+gdk_display_is_closed
 gdk_display_list_devices
 gdk_display_get_event
 gdk_display_peek_event
diff --git a/gdk/gdk.symbols b/gdk/gdk.symbols
index 015a659..68fd406 100644
--- a/gdk/gdk.symbols
+++ b/gdk/gdk.symbols
@@ -436,6 +436,7 @@ gdk_display_get_event
 gdk_display_get_pointer
 gdk_display_get_type G_GNUC_CONST
 gdk_display_get_window_at_pointer
+gdk_display_is_closed
 gdk_display_peek_event
 gdk_display_put_event
 gdk_display_set_pointer_hooks
diff --git a/gdk/gdkdisplay.c b/gdk/gdkdisplay.c
index c4baa1d..5037886 100644
--- a/gdk/gdkdisplay.c
+++ b/gdk/gdkdisplay.c
@@ -200,6 +200,22 @@ gdk_display_close (GdkDisplay *display)
 }
 
 /**
+ * gdk_display_is_closed:
+ * @display: a #GdkDisplay
+ *
+ * Returns %TRUE if the display is closed.
+ *
+ * Since: 2.22
+ */
+gboolean
+gdk_display_is_closed  (GdkDisplay  *display)
+{
+  g_return_val_if_fail (GDK_IS_DISPLAY (display), FALSE);
+
+  return display->closed;
+}
+
+/**
  * gdk_display_get_event:
  * @display: a #GdkDisplay
  * 
diff --git a/gdk/gdkdisplay.h b/gdk/gdkdisplay.h
index 2863656..a2fdc27 100644
--- a/gdk/gdkdisplay.h
+++ b/gdk/gdkdisplay.h
@@ -156,7 +156,8 @@ void        gdk_display_beep               (GdkDisplay  *display);
 void        gdk_display_sync               (GdkDisplay  *display);
 void        gdk_display_flush              (GdkDisplay  *display);
 
-void	    gdk_display_close		   (GdkDisplay  *display);
+void	    gdk_display_close		       (GdkDisplay  *display);
+gboolean    gdk_display_is_closed          (GdkDisplay  *display);
 
 GList *     gdk_display_list_devices       (GdkDisplay  *display);
 



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