CVS: sylpheedclaws/sylpheed-claws/src compose.c,1.382.2.338,1.382.2.339
[email protected] Mon, 04 Dec 2006 19:00:47 +0000
Newsgroups
gmane.mail.sylpheed.claws.cvs
Message-ID
<[email protected] >
Update of /pack/anoncvs/sylpheedclaws/sylpheed-claws/src
In directory sunsite.dk:/tmp/cvs-serv13890/src
Modified Files:
Tag: gtk2
compose.c
Log Message:
2006-12-04 [colin] 2.6.1cvs2
* src/compose.c
Run pre-send hook only when checking
everything
Index: compose.c
===================================================================
RCS file: /pack/anoncvs/sylpheedclaws/sylpheed-claws/src/compose.c,v
retrieving revision 1.382.2.338
retrieving revision 1.382.2.339
diff -u -d -r1.382.2.338 -r1.382.2.339
--- compose.c 2006/11/29 08:54:05 1.382.2.338
+++ compose.c 2006/12/04 19:00:39 1.382.2.339
@@ -266,7 +266,7 @@
static gboolean compose_check_for_valid_recipient
(Compose *compose);
static gboolean compose_check_entries (Compose *compose,
- gboolean check_subject);
+ gboolean check_everything);
static gint compose_write_to_file (Compose *compose,
FILE *fp,
gint action,
@@ -4207,7 +4207,7 @@
return TRUE;
}
-static gboolean compose_check_entries(Compose *compose, gboolean check_subject)
+static gboolean compose_check_entries(Compose *compose, gboolean check_everything)
{
const gchar *str;
@@ -4225,7 +4225,7 @@
if (!compose->batch) {
str = gtk_entry_get_text(GTK_ENTRY(compose->subject_entry));
- if (*str == '\0' && check_subject == TRUE) {
+ if (*str == '\0' && check_everything == TRUE) {
AlertValue aval;
aval = alertpanel(_("Send"),
@@ -4236,7 +4236,7 @@
}
}
- if (hooks_invoke(COMPOSE_CHECK_BEFORE_SEND_HOOKLIST, compose))
+ if (check_everything && hooks_invoke(COMPOSE_CHECK_BEFORE_SEND_HOOKLIST, compose))
return FALSE;
return TRUE;