[gtkmm] Window: Added unset_application,



commit cebae217710eeaba92c209a9dade9abb2324e20a
Author: Murray Cumming <murrayc murrayc com>
Date:   Fri Mar 4 13:29:36 2011 +0100

    Window: Added unset_application,
    
    * gtk/src/window.[hg|ccg]: Added unset_application() because the parameter
    can be NULL.

 ChangeLog          |    7 +++++++
 gtk/src/window.ccg |    5 +++++
 gtk/src/window.hg  |    5 +++++
 3 files changed, 17 insertions(+), 0 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index e38eeee..3aa68e9 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2011-03-04  Murray Cumming  <murrayc murrayc com>
+
+	Window: Added unset_application, 
+
+	* gtk/src/window.[hg|ccg]: Added unset_application() because the parameter 
+	can be NULL.
+
 2011-02-23  Murray Cumming  <murrayc murrayc com>
 
 	Added class overview documentation for new classes.
diff --git a/gtk/src/window.ccg b/gtk/src/window.ccg
index 2dd3e91..c9a097f 100644
--- a/gtk/src/window.ccg
+++ b/gtk/src/window.ccg
@@ -198,4 +198,9 @@ void Window::unset_transient_for()
   gtk_window_set_transient_for(gobj(), 0 /* See GTK+ docs */);
 }
 
+void Window::unset_application()
+{
+  gtk_window_set_application(gobj(), 0 /* See GTK+ docs */);
+}
+
 } // namespace Gtk
diff --git a/gtk/src/window.hg b/gtk/src/window.hg
index 84d121c..ea879d5 100644
--- a/gtk/src/window.hg
+++ b/gtk/src/window.hg
@@ -329,6 +329,11 @@ dnl
   _WRAP_METHOD(Glib::RefPtr<const Application> get_application() const, gtk_window_get_application, refreturn)
   
   _WRAP_METHOD(void set_application(const Glib::RefPtr<Application>& application), gtk_window_set_application)
+  
+  /** Unsets the Application associated with the window.
+   * This could cause the application to exit if it is the application's last window.
+   */
+  void unset_application();
                                                  
   _WRAP_METHOD(void set_has_resize_grip(bool setting = true), gtk_window_set_has_resize_grip)
   _WRAP_METHOD(bool get_has_resize_grip() const, gtk_window_get_has_resize_grip)



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