[grisbi-cvs] grisbi/src gsb_form.c,1.145,1.146

Pierre Biava pbiava at users.sourceforge.net
Fri Jan 29 20:24:29 CET 2010


Update of /cvsroot/grisbi/grisbi/src
In directory sfp-cvsdas-2.v30.ch3.sourceforge.com:/tmp/cvs-serv6016

Modified Files:
	gsb_form.c 
Log Message:
fixed bug 889

Index: gsb_form.c
===================================================================
RCS file: /cvsroot/grisbi/grisbi/src/gsb_form.c,v
retrieving revision 1.145
retrieving revision 1.146
diff -u -d -r1.145 -r1.146
--- gsb_form.c	28 Jan 2010 20:25:12 -0000	1.145
+++ gsb_form.c	29 Jan 2010 19:24:26 -0000	1.146
@@ -2037,10 +2037,11 @@
     gint account_number;
     gint element_suivant;
     GtkWidget *widget_prov;
+    gchar *tmp_str;
     
     element_number = GPOINTER_TO_INT (ptr_origin);
     account_number = gsb_form_get_account_number ();
-
+printf ("element_number = %d \n", element_number);
     /* if etat.entree = 1, entry finish the transaction, else does as tab */
     if ( !etat.entree
 	 &&
@@ -2104,6 +2105,11 @@
 	    break;
 
 	case GDK_ISO_Left_Tab:
+        widget_prov = gsb_form_widget_get_widget ( element_number );
+        tmp_str = g_object_get_data ( G_OBJECT ( widget_prov ), "combo_text" );
+        if ( tmp_str && strlen ( tmp_str ) > 0 )
+            gtk_combofix_set_text ( GTK_COMBOFIX ( widget_prov ), tmp_str );
+
         element_suivant = gsb_form_widget_next_element ( account_number,
 							     element_number,
 							     GSB_LEFT );
@@ -2126,6 +2132,11 @@
 	    break;
 
 	case GDK_Tab :
+        widget_prov = gsb_form_widget_get_widget ( element_number );
+        tmp_str = g_object_get_data ( G_OBJECT ( widget_prov ), "combo_text" );
+        if ( tmp_str && strlen ( tmp_str ) > 0 )
+            gtk_combofix_set_text ( GTK_COMBOFIX ( widget_prov ), tmp_str );
+
 	    element_suivant = gsb_form_widget_next_element ( account_number,
 							     element_number,
 							     GSB_RIGHT );



More information about the cvs mailing list