[grisbi-cvs] [SCM] grisbi branch, master, updated. upstream_version_0_9_2-16-g64e6989

Philippe Delorme nobody at users.sourceforge.net
Mon Jun 13 10:11:31 CEST 2011


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "grisbi".

The branch, master has been updated
       via  64e6989fd15fd670c5c9b597cefb1f37e31b3dbb (commit)
      from  46e38c067e3df3f832e20a0fc0c1b9e17290c01f (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 64e6989fd15fd670c5c9b597cefb1f37e31b3dbb
Author: Philippe Delorme <philippedelorme at users.sourceforge.net>
Date:   Mon Jun 13 10:09:12 2011 +0200

    Do not ask whether encrypting file or not if plugin not available
    
    Anyway, Grisbi won't be able to save it. Confusing for end-user.

-----------------------------------------------------------------------

Changes:
diff --git a/src/gsb_assistant_file.c b/src/gsb_assistant_file.c
index 3e746fb..e56fa06 100644
--- a/src/gsb_assistant_file.c
+++ b/src/gsb_assistant_file.c
@@ -322,13 +322,20 @@ static GtkWidget *gsb_assistant_file_page_2 ( GtkWidget *assistant )
 			GTK_SHRINK | GTK_FILL, 0, 0, 0 );
 
     /* will we crypt the file ? */
-    button = gsb_automem_checkbutton_new ( _("Encrypt Grisbi file"),
-					   &(etat.crypt_file), G_CALLBACK (gsb_gui_encryption_toggled), NULL);
-    gtk_box_pack_start ( GTK_BOX ( paddingbox ), button,
-			 FALSE, FALSE, 0 );
+    if ( gsb_plugin_find ( "openssl" ) )
+    {
+        button = gsb_automem_checkbutton_new ( _("Encrypt Grisbi file"),
+                                               &(etat.crypt_file), G_CALLBACK (gsb_gui_encryption_toggled), NULL);
+        gtk_box_pack_start ( GTK_BOX ( paddingbox ), button,
+                             FALSE, FALSE, 0 );
 
-    if ( etat.crypt_file )
-        run.new_crypted_file = TRUE;
+        if ( etat.crypt_file )
+            run.new_crypted_file = TRUE;
+    }
+    else
+    {
+        run.new_crypted_file = FALSE;
+    }
 
     /* date format */
     paddingbox = gsb_config_date_format_chosen ( vbox, GTK_ORIENTATION_HORIZONTAL );
diff --git a/src/gsb_assistant_first.c b/src/gsb_assistant_first.c
index 6d6ddc9..3f11544 100644
--- a/src/gsb_assistant_first.c
+++ b/src/gsb_assistant_first.c
@@ -250,13 +250,20 @@ static GtkWidget *gsb_assistant_first_page_2 ( GtkWidget *assistant )
 			 FALSE, FALSE, 0 );
 
     /* crypt the grisbi file */
-    button = gsb_automem_checkbutton_new ( _("Encrypt Grisbi file"),
-					   &(etat.crypt_file), G_CALLBACK (gsb_gui_encryption_toggled), NULL);
-    gtk_box_pack_start ( GTK_BOX ( paddingbox ), button,
-			 FALSE, FALSE, 0 );
+    if ( gsb_plugin_find ( "openssl" ) )
+    {
+        button = gsb_automem_checkbutton_new ( _("Encrypt Grisbi file"),
+                                               &(etat.crypt_file), G_CALLBACK (gsb_gui_encryption_toggled), NULL);
+        gtk_box_pack_start ( GTK_BOX ( paddingbox ), button,
+                             FALSE, FALSE, 0 );
 
-    if ( etat.crypt_file )
-        run.new_crypted_file = TRUE;
+        if ( etat.crypt_file )
+            run.new_crypted_file = TRUE;
+    }
+    else
+    {
+        run.new_crypted_file = FALSE;
+    }
 
     /* Automatic backup ? */
     button = gsb_automem_checkbutton_new (_("Make a backup copy before saving files"),


hooks/post-receive
-- 
grisbi


More information about the cvs mailing list