[gtkmm] Device: const correction.



commit 0254c5bb1451cd3a757061eeb40f540699b18d47
Author: Murray Cumming <murrayc murrayc com>
Date:   Sun Aug 29 23:04:22 2010 +0200

    Device: const correction.
    
    * gdk/src/device.hg: get_key(): Make this const.

 ChangeLog         |    6 ++++++
 gdk/src/device.hg |    2 +-
 2 files changed, 7 insertions(+), 1 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index da91275..e958ef4 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2010-08-29  Murray Cumming  <murrayc murrayc const>
+
+	Device: const correction.
+
+	* gdk/src/device.hg: get_key(): Make this const.
+
 2010-08-29  Murray Cumming  <murrayc murrayc com>
 
 	Partially fix the build after large GDK changes in GTK+.
diff --git a/gdk/src/device.hg b/gdk/src/device.hg
index 4f7456c..9a72c19 100644
--- a/gdk/src/device.hg
+++ b/gdk/src/device.hg
@@ -55,7 +55,7 @@ public:
   _WRAP_METHOD(void set_source(InputSource source), gdk_device_set_source)
   _WRAP_METHOD(InputMode get_mode() const, gdk_device_get_mode)
   _WRAP_METHOD(bool set_mode(InputMode mode), gdk_device_set_mode)
-  _WRAP_METHOD(bool get_key(guint index_, guint& keyval, ModifierType& modifiers), gdk_device_get_key)
+  _WRAP_METHOD(bool get_key(guint index_, guint& keyval, ModifierType& modifiers) const, gdk_device_get_key)
   _WRAP_METHOD(void set_key(guint index_, guint keyval, ModifierType modifiers), gdk_device_set_key)
   _WRAP_METHOD(AxisUse get_axis_use(guint index_) const, gdk_device_get_axis_use)
   _WRAP_METHOD(void set_axis_use(guint index_, AxisUse use), gdk_device_set_axis_use)



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