[glibmm] Application: Add get_dbus_*() methods.
- From: Murray Cumming <murrayc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glibmm] Application: Add get_dbus_*() methods.
- Date: Fri, 7 Sep 2012 07:33:46 +0000 (UTC)
commit 7feeb0dbd22a3fe468deaef93ae8903f6684698d
Author: Murray Cumming <murrayc murrayc com>
Date: Fri Sep 7 09:23:13 2012 +0200
Application: Add get_dbus_*() methods.
* gio/src/application.hg: Add get_dbus_connection()
and get_dbus_object_path().
* tools/m4/convert_gio.m4: Added a necessary conversion.
ChangeLog | 8 ++++++++
gio/src/application.hg | 7 +++++++
tools/m4/convert_gio.m4 | 2 ++
3 files changed, 17 insertions(+), 0 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index a35f375..a7df226 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2012-09-07 Murray Cumming <murrayc murrayc com>
+
+ Application: Add get_dbus_*() methods.
+
+ * gio/src/application.hg: Add get_dbus_connection()
+ and get_dbus_object_path().
+ * tools/m4/convert_gio.m4: Added a necessary conversion.
+
2012-09-06 Murray Cumming <murrayc murrayc com>
Tell the documentation generator about GMenu.
diff --git a/gio/src/application.hg b/gio/src/application.hg
index 70db6b6..d76f68e 100644
--- a/gio/src/application.hg
+++ b/gio/src/application.hg
@@ -28,6 +28,7 @@
#include <giomm/file.h>
#include <glibmm/object.h>
#include <glibmm/variant.h>
+#include <giomm/dbusconnection.h>
_DEFS(giomm,gio)
_PINCLUDE(glibmm/private/object_p.h)
@@ -113,6 +114,12 @@ public:
_WRAP_METHOD(Glib::ustring get_id() const, g_application_get_application_id)
_WRAP_METHOD(void set_id(const Glib::ustring& application_id), g_application_set_application_id)
+
+ _WRAP_METHOD(Glib::RefPtr<DBus::Connection> get_dbus_connection(), g_application_get_dbus_connection, refreturn)
+ _WRAP_METHOD(Glib::RefPtr<const DBus::Connection> get_dbus_connection() const, g_application_get_dbus_connection, refreturn, constversion)
+
+ _WRAP_METHOD(Glib::ustring get_dbus_object_path() const, g_application_get_dbus_object_path)
+
_WRAP_METHOD(guint get_inactivity_timeout() const, g_application_get_inactivity_timeout)
_WRAP_METHOD(void set_inactivity_timeout(guint inactivity_timeout), g_application_set_inactivity_timeout)
diff --git a/tools/m4/convert_gio.m4 b/tools/m4/convert_gio.m4
index c683db8..e8a6780 100644
--- a/tools/m4/convert_gio.m4
+++ b/tools/m4/convert_gio.m4
@@ -84,6 +84,8 @@ _CONVERSION(`GCredentials*',`Glib::RefPtr<const Credentials>',`Glib::wrap($3)')
_CONVERSION(`const Glib::RefPtr<Connection>&',`GDBusConnection*',__CONVERT_REFPTR_TO_P)
_CONVERSION(`GDBusConnection*',`Glib::RefPtr<Connection>',Glib::wrap($3))
_CONVERSION(`GDBusConnection*',`Glib::RefPtr<const Connection>',Glib::wrap($3))
+_CONVERSION(`GDBusConnection*',`Glib::RefPtr<DBus::Connection>',Glib::wrap($3))
+_CONVERSION(`GDBusConnection*',`Glib::RefPtr<const DBus::Connection>',Glib::wrap($3))
# DBusMessage
_CONVERSION(`const Glib::RefPtr<Message>&',`GDBusMessage*',__CONVERT_REFPTR_TO_P)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]