[glibmm] Gio::DesktopAppInfo: Wrap some new methods.
- From: Murray Cumming <murrayc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glibmm] Gio::DesktopAppInfo: Wrap some new methods.
- Date: Wed, 31 Jul 2013 09:38:34 +0000 (UTC)
commit a0e70b22c86b1dbb07b28eb31789c7ca1908a764
Author: Murray Cumming <murrayc murrayc com>
Date: Wed Jul 31 11:00:20 2013 +0200
Gio::DesktopAppInfo: Wrap some new methods.
* gio/src/desktopappinfo.hg:
Add list_actions(), launch_action() and get_action_name().
gio/src/desktopappinfo.hg | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/gio/src/desktopappinfo.hg b/gio/src/desktopappinfo.hg
index 3b5db9f..3392b0c 100644
--- a/gio/src/desktopappinfo.hg
+++ b/gio/src/desktopappinfo.hg
@@ -69,6 +69,13 @@ public:
_WRAP_METHOD(bool has_key(const Glib::ustring& key) const, g_desktop_app_info_has_key)
_WRAP_METHOD(Glib::ustring get_string(const Glib::ustring& key), g_desktop_app_info_get_string )
_WRAP_METHOD(bool get_boolean(const Glib::ustring& key) const, g_desktop_app_info_get_boolean)
+
+#m4 _CONVERSION(`const gchar* const*', `std::vector<Glib::ustring>',
`Glib::ArrayHandler<Glib::ustring>::array_to_vector($3, Glib::OWNERSHIP_NONE)')
+ _WRAP_METHOD(std::vector<Glib::ustring> list_actions() const, g_desktop_app_info_list_actions)
+
+ _WRAP_METHOD(void launch_action(const Glib::ustring& action_name, const Glib::RefPtr<AppLaunchContext>&
launch_context{?}), g_desktop_app_info_launch_action)
+
+ _WRAP_METHOD(Glib::ustring get_action_name(const Glib::ustring& action_name) const,
g_desktop_app_info_get_action_name)
};
} // namespace Gio
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]