[glibmm] DesktopAppInfo: Add some new getter methods.
- From: Josà Alburquerque <jaalburqu src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glibmm] DesktopAppInfo: Add some new getter methods.
- Date: Thu, 8 Nov 2012 04:10:35 +0000 (UTC)
commit b6fda5ec3e67cf0655da347c807fed43be95ec3f
Author: Josà Alburquerque <jaalburqu svn gnome org>
Date: Wed Nov 7 22:37:56 2012 -0500
DesktopAppInfo: Add some new getter methods.
* gio/src/desktopappinfo.hg: Add the get_keywords(),
get_startup_wm_class(), get_generic_name(), get_show_in(),
get_nodisplay() and get_categories() getter methods wrapping the
corresponding C functions.
ChangeLog | 9 +++++++++
gio/src/desktopappinfo.hg | 9 +++++++++
2 files changed, 18 insertions(+), 0 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 0c12be0..2ee1854 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2012-11-07 Josà Alburquerque <jaalburquerque gmail com>
+
+ DesktopAppInfo: Add some new getter methods.
+
+ * gio/src/desktopappinfo.hg: Add the get_keywords(),
+ get_startup_wm_class(), get_generic_name(), get_show_in(),
+ get_nodisplay() and get_categories() getter methods wrapping the
+ corresponding C functions.
+
2012-11-06 Josà Alburquerque <jaalburquerque gmail com>
Variant: Don't refsink variants created using the custom cast ctor.
diff --git a/gio/src/desktopappinfo.hg b/gio/src/desktopappinfo.hg
index 7ef0c29..fcdf436 100644
--- a/gio/src/desktopappinfo.hg
+++ b/gio/src/desktopappinfo.hg
@@ -56,6 +56,15 @@ public:
_WRAP_METHOD(std::string get_filename() const, g_desktop_app_info_get_filename)
_WRAP_METHOD(bool is_hidden() const, g_desktop_app_info_get_is_hidden)
_WRAP_METHOD(static void set_desktop_env(const std::string& desktop_env), g_desktop_app_info_set_desktop_env)
+
+#m4 _CONVERSION(`const char* const*', `std::vector<Glib::ustring>', `Glib::ArrayHandler<Glib::ustring>::array_to_vector($3, Glib::OWNERSHIP_NONE)')
+ _WRAP_METHOD(std::vector<Glib::ustring> get_keywords() const, g_desktop_app_info_get_keywords)
+
+ _WRAP_METHOD(std::string get_startup_wm_class() const, g_desktop_app_info_get_startup_wm_class)
+ _WRAP_METHOD(bool get_nodisplay() const, g_desktop_app_info_get_nodisplay)
+ _WRAP_METHOD(bool get_show_in(const std::string& desktop_env) const, g_desktop_app_info_get_show_in)
+ _WRAP_METHOD(std::string get_generic_name() const, g_desktop_app_info_get_generic_name)
+ _WRAP_METHOD(std::string get_categories() const, g_desktop_app_info_get_categories)
};
} // namespace Gio
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]