[gtkmm] Gdk::Window::get_default_root_window(): Correct the reference counting.



commit 5b86f5c78dbc622c0bfcba7a1699e5f31e6055a7
Author: Murray Cumming <murrayc murrayc com>
Date:   Wed Dec 30 09:27:40 2009 +0100

    Gdk::Window::get_default_root_window(): Correct the reference counting.
    
    * gdk/src/window.hg: get_default_root_window(): Use refreturn to
    correct ref the result.
    Bug #603852 (Mikko Rasa).

 ChangeLog         |    8 ++++++++
 gdk/src/window.hg |    2 +-
 2 files changed, 9 insertions(+), 1 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 1eede47..3959cc7 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2009-12-30  Murray Cumming  <murrayc murrayc-desktop>
+
+	Gdk::Window::get_default_root_window(): Correct the reference counting.
+
+	* gdk/src/window.hg: get_default_root_window(): Use refreturn to 
+	correct ref the result.
+	Bug #603852 (Mikko Rasa).
+
 2009-12-22  Murray Cumming  <murrayc murrayc com>>
 
 	Added and used ToolItemGroup.
diff --git a/gdk/src/window.hg b/gdk/src/window.hg
index 977cd45..c12010f 100644
--- a/gdk/src/window.hg
+++ b/gdk/src/window.hg
@@ -293,7 +293,7 @@ public:
 
   _WRAP_METHOD(void set_focus_on_map(bool focus_on_map), gdk_window_set_focus_on_map)
 
-  _WRAP_METHOD(static Glib::RefPtr<Window> get_default_root_window(), gdk_get_default_root_window)
+  _WRAP_METHOD(static Glib::RefPtr<Window> get_default_root_window(), gdk_get_default_root_window, refreturn)
 
   _WRAP_METHOD(Glib::RefPtr<Pixmap> get_offscreen_pixmap(), gdk_offscreen_window_get_pixmap, refreturn)
   _WRAP_METHOD(Glib::RefPtr<const Pixmap> get_offscreen_pixmap() const, gdk_offscreen_window_get_pixmap, constversion, refreturn)



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