[glibmm] Gio::AppInfo: Wrap some new methods.



commit fd5bfa892328b5285772a0ef09a8dd54e0df0587
Author: Murray Cumming <murrayc murrayc com>
Date:   Sat Sep 1 21:42:15 2012 +0200

    Gio::AppInfo: Wrap some new methods.
    
            * gio/src/appinfo.hg: Add get_display_name(),
    set_as_last_used_for_type() and get_supported_types().

 ChangeLog          |    7 +++++++
 gio/src/appinfo.hg |    9 +++++++++
 2 files changed, 16 insertions(+), 0 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 6031285..cc8933b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,12 @@
 2012-09-01  Murray Cumming  <murrayc murrayc com>
 
+	Gio::AppInfo: Wrap some new methods.
+
+        * gio/src/appinfo.hg: Add get_display_name(),
+	set_as_last_used_for_type() and get_supported_types().
+
+2012-09-01  Murray Cumming  <murrayc murrayc com>
+
         Regenerate .defs.
 
         * gio/src/gio_docs.xml:
diff --git a/gio/src/appinfo.hg b/gio/src/appinfo.hg
index 45700b7..ecbf598 100644
--- a/gio/src/appinfo.hg
+++ b/gio/src/appinfo.hg
@@ -25,6 +25,7 @@
 
 #include <glibmm/interface.h>
 #include <glibmm/listhandle.h>
+#include <glibmm/arrayhandle.h>
 #include <glibmm/object.h>
 //#include <giomm/file.h>
 #include <giomm/icon.h>
@@ -67,6 +68,7 @@ public:
 
   _WRAP_METHOD(std::string get_id() const, g_app_info_get_id)
   _WRAP_METHOD(std::string get_name() const, g_app_info_get_name)
+  _WRAP_METHOD(std::string get_display_name() const, g_app_info_get_display_name)
   _WRAP_METHOD(std::string get_description() const, g_app_info_get_description)
   _WRAP_METHOD(std::string get_executable() const, g_app_info_get_executable)
   _WRAP_METHOD(std::string get_commandline() const, g_app_info_get_commandline)
@@ -196,8 +198,15 @@ public:
   _WRAP_METHOD(bool remove_supports_type(const std::string& content_type),
                g_app_info_remove_supports_type,
                errthrow)
+
+#m4 _CONVERSION(`const char**', `Glib::StringArrayHandle', `Glib::StringArrayHandle($3, Glib::OWNERSHIP_NONE)')
+  _WRAP_METHOD(Glib::StringArrayHandle get_supported_types() const, g_app_info_get_supported_types)
+
+  _WRAP_METHOD(bool set_as_last_used_for_type(const std::string& content_type), g_app_info_set_as_last_used_for_type, errthrow)
+
 #m4 _CONVERSION(`GList*',`Glib::ListHandle<Glib::RefPtr<AppInfo> >',`Glib::ListHandle<Glib::RefPtr<AppInfo> >($3, Glib::OWNERSHIP_SHALLOW)')
   _WRAP_METHOD(static Glib::ListHandle<Glib::RefPtr<AppInfo> > get_all(), g_app_info_get_all)
+
   _WRAP_METHOD(static Glib::ListHandle<Glib::RefPtr<AppInfo> > get_all_for_type(const std::string& content_type), g_app_info_get_all_for_type)
   _WRAP_METHOD(static Glib::RefPtr<AppInfo> get_default_for_type(const std::string& content_type, bool must_support_uris = true), g_app_info_get_default_for_type)
   _WRAP_METHOD(static Glib::RefPtr<AppInfo> get_default_for_uri_scheme(const std::string& uri_scheme), g_app_info_get_default_for_uri_scheme)



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