From 67dafc6d14d604ae87eb060763a7364f8b58e462 Mon Sep 17 00:00:00 2001 From: hiro Date: Fri, 7 Jan 2011 06:53:58 +0000 Subject: added an option to disable the send dialog. git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@2781 ee746299-78ed-0310-b773-934348b2243d --- src/compose.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/compose.c') diff --git a/src/compose.c b/src/compose.c index 82e1ad8c..9a072d2a 100644 --- a/src/compose.c +++ b/src/compose.c @@ -7177,7 +7177,12 @@ static void compose_send_cb(gpointer data, guint action, GtkWidget *widget) Compose *compose = (Compose *)data; gint val; + if (compose->lock_count > 0) + return; + + gtk_widget_set_sensitive(compose->vbox, FALSE); val = compose_send(compose); + gtk_widget_set_sensitive(compose->vbox, TRUE); if (val == 0) compose_destroy(compose); @@ -7389,6 +7394,9 @@ static void compose_close_cb(gpointer data, guint action, GtkWidget *widget) Compose *compose = (Compose *)data; AlertValue val; + if (compose->lock_count > 0) + return; + if (compose->exteditor_pid != 0) { if (!compose_ext_editor_kill(compose)) return; -- cgit v1.2.3