[gtkmm] Range: Added get/set_round_digits() and property.



commit 742fd4676bf84cb532901dd7ebf34b26b4a94f04
Author: Murray Cumming <murrayc murrayc com>
Date:   Tue Jan 18 09:33:41 2011 +0100

    Range: Added get/set_round_digits() and property.
    
    * gtk/src/range.hg: This API Is new in GTK+ in git master.

 ChangeLog        |   14 +++-----------
 gtk/src/range.hg |    3 +++
 2 files changed, 6 insertions(+), 11 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 7449bdd..dcae841 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,16 +1,8 @@
-2011-01-17  Murray Cumming  <murrayc murrayc com>
+2011-01-18  Murray Cumming  <murrayc murrayc com>
 
-	Restore support for the extra _CLASS_GOBJECT() parameter.
+	Range: Added get/set_round_digits() and property.
 
-	* tools/m4/class_gtkobject.m4: This is still needed for the weird GtkWindow
-	declaration in gtk+-2.0, though that is fixed in gtk+-3.0.
-	And even though gtkmm-3.0 doesn't use that, this file must adapt to it.
-	
-2011-01-17  Murray Cumming  <murrayc murrayc-desktop>
-
-	reviewed by: <delete if not using a buddy>
-
-	* tools/m4/class_gtkobject.m4:
+	* gtk/src/range.hg: This API Is new in GTK+ in git master.
 
 2011-01-16  Murray Cumming  <murrayc murrayc com>
 
diff --git a/gtk/src/range.hg b/gtk/src/range.hg
index 10bba2d..10e3d18 100644
--- a/gtk/src/range.hg
+++ b/gtk/src/range.hg
@@ -86,6 +86,8 @@ public:
   _WRAP_METHOD(bool get_restrict_to_fill_level() const, gtk_range_get_restrict_to_fill_level)
   _WRAP_METHOD(void set_fill_level(double fill_level), gtk_range_set_fill_level)
   _WRAP_METHOD(double get_fill_level() const, gtk_range_get_fill_level)
+  _WRAP_METHOD(void set_round_digits(int round_digits), gtk_range_set_round_digits)
+  _WRAP_METHOD(int get_round_digits() const, gtk_range_get_round_digits)
 
   _WRAP_SIGNAL(void value_changed(), "value_changed")
   _WRAP_SIGNAL(void adjust_bounds(double new_value), "adjust_bounds")
@@ -121,6 +123,7 @@ public:
   _WRAP_PROPERTY("show-fill-level", bool)
   _WRAP_PROPERTY("restrict-to-fill-level", bool)
   _WRAP_PROPERTY("fill-level", double)
+  _WRAP_PROPERTY("round-digits", int)
   
 protected:
   virtual void get_range_border_vfunc(Gtk::Border& border) const;



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