[mutter] window: Add an accessor for whether the window can close



commit 50b9042ac29886721a30772363867b694abbf77c
Author: Jasper St. Pierre <jstpierre mecheye net>
Date:   Fri Apr 26 11:33:11 2013 -0400

    window: Add an accessor for whether the window can close
    
    The shell will use this to determine whether to show a close
    button in the overview.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=699269

 src/core/window.c |    6 ++++++
 src/meta/window.h |    2 ++
 2 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/src/core/window.c b/src/core/window.c
index d16b6fa..1c9b291 100644
--- a/src/core/window.c
+++ b/src/core/window.c
@@ -11218,3 +11218,9 @@ meta_window_compute_tile_match (MetaWindow *window)
       window->tile_match = match;
     }
 }
+
+gboolean
+meta_window_can_close (MetaWindow *window)
+{
+  return window->has_close_func;
+}
diff --git a/src/meta/window.h b/src/meta/window.h
index 07ca88b..9679454 100644
--- a/src/meta/window.h
+++ b/src/meta/window.h
@@ -237,4 +237,6 @@ void meta_window_begin_grab_op (MetaWindow *window,
                                 gboolean    frame_action,
                                 guint32     timestamp);
 
+gboolean meta_window_can_close (MetaWindow *window);
+
 #endif


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