[gtkmm: 4/10] Change constructors for DropDown and ListView
- From: Kjell Ahlstedt <kjellahl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtkmm: 4/10] Change constructors for DropDown and ListView
- Date: Fri, 31 Jul 2020 16:49:37 +0000 (UTC)
commit be0dcb49a35cbb728336bded05c50db71761b646
Author: Andreas Persson <andreasp56 outlook com>
Date: Wed Jul 29 08:23:23 2020 +0200
Change constructors for DropDown and ListView
Constructors for DropDown and ListView were changed in Gtk. One DropDown
constructor is left to do, as it uses Expression which is not wrapped
yet.
gtk/src/dropdown.hg | 3 +--
gtk/src/listview.hg | 3 +--
2 files changed, 2 insertions(+), 4 deletions(-)
---
diff --git a/gtk/src/dropdown.hg b/gtk/src/dropdown.hg
index 583ff7bd1..c0bb546a3 100644
--- a/gtk/src/dropdown.hg
+++ b/gtk/src/dropdown.hg
@@ -61,9 +61,8 @@ class GTKMM_API DropDown : public Widget
public:
_CTOR_DEFAULT
-
#m4 _CONVERSION(`const std::vector<Glib::ustring>&',`const
char*-const*',`Glib::ArrayHandler<Glib::ustring>::vector_to_array($3).data()')
- _WRAP_METHOD(void set_from_strings(const std::vector<Glib::ustring>& strings),
gtk_drop_down_set_from_strings)
+ _WRAP_CTOR(DropDown(const std::vector<Glib::ustring>& strings), gtk_drop_down_new_from_strings)
_WRAP_METHOD(void set_model(const Glib::RefPtr<Gio::ListModel>& model), gtk_drop_down_set_model)
_WRAP_METHOD(Glib::RefPtr<Gio::ListModel> get_model(), gtk_drop_down_get_model, refreturn)
diff --git a/gtk/src/listview.hg b/gtk/src/listview.hg
index 6f1b934a3..42c68f17b 100644
--- a/gtk/src/listview.hg
+++ b/gtk/src/listview.hg
@@ -92,8 +92,7 @@ class GTKMM_API ListView : public ListBase
_CLASS_GTKOBJECT(ListView, GtkListView, GTK_LIST_VIEW, ListBase, GtkListBase, , , GTKMM_API)
public:
- _CTOR_DEFAULT
- _WRAP_CTOR(ListView(const Glib::RefPtr<ListItemFactory>& factory), gtk_list_view_new_with_factory)
+ _WRAP_CTOR(ListView(const Glib::RefPtr<Gio::ListModel>& model = {}, const Glib::RefPtr<ListItemFactory>&
factory = {}), gtk_list_view_new_with_factory)
_WRAP_METHOD(Glib::RefPtr<Gio::ListModel> get_model(), gtk_list_view_get_model, refreturn)
_WRAP_METHOD(Glib::RefPtr<const Gio::ListModel> get_model() const, gtk_list_view_get_model, refreturn,
constversion)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]