Patch: avoid adding account name in folder list store with "show paths"



	Hi,

	This is a small fix to solve an inconsistence in the treatment of
paths. We were not showing the account name in path, but we were showing
it if it was a row representing a newly created folder.

Changelog entry:
* libtinymailui-gtk/tny-gtk-folder-list-store.c:
  on creating new items (ie. after creating a new folder, don't add
  the account name in the full path)

-- 
José Dapena Paz <jdapena igalia com>
Igalia
diff --git a/ChangeLog b/ChangeLog
index ad89b65..9a0b5d5 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2009-01-20  Jose Dapena Paz  <jdapena igalia com>
+
+	* libtinymailui-gtk/tny-gtk-folder-list-store.c:
+	on creating new items (ie. after creating a new folder, don't add
+	the account name in the full path).
+
 2009-01-15  Sergio Villar Senin  <svillar igalia com>
 
 	* libtinymailui-gtk/tny-gtk-folder-list-store.c
diff --git a/libtinymailui-gtk/tny-gtk-folder-list-store.c b/libtinymailui-gtk/tny-gtk-folder-list-store.c
index e040da2..4545612 100644
--- a/libtinymailui-gtk/tny-gtk-folder-list-store.c
+++ b/libtinymailui-gtk/tny-gtk-folder-list-store.c
@@ -1330,7 +1330,7 @@ creater (GtkTreeModel *model, GtkTreePath *path, GtkTreeIter *in_iter, gpointer
 
 			if (TNY_GTK_FOLDER_LIST_STORE (self)->flags &
 			    TNY_GTK_FOLDER_LIST_STORE_FLAG_SHOW_PATH) {
-				if (parent_name && *parent_name != '\0')
+				if (TNY_IS_FOLDER (fol) && parent_name && *parent_name != '\0')
 					finalname = g_strconcat (parent_name, self->path_separator,
 								 tny_folder_get_name (TNY_FOLDER (folder)), NULL);
 				else


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]