[gtkmm/gtkmm-2-22] IconView: Added get/set_item_orientation().



commit 08a5b6f83cce37d3d249eb12488ae625c776213e
Author: Murray Cumming <murrayc murrayc com>
Date:   Mon Sep 13 16:46:40 2010 +0200

    IconView: Added get/set_item_orientation().
    
    * gtk/src/gtk_methods.defs: Regenerated with h2defs.py.
    * gtk/src/iconview.hg: Added get/set_item_orientation() and property.

 ChangeLog                |    7 +++++++
 gtk/src/gtk_methods.defs |   15 +++++++++++++++
 gtk/src/iconview.hg      |   39 +++++++++++++++++++++------------------
 3 files changed, 43 insertions(+), 18 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 118edea..38cb63c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,12 @@
 2010-09-13  Murray Cumming  <murrayc murrayc com>
 
+	IconView: Added get/set_item_orientation().
+
+	* gtk/src/gtk_methods.defs: Regenerated with h2defs.py.
+	* gtk/src/iconview.hg: Added get/set_item_orientation() and property.
+
+2010-09-13  Murray Cumming  <murrayc murrayc com>
+
 	Fix compilation errors when disabling deprecated gdkmm API.
 
 	* gdk/src/rgbcmap.[hg|ccg]: Use GDKMM_DISABLE_DEPRECATED instead of
diff --git a/gtk/src/gtk_methods.defs b/gtk/src/gtk_methods.defs
index 33349c0..585c0d8 100644
--- a/gtk/src/gtk_methods.defs
+++ b/gtk/src/gtk_methods.defs
@@ -12876,6 +12876,21 @@
   (return-type "GtkOrientation")
 )
 
