From b4f3f0c1028773d2f06a1a9311037a8cdccb84cf Mon Sep 17 00:00:00 2001 From: Jason Leach Date: Mon, 23 Jul 2001 19:14:53 +0000 Subject: [Bug #5225: No UI way to mark as unimportant] 2001-07-23 Jason Leach [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 --- mail/mail-callbacks.c | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) (limited to 'mail/mail-callbacks.c') 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 @@ -1277,6 +1277,12 @@ mark_as_important (BonoboUIComponent *uih, void *user_data, const char *path) flag_messages (FOLDER_BROWSER (user_data), CAMEL_MESSAGE_FLAGGED, CAMEL_MESSAGE_FLAGGED); } +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) { @@ -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; -- cgit v1.2.3