aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@helixcode.com>2000-08-09 12:11:34 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2000-08-09 12:11:34 +0800
commit0efeeb2a5d70be6a777f0eaddd4f10a08af6c363 (patch)
tree6efb5c60a6586dd3f29d9ccf3d2330692d4d9eb1
parentf4a16f3c8d42b164813c7273c1991fd81958e1f0 (diff)
downloadgsoc2013-evolution-0efeeb2a5d70be6a777f0eaddd4f10a08af6c363.tar
gsoc2013-evolution-0efeeb2a5d70be6a777f0eaddd4f10a08af6c363.tar.gz
gsoc2013-evolution-0efeeb2a5d70be6a777f0eaddd4f10a08af6c363.tar.bz2
gsoc2013-evolution-0efeeb2a5d70be6a777f0eaddd4f10a08af6c363.tar.lz
gsoc2013-evolution-0efeeb2a5d70be6a777f0eaddd4f10a08af6c363.tar.xz
gsoc2013-evolution-0efeeb2a5d70be6a777f0eaddd4f10a08af6c363.tar.zst
gsoc2013-evolution-0efeeb2a5d70be6a777f0eaddd4f10a08af6c363.zip
Attached a double_click signal handler (on_double_click): Our lovely new
2000-08-09 Jeffrey Stedfast <fejj@helixcode.com> * message-list.c (message_list_init): Attached a double_click signal handler (on_double_click): Our lovely new double_click callback. Will display the current selected message in a new window svn path=/trunk/; revision=4624
-rw-r--r--mail/ChangeLog9
-rw-r--r--mail/message-list.c38
2 files changed, 33 insertions, 14 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog
index da69ba2d5e..24a89b8b2f 100644
--- a/mail/ChangeLog
+++ b/mail/ChangeLog
@@ -1,7 +1,14 @@
+2000-08-09 Jeffrey Stedfast <fejj@helixcode.com>
+
+ * message-list.c (message_list_init): Attached a double_click
+ signal handler
+ (on_double_click): Our lovely new double_click callback. Will
+ display the current selected message in a new window
+
2000-08-08 Jeremy Wise <jwise@pathwaynet.com>
* mail-config.[ch], folder-browser.c: Added configuration work to
save the size of the vpaned widget. It will be functional when the
- e_paned widget emits a "resized" widget
+ e_paned widget emits a "resized" signal
2000-08-08 Jeffrey Stedfast <fejj@helixcode.com>
diff --git a/mail/message-list.c b/mail/message-list.c
index c20534541e..b1c0e050d2 100644
--- a/mail/message-list.c
+++ b/mail/message-list.c
@@ -62,6 +62,7 @@ static POA_Evolution_MessageList__vepv evolution_message_list_vepv;
static void on_cursor_change_cmd (ETableScrolled *table, int row, gpointer user_data);
static void select_row (ETableScrolled *table, gpointer user_data);
static gint on_right_click (ETableScrolled *table, gint row, gint col, GdkEvent *event, MessageList *list);
+static void on_double_click (ETableScrolled *table, gint row, MessageList *list);
static void select_msg (MessageList *message_list, gint row);
static char *filter_date (const void *data);
@@ -587,10 +588,13 @@ message_list_init (GtkObject *object)
GTK_SIGNAL_FUNC (select_row), message_list);
gtk_signal_connect (GTK_OBJECT (message_list->etable), "cursor_change",
- GTK_SIGNAL_FUNC (on_cursor_change_cmd), message_list);
+ GTK_SIGNAL_FUNC (on_cursor_change_cmd), message_list);
gtk_signal_connect (GTK_OBJECT (message_list->etable), "right_click",
- GTK_SIGNAL_FUNC (on_right_click), message_list);
+ GTK_SIGNAL_FUNC (on_right_click), message_list);
+
+ gtk_signal_connect (GTK_OBJECT (message_list->etable), "double_click",
+ GTK_SIGNAL_FUNC (on_double_click), message_list);
gtk_widget_show (message_list->etable);
@@ -980,17 +984,17 @@ on_right_click (ETableScrolled *table, gint row, gint col, GdkEvent *event, Mess
FolderBrowser *fb = list->parent_folder_browser;
extern CamelFolder *drafts_folder;
EPopupMenu menu[] = {
- { "View Message", NULL, GTK_SIGNAL_FUNC (view_msg), 0 },
- { "Edit Message", NULL, GTK_SIGNAL_FUNC (edit_msg), 1 },
- { "Print Message", NULL, GTK_SIGNAL_FUNC (print_msg), 0 },
- { "", NULL, GTK_SIGNAL_FUNC (NULL), 0 },
- { "Reply to Sender", NULL, GTK_SIGNAL_FUNC (reply_to_sender), 0 },
- { "Reply to All", NULL, GTK_SIGNAL_FUNC (reply_to_all), 0 },
- { "Forward Message", NULL, GTK_SIGNAL_FUNC (forward_msg), 0 },
- { "", NULL, GTK_SIGNAL_FUNC (NULL), 0 },
- { "Delete Message", NULL, GTK_SIGNAL_FUNC (delete_msg), 0 },
- { "Move Message", NULL, GTK_SIGNAL_FUNC (move_msg), 0 },
- { NULL, NULL, NULL, 0 }
+ { "Open in New Window", NULL, GTK_SIGNAL_FUNC (view_msg), 0 },
+ { "Edit Message", NULL, GTK_SIGNAL_FUNC (edit_msg), 1 },
+ { "Print Message", NULL, GTK_SIGNAL_FUNC (print_msg), 0 },
+ { "", NULL, GTK_SIGNAL_FUNC (NULL), 0 },
+ { "Reply to Sender", NULL, GTK_SIGNAL_FUNC (reply_to_sender), 0 },
+ { "Reply to All", NULL, GTK_SIGNAL_FUNC (reply_to_all), 0 },
+ { "Forward Message", NULL, GTK_SIGNAL_FUNC (forward_msg), 0 },
+ { "", NULL, GTK_SIGNAL_FUNC (NULL), 0 },
+ { "Delete Message", NULL, GTK_SIGNAL_FUNC (delete_msg), 0 },
+ { "Move Message", NULL, GTK_SIGNAL_FUNC (move_msg), 0 },
+ { NULL, NULL, NULL, 0 }
};
e_popup_menu_run (menu, (GdkEventButton *)event, (fb->folder == drafts_folder) ? 0 : 1, fb);
@@ -998,6 +1002,14 @@ on_right_click (ETableScrolled *table, gint row, gint col, GdkEvent *event, Mess
return TRUE;
}
+static void
+on_double_click (ETableScrolled *table, gint row, MessageList *list)
+{
+ FolderBrowser *fb = list->parent_folder_browser;
+
+ view_msg (NULL, fb);
+}
+
struct message_list_foreach_data {
MessageList *message_list;
MessageListForeachFunc callback;