[gtkmm] Style: Fix the clone_vfunc() implementation.



commit c701ff69b220de97e8ad2881dbb48dcbb0637601
Author: José Alburquerque <jaalburqu svn gnome org>
Date:   Fri Nov 5 16:26:54 2010 -0400

    	Style: Fix the clone_vfunc() implementation.
    
    	* gtk/src/style.hg: Modify the clone_vfunc() to take an extra
    	reference of the GtkStyle obtained from the base class.  This is so
    	that the clone_vfunc_callback() does not lose its last reference after
    	it executes.
    
    	Fixes GNOME Bug #633975 (mario).

 ChangeLog        |   11 +++++++++++
 gtk/src/style.hg |    2 ++
 2 files changed, 13 insertions(+), 0 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 247d56a..c7922ec 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,14 @@
+2010-11-05  José Alburquerque  <jaalburqu svn gnome org>
+
+	Style: Fix the clone_vfunc() implementation.
+
+	* gtk/src/style.hg: Modify the clone_vfunc() to take an extra
+	reference of the GtkStyle obtained from the base class.  This is so
+	that the clone_vfunc_callback() does not lose its last reference after
+	it executes.
+
+	Fixes GNOME Bug #633975 (mario).
+
 2010-11-04  Murray Cumming  <murrayc murrayc com>
 
 	Widget: Remove the deprecated size-request signal.
diff --git a/gtk/src/style.hg b/gtk/src/style.hg
index 93ba3c5..05634e7 100644
--- a/gtk/src/style.hg
+++ b/gtk/src/style.hg
@@ -362,7 +362,9 @@ protected:
 #m4 _CONVERSION(`GtkStyle*',`const Glib::RefPtr<Style>&',`Glib::wrap($3, true)')
   _WRAP_VFUNC(void copy(const Glib::RefPtr<Style>& src), copy)
 
+#m4 _CONVERSION(`GtkStyle*', `Glib::RefPtr<Style>', `Glib::wrap($3, true)')
   _WRAP_VFUNC(Glib::RefPtr<Style> clone(), clone)
+#m4 _CONVERSION(`GtkStyle*', `Glib::RefPtr<Style>', `Glib::wrap($3)')
 
 #m4 _CONVERSION(`GtkRcStyle*',`const Glib::RefPtr<RcStyle>&',`Glib::wrap($3, true)')
   _WRAP_VFUNC(void init_from_rc(const Glib::RefPtr<RcStyle>& rc_style), init_from_rc)



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