diff options
Diffstat (limited to 'mail/folder-browser.c')
-rw-r--r-- | mail/folder-browser.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/mail/folder-browser.c b/mail/folder-browser.c index 2d75b9e4e0..fb58220e7f 100644 --- a/mail/folder-browser.c +++ b/mail/folder-browser.c @@ -2269,6 +2269,13 @@ on_selection_changed (GtkObject *obj, gpointer user_data) update_status_bar_idle(fb); } + +static void +on_cursor_activated(ETree *tree, int row, ETreePath path, gpointer user_data) +{ + on_selection_changed((GtkObject *)tree, user_data); +} + static void fb_resize_cb (GtkWidget *w, GtkAllocation *a, FolderBrowser *fb) { @@ -2320,6 +2327,7 @@ folder_browser_gui_init (FolderBrowser *fb) esm = e_tree_get_selection_model (E_TREE (fb->message_list->tree)); gtk_signal_connect (GTK_OBJECT (esm), "selection_changed", on_selection_changed, fb); + gtk_signal_connect (GTK_OBJECT (esm), "cursor_activated", on_cursor_activated, fb); fb->selection_state = FB_SELSTATE_NONE; /* default to none */ e_paned_add1 (E_PANED (fb->vpaned), GTK_WIDGET (fb->message_list)); |