aboutsummaryrefslogtreecommitdiff
path: root/src/folderview.c
diff options
context:
space:
mode:
authorhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2005-04-08 09:21:14 +0000
committerhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2005-04-08 09:21:14 +0000
commitebc686182e76074e3aaaff5730a229d9533bfe47 (patch)
tree380f85582e98ae1bfeebf96df2b4fad0a21a526f /src/folderview.c
parent3030a5e737c738c7b9466786c8696ee68c04f547 (diff)
folderview.c: fixed infinite loop bug.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@204 ee746299-78ed-0310-b773-934348b2243d
Diffstat (limited to 'src/folderview.c')
-rw-r--r--src/folderview.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/folderview.c b/src/folderview.c
index 15bcd746..b6c90ea2 100644
--- a/src/folderview.c
+++ b/src/folderview.c
@@ -434,6 +434,9 @@ FolderView *folderview_create(void)
G_CALLBACK(folderview_popup_close), folderview);
/* drop callback */
+ gtk_tree_view_enable_model_drag_dest(GTK_TREE_VIEW(treeview),
+ summary_drag_types, 1,
+ GDK_ACTION_MOVE|GDK_ACTION_COPY);
#if 0
gtk_drag_dest_set(ctree, GTK_DEST_DEFAULT_ALL &
~GTK_DEST_DEFAULT_HIGHLIGHT,
@@ -839,8 +842,8 @@ void folderview_check_new(Folder *folder)
main_window_lock(folderview->mainwin);
gtk_widget_set_sensitive(folderview->treeview, FALSE);
- valid = gtk_tree_model_get_iter_first(model, &iter);
- while (valid) {
+ for (valid = gtk_tree_model_get_iter_first(model, &iter);
+ valid; valid = gtkut_tree_model_next(model, &iter)) {
item = NULL;
gtk_tree_model_get(model, &iter,
COL_FOLDER_ITEM, &item, -1);
@@ -855,8 +858,6 @@ void folderview_check_new(Folder *folder)
break;
}
folderview_update_row(folderview, &iter);
-
- valid = gtkut_tree_model_next(model, &iter);
}
gtk_widget_set_sensitive(folderview->treeview, TRUE);