[glibmm] Gio::Application: Add bind/unbind_busy_property() and set_state_hint().
- From: Murray Cumming <murrayc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glibmm] Gio::Application: Add bind/unbind_busy_property() and set_state_hint().
- Date: Mon, 14 Sep 2015 14:34:10 +0000 (UTC)
commit 00f3fbba98fed265e22e50270dec1f51d07e94e1
Author: Murray Cumming <murrayc murrayc com>
Date: Mon Sep 14 16:30:26 2015 +0200
Gio::Application: Add bind/unbind_busy_property() and set_state_hint().
gio/src/application.hg | 4 ++++
gio/src/simpleaction.hg | 2 ++
2 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/gio/src/application.hg b/gio/src/application.hg
index 9021fdd..33a2249 100644
--- a/gio/src/application.hg
+++ b/gio/src/application.hg
@@ -354,6 +354,10 @@ public:
_WRAP_METHOD(void send_notification(const Glib::ustring& id{?}, const Glib::RefPtr<Notification>&
notification), g_application_send_notification)
_WRAP_METHOD(void withdraw_notification(const Glib::ustring& id), g_application_withdraw_notification)
+#m4 _CONVERSION(`const Glib::ObjectBase&', `gpointer', `const_cast<GObject*>(($3).gobj())')
+ _WRAP_METHOD(void bind_busy_property(const Glib::ObjectBase& object, const Glib::ustring& property),
g_application_bind_busy_property)
+ _WRAP_METHOD(void unbind_busy_property(const Glib::ObjectBase& object, const Glib::ustring& property),
g_application_unbind_busy_property)
+
_WRAP_PROPERTY("action-group", Glib::RefPtr<ActionGroup>, deprecated "Use the Gio::ActionMap interface
instead.")
_WRAP_PROPERTY("application-id", Glib::ustring)
_WRAP_PROPERTY("flags", ApplicationFlags)
diff --git a/gio/src/simpleaction.hg b/gio/src/simpleaction.hg
index 4b5b91e..253b46f 100644
--- a/gio/src/simpleaction.hg
+++ b/gio/src/simpleaction.hg
@@ -146,6 +146,8 @@ public:
_WRAP_METHOD(void set_enabled(bool enabled = true), g_simple_action_set_enabled)
+ _WRAP_METHOD(void set_state_hint(const Glib::VariantBase& state_hint), g_simple_action_set_state_hint)
+
_WRAP_PROPERTY("enabled", bool)
_WRAP_PROPERTY("name", Glib::ustring)
_WRAP_PROPERTY("parameter-type", Glib::VariantType)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]