[grisbi-cvs] [SCM] grisbi branch, master, updated. upstream_version_1_1_1-73-g2131fec

Pierre Biava nobody at users.sourceforge.net
Sat Jan 19 15:44:31 CET 2013


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  2131feccad22cd6105c0c9bd880939db6114af45 (commit)
       via  a22e4fa2789c827c34ae3a2608c358cedcdb298d (commit)
       via  fc8505b0cc88532ae142c62eee0e72e712eca535 (commit)
      from  53b2a19e07f322bbd97eb3b36dbd1de94fb220e1 (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 2131feccad22cd6105c0c9bd880939db6114af45
Author: pbiava <pierre.biava at nerim.net>
Date:   Sat Jan 19 15:28:38 2013 +0100

    minor change

commit a22e4fa2789c827c34ae3a2608c358cedcdb298d
Author: pbiava <pierre.biava at nerim.net>
Date:   Sat Jan 19 15:12:15 2013 +0100

    prohibits the modification of the voucher for a child transaction

commit fc8505b0cc88532ae142c62eee0e72e712eca535
Author: pbiava <pierre.biava at nerim.net>
Date:   Sat Jan 19 15:03:53 2013 +0100

    fixes the indenting

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

Changes:
diff --git a/src/gsb_form.c b/src/gsb_form.c
index d084a67..d50a394 100644
--- a/src/gsb_form.c
+++ b/src/gsb_form.c
@@ -579,55 +579,53 @@ gboolean gsb_form_set_sensitive ( gboolean split,
     GSList *tmp_list;
 
     /* for now, come here only for split or split child */
-    if (!split
-	&&
-	!split_child)
-	return FALSE;
+    if ( !split && !split_child )
+        return FALSE;
 
     tmp_list = gsb_form_widget_get_list ();
 
-    while (tmp_list)
+    while ( tmp_list )
     {
-	struct_element *element;
+        struct_element *element;
 
-	element = tmp_list -> data;
+        element = tmp_list -> data;
 
-	/* for a split, hide the exercice and the budget */
-	if (split)
-	{
-	    switch (element -> element_number)
-	    {
-		case TRANSACTION_FORM_BUDGET:
-		case TRANSACTION_FORM_VOUCHER:
-		    gtk_widget_set_sensitive ( element -> element_widget,
-					       FALSE );
-		    break;
-	    }
-	}
+        /* for a split, hide the exercice and the budget */
+        if ( split )
+        {
+            switch ( element -> element_number )
+            {
+            case TRANSACTION_FORM_EXERCICE:
+            case TRANSACTION_FORM_BUDGET:
+                gtk_widget_set_sensitive ( element -> element_widget, FALSE );
+                break;
+            }
+        }
 
-	/* for a child of split, cannot change the date, payee... */
-	if ( split_child )
-	{
-	    /* mixed widgets for transactions and scheduled transactions */
-	    switch (element -> element_number)
-	    {
-		case TRANSACTION_FORM_DATE:
-		case TRANSACTION_FORM_VALUE_DATE:
-		case TRANSACTION_FORM_PARTY:
-		case TRANSACTION_FORM_DEVISE:
-		case TRANSACTION_FORM_CHANGE:
-		case TRANSACTION_FORM_TYPE:
-		case TRANSACTION_FORM_CHEQUE:
-		case TRANSACTION_FORM_BANK:
-		    gtk_widget_set_sensitive ( element -> element_widget,
-					       FALSE );
-		    break;
-	    }
-	    /* specific widgets for scheduled transactions */
-	    gtk_widget_hide (gsb_form_get_scheduler_part ());
-	}
-	tmp_list = tmp_list -> next;
+        /* for a child of split, cannot change the date, payee... */
+        if ( split_child )
+        {
+            /* mixed widgets for transactions and scheduled transactions */
+            switch ( element -> element_number )
+            {
+            case TRANSACTION_FORM_DATE:
+            case TRANSACTION_FORM_VALUE_DATE:
+            case TRANSACTION_FORM_PARTY:
+            case TRANSACTION_FORM_DEVISE:
+            case TRANSACTION_FORM_CHANGE:
+            case TRANSACTION_FORM_TYPE:
+            case TRANSACTION_FORM_CHEQUE:
+            case TRANSACTION_FORM_BANK:
+            case TRANSACTION_FORM_VOUCHER:
+                gtk_widget_set_sensitive ( element -> element_widget, FALSE );
+                break;
+            }
+            /* specific widgets for scheduled transactions */
+            gtk_widget_hide ( gsb_form_get_scheduler_part () );
+        }
+        tmp_list = tmp_list -> next;
     }
+
     return FALSE;
 }
 
@@ -2744,7 +2742,10 @@ gboolean gsb_form_finish_edition ( void )
 
     /* give the focus to the date widget */
     if ( is_transaction )
-        gsb_form_widget_set_focus ( TRANSACTION_FORM_DATE );
+    {
+        if ( mother_number == 0 )
+            gsb_form_widget_set_focus ( TRANSACTION_FORM_DATE );
+    }
     else
         gsb_scheduler_list_edit_transaction (gsb_scheduler_list_get_current_scheduled_number ());
 


hooks/post-receive
-- 
grisbi


More information about the cvs mailing list