[gtkmm] IconView: Added some new methods and properties.



commit b21990f4ff3373ecade239f52a7a2798ef68a8d8
Author: Murray Cumming <murrayc murrayc com>
Date:   Tue Sep 25 22:02:07 2012 +0200

    IconView: Added some new methods and properties.
    
            * gtk/src/iconview.hg: Added get_item_row() and get_item_column().
    Added the reorderable, tooltip-column and item-padding properties.
    These seem to have been in GTK+ for a long time without us
    noticing that they were not wrapped.

 ChangeLog           |    9 +++++++++
 gtk/src/iconview.hg |   15 +++++++++++++++
 2 files changed, 24 insertions(+), 0 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index b90aa7d..510a2ba 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,14 @@
 2012-09-25  Murray Cumming  <murrayc murrayc com>
 
+        IconView: Added some new methods and properties.
+
+        * gtk/src/iconview.hg: Added get_item_row() and get_item_column().
+	Added the reorderable, tooltip-column and item-padding properties.
+	These seem to have been in GTK+ for a long time without us
+	noticing that they were not wrapped.
+
+2012-09-25  Murray Cumming  <murrayc murrayc com>
+
         Update the docs XML.
 
         * gdk/src/gdk_docs.xml:
diff --git a/gtk/src/iconview.hg b/gtk/src/iconview.hg
index 77f82e6..7a18e86 100644
--- a/gtk/src/iconview.hg
+++ b/gtk/src/iconview.hg
@@ -99,6 +99,9 @@ public:
   _WRAP_METHOD(void set_margin(int margin), gtk_icon_view_set_margin)
   _WRAP_METHOD(int get_margin() const, gtk_icon_view_get_margin)
 
+  _WRAP_METHOD(void set_item_padding(int item_padding), gtk_icon_view_set_item_padding)
+  _WRAP_METHOD(int get_item_padding() const, gtk_icon_view_get_item_padding)
+
   _WRAP_METHOD(TreeModel::Path get_path_at_pos(int x, int y) const, gtk_icon_view_get_path_at_pos )
 
 
@@ -164,6 +167,9 @@ public:
   _WRAP_METHOD(void unselect_path(const TreeModel::Path& path), gtk_icon_view_unselect_path)
   _WRAP_METHOD(bool path_is_selected(const TreeModel::Path& path) const, gtk_icon_view_path_is_selected)
 
+  _WRAP_METHOD(int get_item_row(const TreeModel::Path& path) const, gtk_icon_view_get_item_row)
+  _WRAP_METHOD(int get_item_column(const TreeModel::Path& path) const, gtk_icon_view_get_item_column)
+
 
   #ifndef DOXYGEN_SHOULD_SKIP_THIS
   //TODO: I'm not sure about these to_*() functions. murrayc.
@@ -325,6 +331,11 @@ public:
 
   _WRAP_METHOD(void convert_widget_to_bin_window_coords(int wx, int wy, int& bx, int& by) const, gtk_icon_view_convert_widget_to_bin_window_coords)
 
+//TODO: See https://bugzilla.gnome.org/show_bug.cgi?id=662371#c12
+//TODO: #m4 _INITIALIZATION(`Gdk::Rectangle&',`GdkRectangle', `$3 = Glib::wrap(&($4))')
+//TODO:  _WRAP_METHOD(bool get_cell_rect(const TreeModel::Path& path, const CellRenderer& cell{?}, Gdk::Rectangle& rect{.>>}) const, gtk_icon_view_get_cell_rect)
+
+
   _WRAP_METHOD(void set_tooltip_item(const Glib::RefPtr<Tooltip>& tooltip, const TreeModel::Path& path), gtk_icon_view_set_tooltip_item)
   _WRAP_METHOD(void set_tooltip_cell(const Glib::RefPtr<Tooltip>& tooltip, const TreeModel::Path& path, CellRenderer& cell), gtk_icon_view_set_tooltip_cell)
 
@@ -388,6 +399,7 @@ public:
   bool get_tooltip_context_iter(int& x, int& y,
                                 bool keyboard_tip,
                                 Gtk::TreeModel::iterator& iter);
+  _IGNORE(gtk_icon_view_get_tooltip_context)
 
   _WRAP_METHOD(void set_tooltip_column(int column), gtk_icon_view_set_tooltip_column)
   _WRAP_METHOD(int get_tooltip_column() const, gtk_icon_view_get_tooltip_column)
@@ -415,6 +427,9 @@ public:
   _WRAP_PROPERTY("row-spacing", int)
   _WRAP_PROPERTY("column-spacing", int)
   _WRAP_PROPERTY("margin", int)
+  _WRAP_PROPERTY("reorderable", int)
+  _WRAP_PROPERTY("tooltip-column", int)
+  _WRAP_PROPERTY("item-padding", int)
   _WRAP_PROPERTY("cell-area", Glib::RefPtr<CellArea>)
 };
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]