[grisbi-cvs] grisbi/src gsb_currency.c, 1.47, 1.48 gsb_currency_link_config.c, 1.17, 1.18

Gunee guneemwelloeux at users.sourceforge.net
Mon Nov 16 21:19:21 CET 2009


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

Modified Files:
	gsb_currency.c gsb_currency_link_config.c 
Log Message:
Backward compatibility with GTK 2.12


Index: gsb_currency_link_config.c
===================================================================
RCS file: /cvsroot/grisbi/grisbi/src/gsb_currency_link_config.c,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -d -r1.17 -r1.18
--- gsb_currency_link_config.c	7 Nov 2009 19:13:59 -0000	1.17
+++ gsb_currency_link_config.c	16 Nov 2009 20:19:19 -0000	1.18
@@ -518,7 +518,7 @@
     number = gsb_real_get_from_string ( gtk_entry_get_text ( GTK_ENTRY (exchange_entry) ) );
     if ( number.exponent > 8 )
         gtk_entry_set_max_length (GTK_ENTRY (exchange_entry),
-                        gtk_entry_get_text_length ( GTK_ENTRY ( exchange_entry ) ) - 1);
+                        strlen( gtk_entry_get_text ( GTK_ENTRY ( exchange_entry ) ) - 1) );
 
     gsb_data_currency_link_set_first_currency ( link_number,
 						gsb_currency_get_currency_from_combobox (combobox_1));

Index: gsb_currency.c
===================================================================
RCS file: /cvsroot/grisbi/grisbi/src/gsb_currency.c,v
retrieving revision 1.47
retrieving revision 1.48
diff -u -d -r1.47 -r1.48
--- gsb_currency.c	13 Nov 2009 19:42:02 -0000	1.47
+++ gsb_currency.c	16 Nov 2009 20:19:19 -0000	1.48
@@ -773,9 +773,9 @@
 
     entry = g_object_get_data ( G_OBJECT ( entry_1 ), "exchange_rate" );
 
-    if ( gtk_entry_get_text_length  ( GTK_ENTRY ( entry_1 ) ) > 0 )
+    if ( strlen ( gtk_entry_get_text ( GTK_ENTRY ( entry_1 ) ) ) > 0 )
     {
-        if ( gtk_entry_get_text_length  ( GTK_ENTRY ( entry_2 ) ) == 0 )
+        if ( !strlen ( gtk_entry_get_text ( GTK_ENTRY ( entry_2 ) ) ) )
 		{
             gtk_entry_set_text ( GTK_ENTRY ( entry ), "");
 			gtk_widget_set_sensitive ( GTK_WIDGET ( entry ), TRUE );



More information about the cvs mailing list