Merge lp:~alecu/ubuntuone-client/hide-emblems-on-non-syncd-folders into lp:ubuntuone-client

Proposed by Alejandro J. Cura
Status: Merged
Approved by: dobey
Approved revision: 949
Merged at revision: 952
Proposed branch: lp:~alecu/ubuntuone-client/hide-emblems-on-non-syncd-folders
Merge into: lp:ubuntuone-client
Diff against target: 28 lines (+4/-3)
1 file modified
libsyncdaemon/syncdaemon-daemon.c (+4/-3)
To merge this branch: bzr merge lp:~alecu/ubuntuone-client/hide-emblems-on-non-syncd-folders
Reviewer Review Type Date Requested Status
dobey (community) Approve
Roberto Alsina (community) Approve
Review via email: mp+57007@code.launchpad.net

Commit message

Don't show an emblem on non-syncd folders (LP: #741835)

Description of the change

Don't show an emblem on non-syncd folders (LP: #741835)

To post a comment you must log in.
Revision history for this message
Roberto Alsina (ralsina) wrote :

+1

review: Approve
949. By Alejandro J. Cura

initialize is_subscribed

Revision history for this message
dobey (dobey) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'libsyncdaemon/syncdaemon-daemon.c'
2--- libsyncdaemon/syncdaemon-daemon.c 2011-02-14 16:58:56 +0000
3+++ libsyncdaemon/syncdaemon-daemon.c 2011-04-08 20:31:45 +0000
4@@ -921,7 +921,7 @@
5 {
6 const gchar *root;
7 gchar *root_with_slash;
8- gboolean managed = FALSE;
9+ gboolean managed = FALSE, is_subscribed = FALSE;
10 gchar *dirpath;
11 SyncdaemonInterface *interface;
12
13@@ -962,12 +962,13 @@
14 SyncdaemonFolderInfo *finfo = SYNCDAEMON_FOLDER_INFO (l->data);
15
16 tmp_path = syncdaemon_folder_info_get_path (finfo);
17+ is_subscribed = syncdaemon_folder_info_get_subscribed (finfo);
18 if (g_strcmp0 (path, tmp_path) == 0) {
19- managed = TRUE;
20+ managed = is_subscribed;
21 *is_root = TRUE;
22 break;
23 } else if (g_str_has_prefix (path, tmp_path)) {
24- managed = TRUE;
25+ managed = is_subscribed;
26 break;
27 }
28 }

Subscribers

People subscribed via source and target branches