+(define-method set_item_orientation
+  (of-object "GtkIconView")
+  (c-name "gtk_icon_view_set_item_orientation")
+  (return-type "none")
+  (parameters
+    '("GtkOrientation" "orientation")
+  )
+)
+
+(define-method get_item_orientation
+  (of-object "GtkIconView")
+  (c-name "gtk_icon_view_get_item_orientation")
+  (return-type "GtkOrientation")
+)
+
 (define-method set_columns
   (of-object "GtkIconView")
   (c-name "gtk_icon_view_set_columns")
diff --git a/gtk/src/iconview.hg b/gtk/src/iconview.hg
index 8ef6492..fed002d 100644
--- a/gtk/src/iconview.hg
+++ b/gtk/src/iconview.hg
@@ -1,7 +1,7 @@
 /* $Id: iconview.hg,v 1.11 2006/07/08 16:31:38 murrayc Exp $ */
 
 /* iconview.h
- * 
+ *
  * Copyright (C) 1998-2004 The gtkmm Development Team
  *
  * This library is free software; you can redistribute it and/or
@@ -36,8 +36,8 @@ _WRAP_ENUM(IconViewDropPosition, GtkIconViewDropPosition)
 //TODO: This should derive+implement from CellLayout when we can break ABI.
 
 /** The IconView provides an alternative view of a list model.
- * It displays the model as a grid of icons with labels. 
- * Like the TreeView, it allows the user to select one or multiple items 
+ * It displays the model as a grid of icons with labels.
+ * Like the TreeView, it allows the user to select one or multiple items
  * (depending on the selection mode - see set_selection_mode()).
  * In addition to selection with the arrow keys, the IconView supports
  * rubberband selection, by dragging the pointer.
@@ -70,15 +70,18 @@ public:
   _WRAP_METHOD(void set_text_column(const TreeModelColumnBase& model_column), gtk_icon_view_set_text_column)
   _WRAP_METHOD(int get_text_column() const, gtk_icon_view_get_text_column)
   _WRAP_METHOD(void set_markup_column(int column), gtk_icon_view_set_markup_column)
-  _WRAP_METHOD(void set_markup_column(const TreeModelColumnBase& column), gtk_icon_view_set_markup_column) 
+  _WRAP_METHOD(void set_markup_column(const TreeModelColumnBase& column), gtk_icon_view_set_markup_column)
   _WRAP_METHOD(int get_markup_column() const, gtk_icon_view_get_markup_column )
   _WRAP_METHOD(void set_pixbuf_column(int column), gtk_icon_view_set_pixbuf_column)
-  _WRAP_METHOD(void set_pixbuf_column(const TreeModelColumnBase& column), gtk_icon_view_set_pixbuf_column)  
+  _WRAP_METHOD(void set_pixbuf_column(const TreeModelColumnBase& column), gtk_icon_view_set_pixbuf_column)
   _WRAP_METHOD(int get_pixbuf_column() const, gtk_icon_view_get_pixbuf_column)
 
   _WRAP_METHOD(void set_orientation(Orientation orientation), gtk_icon_view_set_orientation)
   _WRAP_METHOD(Orientation get_orientation() const, gtk_icon_view_get_orientation)
 
+  _WRAP_METHOD(void set_item_orientation(Orientation orientation), gtk_icon_view_set_item_orientation)
+  _WRAP_METHOD(Orientation get_item_orientation() const, gtk_icon_view_get_item_orientation)
+
   _WRAP_METHOD(void set_columns(int columns), gtk_icon_view_set_columns)
   _WRAP_METHOD(int get_columns() const, gtk_icon_view_get_columns)
   _WRAP_METHOD(void set_item_width(int item_width), gtk_icon_view_set_item_width)
@@ -102,7 +105,7 @@ public:
    * @param y The y position to be identified.
    * @param path The path.
    * @param cell The renderer responsible for the cell at (@a x, @a y).
-   * 
+   *
    * @result true if an item exists at the specified position.
    *
    * @newin{2,6}
@@ -114,7 +117,7 @@ public:
    * @param x The x position to be identified.
    * @param y The y position to be identified.
    * @param path The path.
-   * 
+   *
    * @result true if an item exists at the specified position.
    *
    * @newin{2,6}
@@ -126,7 +129,7 @@ public:
    * @param x The x position to be identified.
    * @param y The y position to be identified.
    * @param path The path.
-   * 
+   *
    * @result true if an item exists at the specified position.
    *
    * @newin{2,6}
@@ -138,7 +141,7 @@ public:
   _IGNORE(gtk_icon_view_get_visible_range)
 
 
-  /** For instance, 
+  /** For instance,
    * void on_foreach(const Gtk::TreeModel::Path& path);
    */
   typedef sigc::slot<void, const TreeModel::Path&> SlotForeach;
@@ -186,7 +189,7 @@ public:
   //TODO: Add a version with no cell parameter.
   _WRAP_METHOD(void set_cursor(const TreeModel::Path& path, CellRenderer& cell, bool start_editing), gtk_icon_view_set_cursor)
 
-  /** Fills in @a path and @a cell with the current cursor path and cell. 
+  /** Fills in @a path and @a cell with the current cursor path and cell.
    * If the cursor isn't currently set, then @a path will be empty.
    * If no cell currently has focus, then @a cell will be NULL.
    *
@@ -198,7 +201,7 @@ public:
    */
   bool get_cursor(TreeModel::Path& path, CellRenderer*& cell) const;
 
-  /** Fills in @a path and @a cell with the current cursor path and cell. 
+  /** Fills in @a path and @a cell with the current cursor path and cell.
    * If the cursor isn't currently set, then @a path will be empty.
    * If no cell currently has focus, then @a cell will be NULL.
    *
@@ -209,7 +212,7 @@ public:
    */
   bool get_cursor(TreeModel::Path& path) const;
 
-  /** Fills in @a path and @a cell with the current cursor path and cell. 
+  /** Fills in @a path and @a cell with the current cursor path and cell.
    * If the cursor isn't currently set, then @a path will be empty.
    * If no cell currently has focus, then @a cell will be NULL.
    *
@@ -305,7 +308,7 @@ public:
   bool get_dest_item_at_pos(int drag_x, int drag_y, TreeModel::Path& path) const;
 
   /** Determines the destination item for a given position.
-   * 
+   *
    * @param drag_x The position to determine the destination item for.
    * @param drag_y the position to determine the destination item for.
    * @param pos: The drop position.
@@ -323,9 +326,9 @@ public:
   _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)
 
-  /** Sets the tip area of @a tooltip to the area occupied by 
+  /** Sets the tip area of @a tooltip to the area occupied by
    * the item pointed to by @a path. See also Tooltip::set_tip_area().
-   * 
+   *
    * @newin{2,12}
    * @param tooltip A Gtk::Tooltip.
    * @param path A Gtk::TreePath.
@@ -390,7 +393,7 @@ public:
   _WRAP_METHOD(int get_tooltip_column() const, gtk_icon_view_get_tooltip_column)
 
 
-  _WRAP_SIGNAL(void set_scroll_adjustments(Adjustment* hadjustment, Adjustment* vadjustment), set_scroll_adjustments) 
+  _WRAP_SIGNAL(void set_scroll_adjustments(Adjustment* hadjustment, Adjustment* vadjustment), set_scroll_adjustments)
   _WRAP_SIGNAL(void item_activated(const TreeModel::Path& path), item_activated)
   _WRAP_SIGNAL(void selection_changed(), selection_changed)
 
@@ -401,12 +404,13 @@ public:
   _IGNORE_SIGNAL(toggle_cursor_item)
   _IGNORE_SIGNAL(move_cursor)
   _IGNORE_SIGNAL(activate_cursor_item)
-  
+
   _WRAP_PROPERTY("pixbuf-column", int)
   _WRAP_PROPERTY("text-column", int)
   _WRAP_PROPERTY("markup-column", int)
   _WRAP_PROPERTY("selection-mode", SelectionMode)
   _WRAP_PROPERTY("orientation", Orientation)
+  _WRAP_PROPERTY("item-orientation", Orientation)
   _WRAP_PROPERTY("model", Glib::RefPtr<TreeModel>)
   _WRAP_PROPERTY("columns", int)
   _WRAP_PROPERTY("item-width", int)
@@ -417,4 +421,3 @@ public:
 };
 
 } // namespace Gtk
-



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