aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mail-callbacks.c
diff options
context:
space:
mode:
authorJason Leach <jleach@ximian.com>2001-07-24 03:14:53 +0800
committerJacob Leach <jleach@src.gnome.org>2001-07-24 03:14:53 +0800
commitb4f3f0c1028773d2f06a1a9311037a8cdccb84cf (patch)
treec823783a489a7aa9be46a345e13ed812403e2a82 /mail/mail-callbacks.c
parent05ec4697c84a948310556b88e451c9dfc663967e (diff)
downloadgsoc2013-evolution-b4f3f0c1028773d2f06a1a9311037a8cdccb84cf.tar
gsoc2013-evolution-b4f3f0c1028773d2f06a1a9311037a8cdccb84cf.tar.gz
gsoc2013-evolution-b4f3f0c1028773d2f06a1a9311037a8cdccb84cf.tar.bz2
gsoc2013-evolution-b4f3f0c1028773d2f06a1a9311037a8cdccb84cf.tar.lz
gsoc2013-evolution-b4f3f0c1028773d2f06a1a9311037a8cdccb84cf.tar.xz
gsoc2013-evolution-b4f3f0c1028773d2f06a1a9311037a8cdccb84cf.tar.zst
gsoc2013-evolution-b4f3f0c1028773d2f06a1a9311037a8cdccb84cf.zip
[Bug #5225: No UI way to mark as unimportant]
2001-07-23 Jason Leach <jleach@ximian.com> [Bug #5225: No UI way to mark as unimportant] * folder-browser.c (on_right_click): Do the necessary stuff to show or hide the correct "Mark Important" or "Mark as Unimportant" menu items depending on the status of messages that are selected. * folder-browser-ui.c: Add the MarkAsUnimportant verb here. * mail-callbacks.c (mark_as_unimportant): Simple function that's the callback for these new menu items. svn path=/trunk/; revision=11316
Diffstat (limited to 'mail/mail-callbacks.c')
-rw-r--r--mail/mail-callbacks.c14
1 files changed, 10 insertions, 4 deletions
diff --git a/mail/mail-callbacks.c b/mail/mail-callbacks.c
index 067866fed5..5a4e782671 100644
--- a/mail/mail-callbacks.c
+++ b/mail/mail-callbacks.c
@@ -1278,6 +1278,12 @@ mark_as_important (BonoboUIComponent *uih, void *user_data, const char *path)
}
void
+mark_as_unimportant (BonoboUIComponent *uih, void *user_data, const char *path)
+{
+ flag_messages (FOLDER_BROWSER (user_data), CAMEL_MESSAGE_FLAGGED, 0);
+}
+
+void
toggle_as_important (BonoboUIComponent *uih, void *user_data, const char *path)
{
toggle_flags (FOLDER_BROWSER (user_data), CAMEL_MESSAGE_FLAGGED);
@@ -1777,13 +1783,13 @@ do_mail_print (MailDisplay *md, gboolean preview)
int copies = 1;
int collate = FALSE;
- if (!preview){
+ if (!preview) {
- gpd = GNOME_PRINT_DIALOG (
- gnome_print_dialog_new (_("Print Message"), GNOME_PRINT_DIALOG_COPIES));
+ gpd = GNOME_PRINT_DIALOG (gnome_print_dialog_new (_("Print Message"),
+ GNOME_PRINT_DIALOG_COPIES));
gnome_dialog_set_default (GNOME_DIALOG (gpd), GNOME_PRINT_PRINT);
- switch (gnome_dialog_run (GNOME_DIALOG (gpd))){
+ switch (gnome_dialog_run (GNOME_DIALOG (gpd))) {
case GNOME_PRINT_PRINT:
break;