[gtkmm] IconView: Add get/set_activate_on_single_click().



commit 78e8ecbe7d5680df68f0db1cf074594747fee9ad
Author: Murray Cumming <murrayc murrayc com>
Date:   Tue Mar 26 12:31:52 2013 +0100

    IconView: Add get/set_activate_on_single_click().
    
        * gtk/src/iconview.hg: Wrap the new
        gtk_icon_view_set_activate_on_single_click() and
        gtk_icon_view_get_activate_on_single_click() functions
        and the activate-on-single-click property.
        Also add get_cell_rect().

 ChangeLog           |   11 +++++++++++
 gtk/src/iconview.hg |   10 ++++++----
 2 files changed, 17 insertions(+), 4 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index c334a62..ad0751b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,4 +1,15 @@
+2013-03-25  Murray Cumming  <murrayc murrayc com>
+
+       IconView: Add get/set_activate_on_single_click().
+       
+       * gtk/src/iconview.hg: Wrap the new
+       gtk_icon_view_set_activate_on_single_click() and
+       gtk_icon_view_get_activate_on_single_click() functions
+       and the activate-on-single-click property.
+       Also add get_cell_rect().
+
 2013-03-26 Chun-wei Fan <fanc999 yahoo com tw>
+
        Update the Visual Studio Solution Files
 
        * MSVC_Net2005/gtkmm.sln:
diff --git a/gtk/src/iconview.hg b/gtk/src/iconview.hg
index 81357e0..b22669f 100644
--- a/gtk/src/iconview.hg
+++ b/gtk/src/iconview.hg
@@ -145,7 +145,9 @@ public:
 
   bool get_visible_range(TreeModel::Path& start_path, TreeModel::Path& end_path) const;
   _IGNORE(gtk_icon_view_get_visible_range)
-
+  
+  _WRAP_METHOD(void set_activate_on_single_click(bool single = true), 
gtk_icon_view_set_activate_on_single_click)
+  _WRAP_METHOD(bool get_activate_on_single_click() const, gtk_icon_view_get_activate_on_single_click)
 
   /** For instance,
    * void on_foreach(const Gtk::TreeModel::Path& path);
@@ -331,9 +333,8 @@ 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)
+#m4 _INITIALIZATION(`Gdk::Rectangle&',`GdkRectangle', `$3 = Glib::wrap(&($4))')
+  _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)
@@ -431,6 +432,7 @@ public:
   _WRAP_PROPERTY("tooltip-column", int)
   _WRAP_PROPERTY("item-padding", int)
   _WRAP_PROPERTY("cell-area", Glib::RefPtr<CellArea>)
+  _WRAP_PROPERTY("activate-on-single-click", bool)
 };
 
 } // namespace Gtk


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