summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorraveit65 <[email protected]>2013-11-21 11:24:55 +0100
committerraveit65 <[email protected]>2013-11-21 11:24:55 +0100
commit906172bb95b10dd064d0b0fde0d0510434d34b96 (patch)
tree222de8ab2c5f3220264a5aabe651f137e52cd9bf /src
parent77a60402b58e004651f769b5baa98ab8574864f1 (diff)
downloadmate-user-share-906172bb95b10dd064d0b0fde0d0510434d34b96.tar.bz2
mate-user-share-906172bb95b10dd064d0b0fde0d0510434d34b96.tar.xz
do not use download dir for incomming bluetooth downloads if mate-bluetooth isn't installed
Diffstat (limited to 'src')
-rw-r--r--src/share-extension.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/share-extension.c b/src/share-extension.c
index 2dd331a..bbc34ff 100644
--- a/src/share-extension.c
+++ b/src/share-extension.c
@@ -137,9 +137,15 @@ caja_user_share_get_location_widget (CajaLocationWidgetProvider *iface,
guint i;
gboolean enable = FALSE;
GFile *home;
+#ifdef HAVE_BLUETOOTH
const GUserDirectory special_dirs[] = { G_USER_DIRECTORY_PUBLIC_SHARE, G_USER_DIRECTORY_DOWNLOAD };
+
gboolean is_dir[] = { FALSE, FALSE };
+#else
+ const GUserDirectory special_dirs[] = { G_USER_DIRECTORY_PUBLIC_SHARE };
+ gboolean is_dir[] = { FALSE };
+#endif
file = g_file_new_for_uri (uri);
home = g_file_new_for_path (g_get_home_dir ());