[gtkmm] ToolPalette: Make some getter methods const.



commit 9793f8410ee7fde94552c446354e97bd0dfb5d36
Author: Murray Cumming <murrayc murrayc com>
Date:   Wed Mar 10 12:56:32 2010 +0100

    ToolPalette: Make some getter methods const.
    
    * gtk/src/toolpalette.hg: get_expand(), get_icon_size(): Make these const.

 ChangeLog              |    6 ++++++
 gtk/src/toolpalette.hg |   21 ++++++++++-----------
 2 files changed, 16 insertions(+), 11 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 0af966d..ba6cb17 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
 2010-03-10  Murray Cumming  <murrayc murrayc com>
 
+    ToolPalette: Make some getter methods const.
+
+	* gtk/src/toolpalette.hg: get_expand(), get_icon_size(): Make these const.
+
+2010-03-10  Murray Cumming  <murrayc murrayc com>
+
 	* gtk/src/window.[hg|ccg]: Added unset_transient_for() now that the
     documentation of the C function says that an arg can be NULL and what it means.
 
diff --git a/gtk/src/toolpalette.hg b/gtk/src/toolpalette.hg
index ddeaffe..fa9c131 100644
--- a/gtk/src/toolpalette.hg
+++ b/gtk/src/toolpalette.hg
@@ -29,16 +29,16 @@ namespace Gtk
 
 _WRAP_ENUM(ToolPaletteDragTargets, GtkToolPaletteDragTargets)
 
-/** A ToolPalette allows you to add ToolItems to a palette-like container with 
+/** A ToolPalette allows you to add ToolItems to a palette-like container with
  * various categories and drag and drop support.
  *
- * ToolItems cannot be added directly to a ToolPalette - instead they are added 
- * to a ToolItemGroup which can than be added to a ToolPalette. To add a 
- * ToolItemGroup to a ToolPalette, use Gtk::Container::add(). 
+ * ToolItems cannot be added directly to a ToolPalette - instead they are added
+ * to a ToolItemGroup which can than be added to a ToolPalette. To add a
+ * ToolItemGroup to a ToolPalette, use Gtk::Container::add().
  *
- * The easiest way to use drag and drop with ToolPalette is to call 
- * add_drag_dest() with the desired drag source palette and the desired drag 
- * target widget. Then get_drag_item() can be used to get the dragged item in 
+ * The easiest way to use drag and drop with ToolPalette is to call
+ * add_drag_dest() with the desired drag source palette and the desired drag
+ * target widget. Then get_drag_item() can be used to get the dragged item in
  * the "drag-data-received" signal handler of the drag target.
  *
  * @@newin{2,20}
@@ -62,14 +62,14 @@ public:
 
   _WRAP_METHOD(int get_group_position(ToolItemGroup& group) const, gtk_tool_palette_get_group_position)
   _WRAP_METHOD(bool get_exclusive(ToolItemGroup& group) const, gtk_tool_palette_get_exclusive)
-  _WRAP_METHOD(bool get_expand(ToolItemGroup& group), gtk_tool_palette_get_expand)
+  _WRAP_METHOD(bool get_expand(ToolItemGroup& group) const, gtk_tool_palette_get_expand)
 
   _WRAP_METHOD(void set_icon_size(IconSize icon_size), gtk_tool_palette_set_icon_size)
   _WRAP_METHOD(void unset_icon_size(), gtk_tool_palette_unset_icon_size)
   _WRAP_METHOD(void set_style(ToolbarStyle style), gtk_tool_palette_set_style)
   _WRAP_METHOD(void unset_style(), gtk_tool_palette_unset_style)
 
-  _WRAP_METHOD(IconSize get_icon_size(), gtk_tool_palette_get_icon_size)
+  _WRAP_METHOD(IconSize get_icon_size() const, gtk_tool_palette_get_icon_size)
   _WRAP_METHOD(ToolbarStyle get_style() const, gtk_tool_palette_get_style)
 
   _WRAP_METHOD(ToolItem* get_drop_item(int x, int y), gtk_tool_palette_get_drop_item)
@@ -95,7 +95,7 @@ public:
 #m4 _CONVERSION(`const GtkTargetEntry*',`TargetEntry',`TargetEntry(*$3)')
   _WRAP_METHOD(static TargetEntry get_drag_target_item(), gtk_tool_palette_get_drag_target_item)
   _WRAP_METHOD(static TargetEntry get_drag_target_group(), gtk_tool_palette_get_drag_target_group)
-  
+
   //TODO: Ignore this? It's in many widgets and seems internals.
   //Ignore action signal: _WRAP_SIGNAL(void set_scroll_adjustments(Adjustment* hadjustment, Adjustment* vadjustment), "set-scroll-adjustments")
 
@@ -106,4 +106,3 @@ public:
 };
 
 } // namespace Gtk
-



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