[gtkmm/gtkmm-2-22] Style: Fix the clone_vfunc() implementation.
- From: José Alburquerque <jaalburqu src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtkmm/gtkmm-2-22] Style: Fix the clone_vfunc() implementation.
- Date: Fri, 5 Nov 2010 20:34:28 +0000 (UTC)
commit 8f1662f7c227a72566106c94d48dfd8a5ea269be
Author: José Alburquerque <jaalburqu svn gnome org>
Date: Fri Nov 5 16:31:35 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 213dee5..f43ea74 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-01 José Alburquerque <jaalburqu svn gnome org>
Style: Virtual Functions: Correct reference counting errors.
diff --git a/gtk/src/style.hg b/gtk/src/style.hg
index e536686..8497760 100644
--- a/gtk/src/style.hg
+++ b/gtk/src/style.hg
@@ -436,7 +436,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]