[Xfce4-commits] [xfce/thunar] 01/01: Fix build without HAVE_GIO_UNIX (Bug #12863)

noreply at xfce.org noreply at xfce.org
Tue Jul 17 01:04:46 CEST 2018


This is an automated email from the git hooks/post-receive script.

a   n   d   r   e       p   u   s   h   e   d       a       c   o   m   m   i   t       t   o       b   r   a   n   c   h       m   a   s   t   e   r   
   in repository xfce/thunar.

commit 0a6c2fd291e5a43729a126afa5d97e5bf0a17627
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 b95b82c..4225386 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