diff options
author | Not Zed <NotZed@Ximian.com> | 2002-10-01 15:37:50 +0800 |
---|---|---|
committer | Michael Zucci <zucchi@src.gnome.org> | 2002-10-01 15:37:50 +0800 |
commit | 0f43c2bfdc434237bdb57e5038986a6f56da30e4 (patch) | |
tree | 14b15aee135e014646c07f943ad1a5fa41336a96 /mail/folder-browser.c | |
parent | 53bc3f0cac56fe32c8caefce87d123944e735a61 (diff) | |
download | gsoc2013-evolution-0f43c2bfdc434237bdb57e5038986a6f56da30e4.tar.gz gsoc2013-evolution-0f43c2bfdc434237bdb57e5038986a6f56da30e4.tar.zst gsoc2013-evolution-0f43c2bfdc434237bdb57e5038986a6f56da30e4.zip |
cursor activated on etable is required to know when the selection changes
2002-10-01 Not Zed <NotZed@Ximian.com>
* folder-browser.c (on_cursor_activated): cursor activated on
etable is required to know when the selection changes on a single
row, update selection changed info with this signal too. Sounds
like an etable bug to me, but this fixes #29808.
(folder_browser_gui_init): Hook onto above signal.
svn path=/trunk/; revision=18275
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)); |