61
61
/* Now check for published files */
66
g_hash_table_iter_init (&iter, uon->public);
67
while (g_hash_table_iter_next (&iter, (gpointer *) &key, (gpointer *) &value)) {
68
if (g_str_has_prefix (key, syncdaemon_folder_info_get_path (folder_info))) {
62
interface = syncdaemon_daemon_get_publicfiles_interface (uon->syncdaemon);
63
if (SYNCDAEMON_IS_PUBLICFILES_INTERFACE (interface)) {
64
GSList *public_files, *l;
65
public_files = syncdaemon_publicfiles_interface_get_public_files (SYNCDAEMON_PUBLICFILES_INTERFACE (interface));
67
for (l = public_files; l != NULL; l = l->next) {
70
path = syncdaemon_file_info_get_path (SYNCDAEMON_FILE_INFO (l->data));
71
if (g_str_has_prefix (path, syncdaemon_folder_info_get_path (folder_info))) {
69
72
has_published = TRUE;
71
74
question = g_string_append (question, "\t- ");
72
question = g_string_append (question, key);
75
question = g_string_append (question, path);
73
76
question = g_string_append (question, _(" (Published at "));
74
question = g_string_append (question, value);
77
question = g_string_append (question, syncdaemon_file_info_get_public_url (SYNCDAEMON_FILE_INFO (l->data)));
75
78
question = g_string_append (question, ")\n");
82
g_slist_free (public_files);
80
85
if (has_shares || has_published) {
109
ubuntuone_is_folder_shared (UbuntuOneNautilus *uon, const gchar *path)
112
SyncdaemonInterface *interface;
113
gboolean is_shared = FALSE;
115
interface = syncdaemon_daemon_get_shares_interface (uon->syncdaemon);
116
if (SYNCDAEMON_IS_SHARES_INTERFACE (interface)) {
117
shares = syncdaemon_shares_interface_get_shared (SYNCDAEMON_SHARES_INTERFACE (interface));
118
for (l = shares; l != NULL; l = l->next) {
119
SyncdaemonShareInfo *share_info = SYNCDAEMON_SHARE_INFO (l->data);
121
if (g_strcmp0 (syncdaemon_share_info_get_path (share_info), path) == 0) {
127
g_slist_free (shares);
104
134
ubuntuone_is_location_bar_enabled (void)
106
136
GConfClient *conf_client;