From f4c60c9cb42106d921f1b7a16bd140e0d0029e0c Mon Sep 17 00:00:00 2001 From: ivan-83 Date: Sun, 4 Sep 2016 20:33:53 +0300 Subject: [PATCH 07/10] build fix without HAVE_GIO_UNIX --- 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); } -- 2.9.2