[gtkmm] Switch: Wrap API for performing delayed changes



commit cac35aa7d6875904f3485827c5748862412b5cff
Author: Juan R. GarcĂ­a Blanco <juanrgar gmail com>
Date:   Sun Jul 6 19:02:24 2014 +0200

    Switch: Wrap API for performing delayed changes
    
        * Wrap set_state(bool) and get_state() methods, and ::state
        property.
        * Wrap "state-set" signal.

 gtk/src/switch.hg |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/gtk/src/switch.hg b/gtk/src/switch.hg
index 8479ff3..babd4e1 100644
--- a/gtk/src/switch.hg
+++ b/gtk/src/switch.hg
@@ -47,10 +47,16 @@ public:
   _WRAP_METHOD(void set_active(bool is_active = true), gtk_switch_set_active)
   _WRAP_METHOD(bool get_active() const, gtk_switch_get_active)
 
+  _WRAP_METHOD(void set_state(bool state = true), gtk_switch_set_state)
+  _WRAP_METHOD(bool get_state() const, gtk_switch_get_state)
+
   _WRAP_PROPERTY("active", bool)
+  _WRAP_PROPERTY("state", bool)
 
   //activate is an action signal that's documented as not for use by applications.
   _IGNORE_SIGNAL("activate")
+
+  _WRAP_SIGNAL(bool state_set(bool state), "state-set")
 };
 
 } // namespace Gtk


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