aboutsummaryrefslogtreecommitdiffstats
path: root/mail/folder-browser-factory.c
diff options
context:
space:
mode:
authorMichael Zucci <zucchi@src.gnome.org>2000-05-02 11:00:56 +0800
committerMichael Zucci <zucchi@src.gnome.org>2000-05-02 11:00:56 +0800
commit0cb506a96abd31962280e8c1f4372c5163489a48 (patch)
treeb07e10f61b942e6f6ff4cb5f9c3e51495b078603 /mail/folder-browser-factory.c
parent2cc9dabf78074ba6dfa4f3c84285b607fdf8cc54 (diff)
downloadgsoc2013-evolution-0cb506a96abd31962280e8c1f4372c5163489a48.tar
gsoc2013-evolution-0cb506a96abd31962280e8c1f4372c5163489a48.tar.gz
gsoc2013-evolution-0cb506a96abd31962280e8c1f4372c5163489a48.tar.bz2
gsoc2013-evolution-0cb506a96abd31962280e8c1f4372c5163489a48.tar.lz
gsoc2013-evolution-0cb506a96abd31962280e8c1f4372c5163489a48.tar.xz
gsoc2013-evolution-0cb506a96abd31962280e8c1f4372c5163489a48.tar.zst
gsoc2013-evolution-0cb506a96abd31962280e8c1f4372c5163489a48.zip
Ok, you can now delete and expunge messages ... not really pretty
(gui wise), but it works, after a fashion. > * folder-browser-factory.c: Setup callback for actual delete op. > (control_activate): Setup a tool menu item to expnge deleted > messages. > > * mail-ops.c (delete_msg): Toggle the delete flag on a message. > (expunge_folder): New function to expunge deleted messages from > the current folder. svn path=/trunk/; revision=2744
Diffstat (limited to 'mail/folder-browser-factory.c')
-rw-r--r--mail/folder-browser-factory.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/mail/folder-browser-factory.c b/mail/folder-browser-factory.c
index a485df29d9..10f0e50a88 100644
--- a/mail/folder-browser-factory.c
+++ b/mail/folder-browser-factory.c
@@ -126,7 +126,7 @@ static GnomeUIInfo gnome_toolbar [] = {
GNOMEUIINFO_ITEM_STOCK (N_("Print"), N_("Print the selected message"), random_cb, GNOME_STOCK_PIXMAP_PRINT),
- GNOMEUIINFO_ITEM_STOCK (N_("Delete"), N_("Delete this message"), random_cb, GNOME_STOCK_PIXMAP_TRASH),
+ GNOMEUIINFO_ITEM_STOCK (N_("Delete"), N_("Delete this message"), delete_msg, GNOME_STOCK_PIXMAP_TRASH),
GNOMEUIINFO_END
};
@@ -141,12 +141,17 @@ control_activate (BonoboControl *control, BonoboUIHandler *uih)
remote_uih = bonobo_control_get_remote_ui_handler (control);
bonobo_ui_handler_set_container (uih, remote_uih);
+ folder_browser = bonobo_control_get_widget (control);
+
bonobo_ui_handler_menu_new_item (uih, "/File/Mail", N_("_Mail"),
NULL, -1,
BONOBO_UI_HANDLER_PIXMAP_NONE, NULL,
0, 0, send_msg, NULL);
- folder_browser = bonobo_control_get_widget (control);
+ bonobo_ui_handler_menu_new_item (uih, "/Tools/Expunge", N_("_Expunge"),
+ NULL, -1,
+ BONOBO_UI_HANDLER_PIXMAP_STOCK, GNOME_STOCK_PIXMAP_TRASH,
+ 0, 0, expunge_folder, folder_browser);
toolbar = gtk_toolbar_new (GTK_ORIENTATION_HORIZONTAL,
GTK_TOOLBAR_BOTH);
@@ -170,6 +175,7 @@ static void
control_deactivate (BonoboControl *control, BonoboUIHandler *uih)
{
bonobo_ui_handler_menu_remove (uih, "/File/Mail");
+ bonobo_ui_handler_menu_remove (uih, "/Tools/Expunge");
bonobo_ui_handler_dock_remove (uih, "/Toolbar");
}