aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNot Zed <NotZed@Ximian.com>2004-05-18 15:58:54 +0800
committerMichael Zucci <zucchi@src.gnome.org>2004-05-18 15:58:54 +0800
commitb0cdc364041108c4e57a55e497b9ca9c7cd06471 (patch)
treead664a58514e6e68afbf28b0412cab53675f3b2c
parent283a879d99a633c28597d2ed088781582dfe98a8 (diff)
downloadgsoc2013-evolution-b0cdc364041108c4e57a55e497b9ca9c7cd06471.tar
gsoc2013-evolution-b0cdc364041108c4e57a55e497b9ca9c7cd06471.tar.gz
gsoc2013-evolution-b0cdc364041108c4e57a55e497b9ca9c7cd06471.tar.bz2
gsoc2013-evolution-b0cdc364041108c4e57a55e497b9ca9c7cd06471.tar.lz
gsoc2013-evolution-b0cdc364041108c4e57a55e497b9ca9c7cd06471.tar.xz
gsoc2013-evolution-b0cdc364041108c4e57a55e497b9ca9c7cd06471.tar.zst
gsoc2013-evolution-b0cdc364041108c4e57a55e497b9ca9c7cd06471.zip
Listen to the tree selection change event directly & proxy out, so we can
2004-05-18 Not Zed <NotZed@Ximian.com> * em-folder-view.c (emfv_list_selection_change): Listen to the tree selection change event directly & proxy out, so we can update the status bar properly. Blah. For #58600. svn path=/trunk/; revision=25954
-rw-r--r--mail/ChangeLog4
-rw-r--r--mail/em-folder-view.c10
2 files changed, 14 insertions, 0 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog
index b4dacc3088..cf8714322a 100644
--- a/mail/ChangeLog
+++ b/mail/ChangeLog
@@ -1,5 +1,9 @@
2004-05-18 Not Zed <NotZed@Ximian.com>
+ * em-folder-view.c (emfv_list_selection_change): Listen to the
+ tree selection change event directly & proxy out, so we can update
+ the status bar properly. Blah. For #58600.
+
** Quick fix for #57434
* em-format.c (emf_format_clone): fix the FIXME about cloning
diff --git a/mail/em-folder-view.c b/mail/em-folder-view.c
index c97d54f77c..3b6422da9e 100644
--- a/mail/em-folder-view.c
+++ b/mail/em-folder-view.c
@@ -98,6 +98,7 @@ static void emfv_list_message_selected(MessageList *ml, const char *uid, EMFolde
static int emfv_list_right_click(ETree *tree, gint row, ETreePath path, gint col, GdkEvent *event, EMFolderView *emfv);
static void emfv_list_double_click(ETree *tree, gint row, ETreePath path, gint col, GdkEvent *event, EMFolderView *emfv);
static int emfv_list_key_press(ETree *tree, int row, ETreePath path, int col, GdkEvent *ev, EMFolderView *emfv);
+static void emfv_list_selection_change(ETree *tree, EMFolderView *emfv);
static void emfv_format_link_clicked(EMFormatHTMLDisplay *efhd, const char *uri, EMFolderView *);
static int emfv_format_popup_event(EMFormatHTMLDisplay *efhd, GdkEventButton *event, const char *uri, CamelMimePart *part, EMFolderView *);
@@ -174,6 +175,7 @@ emfv_init(GObject *o)
g_signal_connect(emfv->list->tree, "right_click", G_CALLBACK(emfv_list_right_click), emfv);
g_signal_connect(emfv->list->tree, "double_click", G_CALLBACK(emfv_list_double_click), emfv);
g_signal_connect(emfv->list->tree, "key_press", G_CALLBACK(emfv_list_key_press), emfv);
+ g_signal_connect(emfv->list->tree, "selection_change", G_CALLBACK(emfv_list_selection_change), emfv);
emfv->preview = (EMFormatHTMLDisplay *)em_format_html_display_new();
/* FIXME: set_session should NOT be called here. Should it be a constructor attribute? */
@@ -2021,6 +2023,14 @@ emfv_list_key_press(ETree *tree, int row, ETreePath path, int col, GdkEvent *ev,
}
static void
+emfv_list_selection_change(ETree *tree, EMFolderView *emfv)
+{
+ /* we can't just listen to the message-list message selected thing, since we dont get them
+ in all cases. blah */
+ g_signal_emit(emfv, signals[EMFV_CHANGED], 0);
+}
+
+static void
emfv_format_link_clicked(EMFormatHTMLDisplay *efhd, const char *uri, EMFolderView *emfv)
{
if (!strncasecmp (uri, "mailto:", 7)) {