aboutsummaryrefslogtreecommitdiff
path: root/src/mainwindow.c
diff options
context:
space:
mode:
authorhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2005-04-07 07:40:06 +0000
committerhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2005-04-07 07:40:06 +0000
commit39c49cbb79d346f277d236c6b069a9de7dad4211 (patch)
treead31dc7288af4d27c5c5b8ffbb5eac265ced41b8 /src/mainwindow.c
parent130f58af6de1b8669c01ee873a4188b2ffd9c4d5 (diff)
reimplemented folder view with GtkTreeView.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@202 ee746299-78ed-0310-b773-934348b2243d
Diffstat (limited to 'src/mainwindow.c')
-rw-r--r--src/mainwindow.c13
1 files changed, 3 insertions, 10 deletions
diff --git a/src/mainwindow.c b/src/mainwindow.c
index a54b5c64..7675b758 100644
--- a/src/mainwindow.c
+++ b/src/mainwindow.c
@@ -1519,7 +1519,7 @@ void main_window_empty_trash(MainWindow *mainwin, gboolean confirm)
if (mainwin->summaryview->folder_item &&
mainwin->summaryview->folder_item->stype == F_TRASH)
- gtk_widget_grab_focus(mainwin->folderview->ctree);
+ gtk_widget_grab_focus(mainwin->folderview->treeview);
}
void main_window_add_mailbox(MainWindow *mainwin)
@@ -3001,17 +3001,10 @@ static void execute_summary_cb(MainWindow *mainwin, guint action,
static void update_summary_cb(MainWindow *mainwin, guint action,
GtkWidget *widget)
{
- FolderItem *fitem;
- FolderView *folderview = mainwin->folderview;
-
if (!mainwin->summaryview->folder_item) return;
- if (!folderview->opened) return;
-
- fitem = gtk_ctree_node_get_row_data(GTK_CTREE(folderview->ctree),
- folderview->opened);
- if (!fitem) return;
- summary_show(mainwin->summaryview, fitem, TRUE);
+ summary_show(mainwin->summaryview, mainwin->summaryview->folder_item,
+ TRUE);
}
static void prev_cb(MainWindow *mainwin, guint action, GtkWidget *widget)