[gtkmm/directorylist] Gtk::DirectoryList: fix ref count and property
- From: Andreas Persson <andreasp src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtkmm/directorylist] Gtk::DirectoryList: fix ref count and property
- Date: Sun, 4 Oct 2020 16:55:21 +0000 (UTC)
commit b2bd71e70494f5d38601d77d9ec4e03c28bf9f75
Author: Andreas Persson <andreasp56 outlook com>
Date: Sun Oct 4 18:53:10 2020 +0200
Gtk::DirectoryList: fix ref count and property
Declare the get_file methods as refreturn. Remove item-type property, as
it was recently removed from gtk.
gtk/src/directorylist.hg | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/gtk/src/directorylist.hg b/gtk/src/directorylist.hg
index fa9181d8..6e6e814c 100644
--- a/gtk/src/directorylist.hg
+++ b/gtk/src/directorylist.hg
@@ -65,8 +65,8 @@ public:
_WRAP_CREATE(const std::string& attributes, const Glib::RefPtr<Gio::File>& file = {})
_WRAP_METHOD(void set_file(const Glib::RefPtr<Gio::File>& file), gtk_directory_list_set_file)
- _WRAP_METHOD(Glib::RefPtr<Gio::File> get_file(), gtk_directory_list_get_file)
- _WRAP_METHOD(Glib::RefPtr<const Gio::File> get_file() const, gtk_directory_list_get_file, constversion)
+ _WRAP_METHOD(Glib::RefPtr<Gio::File> get_file(), gtk_directory_list_get_file, refreturn)
+ _WRAP_METHOD(Glib::RefPtr<const Gio::File> get_file() const, gtk_directory_list_get_file, refreturn,
constversion)
_WRAP_METHOD(void set_attributes(const std::string& attributes), gtk_directory_list_set_attributes)
_WRAP_METHOD(std::string get_attributes() const, gtk_directory_list_get_attributes)
_WRAP_METHOD(void set_io_priority(int io_priority), gtk_directory_list_set_io_priority)
@@ -83,7 +83,6 @@ public:
_WRAP_PROPERTY("error", Glib::Error)
_WRAP_PROPERTY("file", Glib::RefPtr<Gio::File>)
_WRAP_PROPERTY("io-priority", int)
- _WRAP_PROPERTY("item-type", GType)
_WRAP_PROPERTY("loading", bool)
_WRAP_PROPERTY("monitored", bool)
};
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]