[Xfce4-commits] [xfce/thunar] 01/01: Fix build without HAVE_GIO_UNIX (Bug #12863)
noreply at xfce.org
noreply at xfce.org
Mon May 20 21:59:03 CEST 2019
This is an automated email from the git hooks/post-receive script.
a l e x p u s h e d a c o m m i t t o b r a n c h x f c e - 4 . 1 2
in repository xfce/thunar.
commit 7642cb7f76298b8bc916a810463604e4f89cbe88
Author: ivan-83 <rozhuk.im at gmail.com>
Date: Mon Jul 16 19:52:49 2018 -0300
Fix build without HAVE_GIO_UNIX (Bug #12863)
---
thunar/thunar-sendto-model.c | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/thunar/thunar-sendto-model.c b/thunar/thunar-sendto-model.c
index 1eaefb8..c6ac413 100644
--- a/thunar/thunar-sendto-model.c
+++ b/thunar/thunar-sendto-model.c
@@ -121,7 +121,9 @@ g_app_info_compare (gpointer a,
static void
thunar_sendto_model_load (ThunarSendtoModel *sendto_model)
{
+#ifdef HAVE_GIO_UNIX
GDesktopAppInfo *app_info = NULL;
+#endif
gchar **specs;
gchar *path;
guint n;
@@ -146,9 +148,6 @@ thunar_sendto_model_load (ThunarSendtoModel *sendto_model)
#ifdef HAVE_GIO_UNIX
app_info = g_desktop_app_info_new_from_keyfile (key_file);
-#else
- /* FIXME try to create the app info ourselves in a platform independent way */
-#endif
if (G_LIKELY (app_info != NULL))
{
@@ -165,6 +164,9 @@ thunar_sendto_model_load (ThunarSendtoModel *sendto_model)
if (mime_types != NULL)
g_object_set_data_full (G_OBJECT (app_info), "mime-types", mime_types, (GDestroyNotify) g_strfreev);
}
+#else
+ /* FIXME try to create the app info ourselves in a platform independent way */
+#endif
g_key_file_free (key_file);
}
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list