aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mail-callbacks.c
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@ximian.com>2002-02-09 06:32:13 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2002-02-09 06:32:13 +0800
commit9fecb732dee690a2ddf43f9e7bf41ae6a7f91f52 (patch)
tree946d872c3456f6f8992556ab79a9a3010f5a1aa2 /mail/mail-callbacks.c
parenta61a6cab2068b39afd97c29ad544b8bc008b1453 (diff)
downloadgsoc2013-evolution-9fecb732dee690a2ddf43f9e7bf41ae6a7f91f52.tar.gz
gsoc2013-evolution-9fecb732dee690a2ddf43f9e7bf41ae6a7f91f52.tar.zst
gsoc2013-evolution-9fecb732dee690a2ddf43f9e7bf41ae6a7f91f52.zip
Base class for a message tag editor.
2002-02-08 Jeffrey Stedfast <fejj@ximian.com> * message-tag-editor.[c,h]: Base class for a message tag editor. * folder-browser.c (on_right_click): Setup the hide/enable masks for "Flag for Follow-up" * mail-callbacks.c (confirm_expunge): Instead of hiding deleted messages and then expunging, disable the use of the message-list completely during the expunge operation. (expunged_folder): Re-enable the use of the message-list widget here. svn path=/trunk/; revision=15626
Diffstat (limited to 'mail/mail-callbacks.c')
-rw-r--r--mail/mail-callbacks.c39
1 files changed, 22 insertions, 17 deletions
diff --git a/mail/mail-callbacks.c b/mail/mail-callbacks.c
index f2b7dd5064..2dcbec039c 100644
--- a/mail/mail-callbacks.c
+++ b/mail/mail-callbacks.c
@@ -1808,6 +1808,24 @@ toggle_as_important (BonoboUIComponent *uih, void *user_data, const char *path)
}
void
+flag_for_followup (BonoboUIComponent *uih, void *user_data, const char *path)
+{
+ ;
+}
+
+void
+flag_completed (BonoboUIComponent *uih, void *user_data, const char *path)
+{
+ ;
+}
+
+void
+flag_clear (BonoboUIComponent *uih, void *user_data, const char *path)
+{
+ ;
+}
+
+void
zoom_in (BonoboUIComponent *uih, void *user_data, const char *path)
{
FolderBrowser *fb = FOLDER_BROWSER (user_data);
@@ -2230,24 +2248,16 @@ previous_flagged_msg (GtkWidget *button, gpointer user_data)
CAMEL_MESSAGE_FLAGGED, CAMEL_MESSAGE_FLAGGED, TRUE);
}
-struct _expunged_folder_data {
- FolderBrowser *fb;
- gboolean hidedeleted;
-};
-
static void
expunged_folder (CamelFolder *f, void *data)
{
- FolderBrowser *fb = ((struct _expunged_folder_data *) data)->fb;
- gboolean hidedeleted = ((struct _expunged_folder_data *) data)->hidedeleted;
+ FolderBrowser *fb = data;
if (FOLDER_BROWSER_IS_DESTROYED (fb))
return;
fb->expunging = NULL;
- message_list_set_hidedeleted (fb->message_list, hidedeleted);
-
- g_free (data);
+ gtk_widget_set_sensitive (GTK_WIDGET (fb->message_list), TRUE);
}
static gboolean
@@ -2300,15 +2310,10 @@ expunge_folder (BonoboUIComponent *uih, void *user_data, const char *path)
return;
if (fb->folder && (fb->expunging == NULL || fb->folder != fb->expunging) && confirm_expunge (fb)) {
- struct _expunged_folder_data *data;
CamelMessageInfo *info;
- data = g_malloc (sizeof (*data));
- data->fb = fb;
- data->hidedeleted = fb->message_list->hidedeleted;
-
/* hide the deleted messages so user can't click on them while we expunge */
- message_list_set_hidedeleted (fb->message_list, TRUE);
+ gtk_widget_set_sensitive (GTK_WIDGET (fb->message_list), FALSE);
/* Only blank the mail display if the message being
viewed is one of those to be expunged */
@@ -2320,7 +2325,7 @@ expunge_folder (BonoboUIComponent *uih, void *user_data, const char *path)
}
fb->expunging = fb->folder;
- mail_expunge_folder (fb->folder, expunged_folder, data);
+ mail_expunge_folder (fb->folder, expunged_folder, fb);
}
}