projects
/
modest
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b883a12
)
Filter children of folder as destination for move to (fixes NB#102356).
author
Jose Dapena Paz
<jdapena@igalia.com>
Thu, 19 Feb 2009 06:46:15 +0000
(06:46 +0000)
committer
Jose Dapena Paz
<jdapena@igalia.com>
Thu, 19 Feb 2009 06:46:15 +0000
(06:46 +0000)
pmo-trunk-r7576
src/widgets/modest-folder-view.c
patch
|
blob
|
history
diff --git
a/src/widgets/modest-folder-view.c
b/src/widgets/modest-folder-view.c
index
e89c113
..
9887b35
100644
(file)
--- a/
src/widgets/modest-folder-view.c
+++ b/
src/widgets/modest-folder-view.c
@@
-1681,7
+1681,21
@@
expand_root_items (ModestFolderView *self)
static gboolean
is_parent_of (TnyFolder *a, TnyFolder *b)
{
- return FALSE;
+ const gchar *a_id;
+ gboolean retval = FALSE;
+
+ a_id = tny_folder_get_id (a);
+ if (a_id) {
+ gchar *string_to_match;
+ const gchar *b_id;
+
+ string_to_match = g_strconcat (a_id, "/", NULL);
+ b_id = tny_folder_get_id (b);
+ retval = g_str_has_prefix (b_id, string_to_match);
+ g_free (string_to_match);
+ }
+
+ return retval;
}
static gboolean