[grisbi-cvs] grisbi/src gsb_currency.c,1.45,1.46

Gunee guneemwelloeux at users.sourceforge.net
Mon Nov 9 15:07:07 CET 2009


Update of /cvsroot/grisbi/grisbi/src
In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv19361

Modified Files:
	gsb_currency.c 
Log Message:
Unlocking exchange rate when target amount box is emptied

Index: gsb_currency.c
===================================================================
RCS file: /cvsroot/grisbi/grisbi/src/gsb_currency.c,v
retrieving revision 1.45
retrieving revision 1.46
diff -u -d -r1.45 -r1.46
--- gsb_currency.c	7 Nov 2009 19:13:59 -0000	1.45
+++ gsb_currency.c	9 Nov 2009 14:07:05 -0000	1.46
@@ -776,8 +776,11 @@
     if ( gtk_entry_get_text_length  ( GTK_ENTRY ( entry_1 ) ) > 0 )
     {
         if ( gtk_entry_get_text_length  ( GTK_ENTRY ( entry_2 ) ) == 0 )
+		{
             gtk_entry_set_text ( GTK_ENTRY ( entry ), "");
-        else
+			gtk_widget_set_sensitive ( GTK_WIDGET ( entry ), TRUE );
+		}
+		else
         {
             gtk_widget_set_sensitive ( GTK_WIDGET ( entry ), FALSE );
             amount_1 = gsb_real_get_from_string (



More information about the cvs mailing list