[gtkmm] FileChooser::get_filter(): Don't ref the result.
- From: Murray Cumming <murrayc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtkmm] FileChooser::get_filter(): Don't ref the result.
- Date: Tue, 4 May 2010 11:11:02 +0000 (UTC)
commit 6b91d0fd747314426749c2a38c9f51000cde0b7c
Author: Murray Cumming <murrayc murrayc com>
Date: Tue May 4 13:10:52 2010 +0200
FileChooser::get_filter(): Don't ref the result.
* gtk/src/filechooser.hg: get_filter(): Don't ref the GtkFilter results,
because it is a GtkObject, not just a GObject, and we should not
reference-count GtkObjects. This does _not_ fix bug #583481 though.
ChangeLog | 8 ++++++++
gtk/src/filechooser.hg | 4 ++--
2 files changed, 10 insertions(+), 2 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index a817551..5e09e78 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2010-05-04 Murray Cumming <murrayc murrayc com>
+
+ FileChooser::get_filter(): Don't ref the result.
+
+ * gtk/src/filechooser.hg: get_filter(): Don't ref the GtkFilter results,
+ because it is a GtkObject, not just a GObject, and we should not
+ reference-count GtkObjects. This does _not_ fix bug #583481 though.
+
2010-04-23 David King <davidk openismus com>
Improvements to main page documentation
diff --git a/gtk/src/filechooser.hg b/gtk/src/filechooser.hg
index ab7b83d..7acf095 100644
--- a/gtk/src/filechooser.hg
+++ b/gtk/src/filechooser.hg
@@ -171,8 +171,8 @@ public:
/* Current filter
*/
_WRAP_METHOD(void set_filter(const FileFilter& filter), gtk_file_chooser_set_filter)
- _WRAP_METHOD(FileFilter* get_filter(), gtk_file_chooser_get_filter, refreturn)
- _WRAP_METHOD(const FileFilter* get_filter() const, gtk_file_chooser_get_filter, refreturn, constversion)
+ _WRAP_METHOD(FileFilter* get_filter(), gtk_file_chooser_get_filter)
+ _WRAP_METHOD(const FileFilter* get_filter() const, gtk_file_chooser_get_filter, constversion)
/* Per-application shortcut folders */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]