[gtkmm] Implement Gtk::IconView::IconView(Gtk::CellArea). Bug #665361
- From: Hubert FiguiÃre <hub src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtkmm] Implement Gtk::IconView::IconView(Gtk::CellArea). Bug #665361
- Date: Wed, 28 Dec 2011 02:58:23 +0000 (UTC)
commit 9e7212f330fc7976af6d470820536b8b17e99838
Author: Hub Figuiere <hub figuiere net>
Date: Sat Dec 24 15:08:32 2011 -0800
Implement Gtk::IconView::IconView(Gtk::CellArea). Bug #665361
* tools/m4/convert_gtk.m4:
m4 macro for CellArea
* gtk/src/cellareabox.hg:
Wrap the create function for Gtk::CellAreaBox.
* gtk/src/iconview.hg:
Construct with a CellArea.
ChangeLog | 11 +++++++++++
gtk/src/cellareabox.hg | 3 ++-
gtk/src/iconview.hg | 2 ++
tools/m4/convert_gtk.m4 | 1 +
4 files changed, 16 insertions(+), 1 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 680cdc6..89452ac 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,14 @@
+2011-12-24 Hub FiguiÃre <hub figuiere net>
+
+ Implement Gtk::IconView::IconView(Gtk::CellArea). Bug #665361
+
+ * tools/m4/convert_gtk.m4:
+ m4 macro for CellArea
+ * gtk/src/cellareabox.hg:
+ Wrap the create function for Gtk::CellAreaBox.
+ * gtk/src/iconview.hg:
+ Construct with a CellArea.
+
2011-12-01 Hub FiguiÃre <hub figuiere net>
Add missing Gtk::Settings properties. Bug #665264
diff --git a/gtk/src/cellareabox.hg b/gtk/src/cellareabox.hg
index 519cd35..9d1e5ea 100644
--- a/gtk/src/cellareabox.hg
+++ b/gtk/src/cellareabox.hg
@@ -52,8 +52,9 @@ class CellAreaBox
protected:
_CTOR_DEFAULT
- _IGNORE(gtk_cell_area_box_new)
public:
+ _WRAP_CREATE()
+ _IGNORE(gtk_cell_area_box_new)
//TODO: Are these good default values:
_WRAP_METHOD(void pack_start(CellRenderer& renderer, bool expand = false, bool align = true, bool fixed = false), gtk_cell_area_box_pack_start)
diff --git a/gtk/src/iconview.hg b/gtk/src/iconview.hg
index a2f9381..c33a724 100644
--- a/gtk/src/iconview.hg
+++ b/gtk/src/iconview.hg
@@ -25,6 +25,7 @@
#include <gtkmm/treemodel.h>
#include <gtkmm/treepath.h>
#include <gtkmm/celllayout.h>
+#include <gtkmm/cellarea.h>
#include <gtkmm/cellrenderer.h>
#include <gtkmm/scrollable.h>
#include <gtkmm/tooltip.h>
@@ -59,6 +60,7 @@ public:
_CTOR_DEFAULT()
_WRAP_CTOR(IconView(const Glib::RefPtr<TreeModel>& model), gtk_icon_view_new_with_model)
+ _WRAP_CTOR(IconView(const Glib::RefPtr<CellArea>& cell_area), gtk_icon_view_new_with_area)
_WRAP_METHOD(void set_model(const Glib::RefPtr<TreeModel>& model), gtk_icon_view_set_model)
diff --git a/tools/m4/convert_gtk.m4 b/tools/m4/convert_gtk.m4
index 3586ea8..fd57dff 100644
--- a/tools/m4/convert_gtk.m4
+++ b/tools/m4/convert_gtk.m4
@@ -219,6 +219,7 @@ _CONVERSION(`Gtk::Object&',`GObject*', `($3).Glib::Object::gobj()')
_CONVERSION(`GtkCellArea*',`Glib::RefPtr<CellArea>',`Glib::wrap($3)')
_CONVERSION(`GtkCellArea*',`Glib::RefPtr<const CellArea>',`Glib::wrap($3)')
+_CONVERSION(`const Glib::RefPtr<CellArea>&',`GtkCellArea*',__CONVERT_REFPTR_TO_P)
_CONVERSION(`GtkCellAreaContext*',`Glib::RefPtr<CellAreaContext>',`Glib::wrap($3)')
_CONVERSION(`GtkCellAreaContext*',`Glib::RefPtr<const CellAreaContext>',`Glib::wrap($3)')
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]