[Gpa-commits] r867 - trunk/src

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Wed Apr 2 22:02:01 CEST 2008


Author: marcus
Date: 2008-04-02 22:02:00 +0200 (Wed, 02 Apr 2008)
New Revision: 867

Modified:
   trunk/src/ChangeLog
   trunk/src/gpafileverifyop.c
Log:
2008-04-02  Marcus Brinkmann  <marcus at g10code.de>

	* gpafileverifyop.c (gpa_file_verify_operation_done_cb): Emit
	file_created signal for direct input case.


Modified: trunk/src/ChangeLog
===================================================================
--- trunk/src/ChangeLog	2008-03-28 06:02:31 UTC (rev 866)
+++ trunk/src/ChangeLog	2008-04-02 20:02:00 UTC (rev 867)
@@ -1,3 +1,8 @@
+2008-04-02  Marcus Brinkmann  <marcus at g10code.de>
+
+	* gpafileverifyop.c (gpa_file_verify_operation_done_cb): Emit
+	file_created signal for direct input case.
+
 2008-03-28  Marcus Brinkmann  <marcus at g10code.de>
 
 	* keyring.c, fileman.c, clipboard.c: Many, many changes to use the

Modified: trunk/src/gpafileverifyop.c
===================================================================
--- trunk/src/gpafileverifyop.c	2008-03-28 06:02:31 UTC (rev 866)
+++ trunk/src/gpafileverifyop.c	2008-04-02 20:02:00 UTC (rev 867)
@@ -1,26 +1,26 @@
 /* gpafileverifyop.c - The GpaOperation object.
- * Copyright (C) 2003 Miguel Coca.
- * Copyright (C) 2008 g10 Code GmbH.
- *
- * This file is part of GPA
- *
- * GPA is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * GPA is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
- */
+   Copyright (C) 2003 Miguel Coca.
+   Copyright (C) 2008 g10 Code GmbH.
+  
+   This file is part of GPA.
 
-#include <config.h>
+   GPA is free software; you can redistribute it and/or modify it
+   under the terms of the GNU General Public License as published by
+   the Free Software Foundation; either version 3 of the License, or
+   (at your option) any later version.
 
+   GPA is distributed in the hope that it will be useful, but WITHOUT
+   ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
+   or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public
+   License for more details.
+
+   You should have received a copy of the GNU General Public License
+   along with this program; if not, see <http://www.gnu.org/licenses/>.  */
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
 #include <glib.h>
 
 #ifdef G_OS_UNIX
@@ -240,6 +240,8 @@
 
   if (file_item->direct_in)
     {
+      /* Direct input is always an inline signature.  */
+
       /* No copy is made.  */
       err = gpgme_data_new_from_mem (&op->sig, file_item->direct_in,
 				     file_item->direct_in_len, 0);
@@ -405,6 +407,14 @@
 	  g_free (op->signature_file);
 	  op->signature_file = NULL;
 	}
+      else
+	{
+	  /* Otherwise, we created a "file" in direct mode.  */
+	  if (file_item->direct_in)
+	    g_signal_emit_by_name (GPA_OPERATION (op), "created_file",
+				   file_item);
+	}
+
       /* Go to the next file in the list and verify it */
       GPA_FILE_OPERATION (op)->current = g_list_next 
 	(GPA_FILE_OPERATION (op)->current);



More information about the Gpa-commits mailing list