aboutsummaryrefslogtreecommitdiffstats
path: root/mail/em-folder-tree.c
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2011-06-05 04:53:10 +0800
committerMatthew Barnes <mbarnes@redhat.com>2011-06-09 01:14:48 +0800
commitf014ab82c81078d60cb1df8c986305c2cc9948c2 (patch)
treec3bde4e5da923c9ee082fcb994b10c2ce2f61dc2 /mail/em-folder-tree.c
parent7428fc93d58921bab9968a999172b843af2a2244 (diff)
downloadgsoc2013-evolution-f014ab82c81078d60cb1df8c986305c2cc9948c2.tar.gz
gsoc2013-evolution-f014ab82c81078d60cb1df8c986305c2cc9948c2.tar.zst
gsoc2013-evolution-f014ab82c81078d60cb1df8c986305c2cc9948c2.zip
Coding style and whitespace cleanups.
Diffstat (limited to 'mail/em-folder-tree.c')
-rw-r--r--mail/em-folder-tree.c13
1 files changed, 10 insertions, 3 deletions
diff --git a/mail/em-folder-tree.c b/mail/em-folder-tree.c
index d740e265a4..46f3fc82ba 100644
--- a/mail/em-folder-tree.c
+++ b/mail/em-folder-tree.c
@@ -2783,8 +2783,11 @@ em_folder_tree_get_selected_uris (EMFolderTree *folder_tree)
selection = gtk_tree_view_get_selection (tree_view);
/* at first, add lost uris */
- for (sl = folder_tree->priv->select_uris; sl; sl = g_slist_next (sl))
- list = g_list_append (list, g_strdup (((struct _selected_uri *) sl->data)->uri));
+ for (sl = folder_tree->priv->select_uris; sl; sl = g_slist_next (sl)) {
+ const gchar *uri;
+ uri = ((struct _selected_uri *) sl->data)->uri;
+ list = g_list_append (list, g_strdup (uri));
+ }
rows = gtk_tree_selection_get_selected_rows (selection, &model);
for (l=rows; l; l=g_list_next (l)) {
@@ -2960,7 +2963,11 @@ em_folder_tree_select_next_path (EMFolderTree *folder_tree, gboolean skip_read_f
iter = child;
} else {
while (1) {
- gboolean has_parent = gtk_tree_model_iter_parent (model, &parent, &iter);
+ gboolean has_parent;
+
+ has_parent = gtk_tree_model_iter_parent (
+ model, &parent, &iter);
+
if (gtk_tree_model_iter_next (model, &iter)) {
path = gtk_tree_model_get_path (model, &iter);
break;