Line 0
Link Here
|
|
|
1 |
--- thunar/thunar-sendto-model.c |
2 |
+++ thunar/thunar-sendto-model.c |
3 |
@@ -121,7 +121,9 @@ g_app_info_compare (gpointer a, |
4 |
static void |
5 |
thunar_sendto_model_load (ThunarSendtoModel *sendto_model) |
6 |
{ |
7 |
+#ifdef HAVE_GIO_UNIX |
8 |
GDesktopAppInfo *app_info = NULL; |
9 |
+#endif |
10 |
gchar **specs; |
11 |
gchar *path; |
12 |
guint n; |
13 |
@@ -146,9 +148,6 @@ thunar_sendto_model_load (ThunarSendtoModel *sendto_model) |
14 |
|
15 |
#ifdef HAVE_GIO_UNIX |
16 |
app_info = g_desktop_app_info_new_from_keyfile (key_file); |
17 |
-#else |
18 |
- /* FIXME try to create the app info ourselves in a platform independent way */ |
19 |
-#endif |
20 |
|
21 |
if (G_LIKELY (app_info != NULL)) |
22 |
{ |
23 |
@@ -165,6 +164,9 @@ thunar_sendto_model_load (ThunarSendtoModel *sendto_model) |
24 |
if (mime_types != NULL) |
25 |
g_object_set_data_full (G_OBJECT (app_info), "mime-types", mime_types, (GDestroyNotify) g_strfreev); |
26 |
} |
27 |
+#else |
28 |
+ /* FIXME try to create the app info ourselves in a platform independent way */ |
29 |
+#endif |
30 |
|
31 |
g_key_file_free (key_file); |
32 |
} |