summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKjell Ahlstedt <kjellahlstedt@gmail.com>2022-12-02 19:08:56 +0100
committerKjell Ahlstedt <kjellahlstedt@gmail.com>2022-12-02 19:08:56 +0100
commitaf1d77ee1593a640184e9646ca6af54951a821de (patch)
tree4da32839a5d2898829a7f85a19f34f0ef1a33d40
parent1b5e5f94068cd62b93bc3c835d2da1af29603f55 (diff)
downloadglibmm-af1d77ee1593a640184e9646ca6af54951a821de.tar.gz
Gio::AppInfo: Add get_[recommended|fallback]_for_type()
Fixes #105
-rw-r--r--gio/src/appinfo.hg6
1 files changed, 5 insertions, 1 deletions
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 <glibmm/interface.h>
#include <glibmm/object.h>
-//#include <giomm/file.h>
#include <giomm/icon.h>
_DEFS(giomm,gio)
@@ -224,6 +223,11 @@ public:
_WRAP_METHOD(static std::vector<Glib::RefPtr<AppInfo>> get_all(), g_app_info_get_all)
_WRAP_METHOD(static std::vector<Glib::RefPtr<AppInfo>> get_all_for_type(const std::string& content_type), g_app_info_get_all_for_type)
+ _WRAP_METHOD(static std::vector<Glib::RefPtr<AppInfo>> get_recommended_for_type(const std::string& content_type),
+ g_app_info_get_recommended_for_type, newin "2,76")
+ _WRAP_METHOD(static std::vector<Glib::RefPtr<AppInfo>> get_fallback_for_type(const std::string& content_type),
+ g_app_info_get_fallback_for_type, newin "2,76")
+
_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 void get_default_for_type_async(const std::string& content_type, bool must_support_uris,