From af1d77ee1593a640184e9646ca6af54951a821de Mon Sep 17 00:00:00 2001 From: Kjell Ahlstedt Date: Fri, 2 Dec 2022 19:08:56 +0100 Subject: Gio::AppInfo: Add get_[recommended|fallback]_for_type() Fixes #105 --- gio/src/appinfo.hg | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/gio/src/appinfo.hg b/gio/src/appinfo.hg index 04721cfd..b93302eb 100644 --- a/gio/src/appinfo.hg +++ b/gio/src/appinfo.hg @@ -26,7 +26,6 @@ _CONFIGINCLUDE(giommconfig.h) #include #include -//#include #include _DEFS(giomm,gio) @@ -224,6 +223,11 @@ public: _WRAP_METHOD(static std::vector> get_all(), g_app_info_get_all) _WRAP_METHOD(static std::vector> get_all_for_type(const std::string& content_type), g_app_info_get_all_for_type) + _WRAP_METHOD(static std::vector> get_recommended_for_type(const std::string& content_type), + g_app_info_get_recommended_for_type, newin "2,76") + _WRAP_METHOD(static std::vector> get_fallback_for_type(const std::string& content_type), + g_app_info_get_fallback_for_type, newin "2,76") + _WRAP_METHOD(static Glib::RefPtr get_default_for_type(const std::string& content_type, bool must_support_uris = true), g_app_info_get_default_for_type) _WRAP_METHOD(static void get_default_for_type_async(const std::string& content_type, bool must_support_uris, -- cgit v1.2.1