[grisbi-cvs] [SCM] grisbi branch, pbiava_integration_mac_osx, updated. upstream_version_0_7_3-24-g7d94082

Pierre Biava nobody at users.sourceforge.net
Sun Sep 12 18:48:00 CEST 2010


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, pbiava_integration_mac_osx has been updated
       via  7d94082704db2c458691134debfeb963b467e893 (commit)
      from  850119b342771601ec27aef16daa704d5e5bc53b (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 7d94082704db2c458691134debfeb963b467e893
Author: pbiava <pierre.biava at nerim.net>
Date:   Sun Sep 12 18:45:31 2010 +0200

    Fixed a bug of form transactions

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

Changes:
diff --git a/src/gsb_form.c b/src/gsb_form.c
index 470fbac..d13f015 100644
--- a/src/gsb_form.c
+++ b/src/gsb_form.c
@@ -344,6 +344,9 @@ void gsb_form_create_widgets ( void )
     gtk_widget_show_all ( transaction_form );
     gtk_widget_hide ( form_scheduled_part );
 
+    gtk_widget_set_sensitive ( GTK_WIDGET ( form_button_valid ), FALSE );
+    gtk_widget_set_sensitive ( GTK_WIDGET ( form_button_cancel ), FALSE );
+
     gsb_form_show ( FALSE );
 }
 
@@ -413,10 +416,6 @@ gboolean gsb_form_fill_by_transaction ( gint transaction_number,
     /* show and prepare the form */
     gsb_form_show (TRUE);
 
-    /* sensitive the valid and cancel buttons */
-    gtk_widget_set_sensitive (GTK_WIDGET (form_button_valid), TRUE);
-    gtk_widget_set_sensitive (GTK_WIDGET (form_button_cancel), TRUE);
-
     if (!is_transaction)
     {
 	/* we need to set up the part of scheduler form here because changing the account
diff --git a/src/transaction_list.c b/src/transaction_list.c
index 2a952f8..f5e495b 100644
--- a/src/transaction_list.c
+++ b/src/transaction_list.c
@@ -984,6 +984,9 @@ gboolean transaction_list_update_transaction ( gint transaction_number )
 
     devel_debug_int (transaction_number);
 
+    if ( transaction_number == 0 )
+        return FALSE;
+
     custom_list = transaction_model_get_model ();
 
     g_return_val_if_fail ( custom_list != NULL, FALSE);


hooks/post-receive
-- 
grisbi


More information about the cvs mailing list