aboutsummaryrefslogtreecommitdiffstats
path: root/mail/e-mail-shell-view-actions.c
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@src.gnome.org>2008-12-20 12:13:39 +0800
committerMatthew Barnes <mbarnes@src.gnome.org>2008-12-20 12:13:39 +0800
commit780c042e12aa71bfa3498d3976d28a63aafb259e (patch)
tree6d7068c84b3420d0e1b40f64762596133b7e4b99 /mail/e-mail-shell-view-actions.c
parent2a771c37303b4d56e7c7462c1e7dec68b4508293 (diff)
downloadgsoc2013-evolution-780c042e12aa71bfa3498d3976d28a63aafb259e.tar
gsoc2013-evolution-780c042e12aa71bfa3498d3976d28a63aafb259e.tar.gz
gsoc2013-evolution-780c042e12aa71bfa3498d3976d28a63aafb259e.tar.bz2
gsoc2013-evolution-780c042e12aa71bfa3498d3976d28a63aafb259e.tar.lz
gsoc2013-evolution-780c042e12aa71bfa3498d3976d28a63aafb259e.tar.xz
gsoc2013-evolution-780c042e12aa71bfa3498d3976d28a63aafb259e.tar.zst
gsoc2013-evolution-780c042e12aa71bfa3498d3976d28a63aafb259e.zip
Committing progress. About to try something radical...
svn path=/branches/kill-bonobo/; revision=36919
Diffstat (limited to 'mail/e-mail-shell-view-actions.c')
-rw-r--r--mail/e-mail-shell-view-actions.c73
1 files changed, 65 insertions, 8 deletions
diff --git a/mail/e-mail-shell-view-actions.c b/mail/e-mail-shell-view-actions.c
index da4ba4b081..83131c2a92 100644
--- a/mail/e-mail-shell-view-actions.c
+++ b/mail/e-mail-shell-view-actions.c
@@ -66,8 +66,15 @@ static void
action_mail_caret_mode_cb (GtkToggleAction *action,
EMailShellView *mail_shell_view)
{
- /* FIXME */
- g_print ("Action: %s\n", gtk_action_get_name (GTK_ACTION (action)));
+ EMailShellContent *mail_shell_content;
+ EMFormatHTMLDisplay *format;
+ gboolean active;
+
+ mail_shell_content = mail_shell_view->priv->mail_shell_content;
+ format = e_mail_shell_content_get_preview_format (mail_shell_content);
+ active = gtk_toggle_action_get_active (action);
+
+ em_format_html_display_set_caret_mode (format, active);
}
static void
@@ -258,24 +265,74 @@ static void
action_mail_flag_clear_cb (GtkAction *action,
EMailShellView *mail_shell_view)
{
- /* FIXME */
- g_print ("Action: %s\n", gtk_action_get_name (GTK_ACTION (action)));
+ EMailShellContent *mail_shell_content;
+ EMFormatHTMLDisplay *format;
+ EMFolderView *folder_view;
+ EShellWindow *shell_window;
+ EShellView *shell_view;
+ GPtrArray *uids;
+
+ shell_view = E_SHELL_VIEW (mail_shell_view);
+ shell_window = e_shell_view_get_shell_window (shell_view);
+
+ mail_shell_content = mail_shell_view->priv->mail_shell_content;
+ folder_view = e_mail_shell_content_get_folder_view (mail_shell_content);
+ format = e_mail_shell_content_get_preview_format (mail_shell_content);
+
+ uids = message_list_get_selected (folder_view->list);
+
+ em_utils_flag_for_followup_clear (
+ GTK_WIDGET (shell_window), folder_view->folder, uids);
+
+ em_format_redraw ((EMFormat *) format);
}
static void
action_mail_flag_completed_cb (GtkAction *action,
EMailShellView *mail_shell_view)
{
- /* FIXME */
- g_print ("Action: %s\n", gtk_action_get_name (GTK_ACTION (action)));
+ EMailShellContent *mail_shell_content;
+ EMFormatHTMLDisplay *format;
+ EMFolderView *folder_view;
+ EShellWindow *shell_window;
+ EShellView *shell_view;
+ GPtrArray *uids;
+
+ shell_view = E_SHELL_VIEW (mail_shell_view);
+ shell_window = e_shell_view_get_shell_window (shell_view);
+
+ mail_shell_content = mail_shell_view->priv->mail_shell_content;
+ folder_view = e_mail_shell_content_get_folder_view (mail_shell_content);
+ format = e_mail_shell_content_get_preview_format (mail_shell_content);
+
+ uids = message_list_get_selected (folder_view->list);
+
+ em_utils_flag_for_followup_completed (
+ GTK_WIDGET (shell_window), folder_view->folder, uids);
+
+ em_format_redraw ((EMFormat *) format);
}
static void
action_mail_flag_for_followup_cb (GtkAction *action,
EMailShellView *mail_shell_view)
{
- /* FIXME */
- g_print ("Action: %s\n", gtk_action_get_name (GTK_ACTION (action)));
+ EMailShellContent *mail_shell_content;
+ EMFolderView *folder_view;
+ EShellWindow *shell_window;
+ EShellView *shell_view;
+ GPtrArray *uids;
+
+ shell_view = E_SHELL_VIEW (mail_shell_view);
+ shell_window = e_shell_view_get_shell_window (shell_view);
+
+ mail_shell_content = mail_shell_view->priv->mail_shell_content;
+ folder_view = e_mail_shell_content_get_folder_view (mail_shell_content);
+
+ uids = message_list_get_selected (folder_view->list);
+
+ em_utils_flag_for_followup (
+ GTK_WIDGET (shell_window), folder_view->folder, uids);
}
static void