aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNot Zed <NotZed@Ximian.com>2002-10-01 15:37:50 +0800
committerMichael Zucci <zucchi@src.gnome.org>2002-10-01 15:37:50 +0800
commit0f43c2bfdc434237bdb57e5038986a6f56da30e4 (patch)
tree14b15aee135e014646c07f943ad1a5fa41336a96
parent53bc3f0cac56fe32c8caefce87d123944e735a61 (diff)
downloadgsoc2013-evolution-0f43c2bfdc434237bdb57e5038986a6f56da30e4.tar
gsoc2013-evolution-0f43c2bfdc434237bdb57e5038986a6f56da30e4.tar.gz
gsoc2013-evolution-0f43c2bfdc434237bdb57e5038986a6f56da30e4.tar.bz2
gsoc2013-evolution-0f43c2bfdc434237bdb57e5038986a6f56da30e4.tar.lz
gsoc2013-evolution-0f43c2bfdc434237bdb57e5038986a6f56da30e4.tar.xz
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
-rw-r--r--mail/ChangeLog8
-rw-r--r--mail/folder-browser.c8
2 files changed, 16 insertions, 0 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog
index 794d5dc78d..a5b3f14f67 100644
--- a/mail/ChangeLog
+++ b/mail/ChangeLog
@@ -1,3 +1,11 @@
+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.
+
2002-09-30 Aaron Weber <aaron@ximian.com>
* mail-signature-editor.c (mail_signature_editor): change
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));