[glib: 2/3] GWin32AppInfo: Implement should_show vfunc
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib: 2/3] GWin32AppInfo: Implement should_show vfunc
- Date: Wed, 24 Nov 2021 15:02:53 +0000 (UTC)
commit de6da5aa73474c27fe02a9f63b3d3a00ade77c2f
Author: Luca Bacci <luca bacci982 gmail com>
Date: Wed Nov 24 15:00:39 2021 +0100
GWin32AppInfo: Implement should_show vfunc
gio/gwin32appinfo.c | 11 ++++++++++-
1 file changed, 10 insertions(+), 1 deletion(-)
---
diff --git a/gio/gwin32appinfo.c b/gio/gwin32appinfo.c
index 38719c4c0..fe831ad73 100644
--- a/gio/gwin32appinfo.c
+++ b/gio/gwin32appinfo.c
@@ -5093,6 +5093,15 @@ g_win32_app_info_launch_uris (GAppInfo *appinfo,
return res;
}
+static gboolean
+g_win32_app_info_should_show (GAppInfo *appinfo)
+{
+ /* FIXME: This is a placeholder implementation to avoid crashes
+ * for now. It can be made more specific to @appinfo in future. */
+
+ return TRUE;
+}
+
static gboolean
g_win32_app_info_launch (GAppInfo *appinfo,
GList *files,
@@ -5229,7 +5238,7 @@ g_win32_app_info_iface_init (GAppInfoIface *iface)
iface->supports_uris = g_win32_app_info_supports_uris;
iface->supports_files = g_win32_app_info_supports_files;
iface->launch_uris = g_win32_app_info_launch_uris;
-/* iface->should_show = g_win32_app_info_should_show;*/
+ iface->should_show = g_win32_app_info_should_show;
/* iface->set_as_default_for_type = g_win32_app_info_set_as_default_for_type;*/
/* iface->set_as_default_for_extension = g_win32_app_info_set_as_default_for_extension;*/
/* iface->add_supports_type = g_win32_app_info_add_supports_type;*/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]