[prev in list] [next in list] [prev in thread] [next in thread]
List: sylpheed
Subject: [sylpheed:15246] Patch to let FILE/EMPTY TRASH respect preference
From: Tommy Reynolds <reynolds () redhat ! com>
Date: 2002-07-30 20:34:27
[Download RAW message or body]
[Attachment #2 (multipart/mixed)]
There is a configuration setting CONFIGURATION / COMMON PREFERENCES / OTHER /
ASK BEFORE EMPTYING that is ignored when the FILE / EMPTY TRASH menu item is
used and the query box is presented whether or not the preference is chosen.
I'm a big discourager of "Are you sure?" questions, so I've made a one-liner
patch against 0.8.1cvs4 so that EMPTY TRASH respects the preference setting.
The patch is attached.
Cheers!
["local-ask_on_clean.patch" (application/octet-stream)]
Index: src/mainwindow.c
===================================================================
RCS file: /cvsroot/sylpheed/sylpheed/src/mainwindow.c,v
retrieving revision 1.148
diff -u -w -p -b -r1.148 mainwindow.c
--- sylpheed/src/mainwindow.c 2002/07/29 10:03:32 1.148
+++ sylpheed-new/src/mainwindow.c 2002/07/30 20:26:50
@@ -2150,7 +2157,7 @@ static void export_mbox_cb(MainWindow *m
static void empty_trash_cb(MainWindow *mainwin, guint action,
GtkWidget *widget)
{
- main_window_empty_trash(mainwin, TRUE);
+ main_window_empty_trash(mainwin, prefs_common.ask_on_clean);
}
static void save_as_cb(MainWindow *mainwin, guint action, GtkWidget *widget)
[Attachment #6 (application/pgp-signature)]
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic