[grisbi-cvs] grisbi/src gsb_currency.c,1.36,1.37

Pierre Biava pbiava at users.sourceforge.net
Sun Feb 8 08:13:40 CET 2009


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

Modified Files:
	gsb_currency.c 
Log Message:
removal of warning to the implementation of the program

Index: gsb_currency.c
===================================================================
RCS file: /cvsroot/grisbi/grisbi/src/gsb_currency.c,v
retrieving revision 1.36
retrieving revision 1.37
diff -u -d -r1.36 -r1.37
--- gsb_currency.c	6 Feb 2009 22:05:04 -0000	1.36
+++ gsb_currency.c	8 Feb 2009 07:13:37 -0000	1.37
@@ -293,15 +293,18 @@
     old_currency_number = gtk_combo_box_get_active (GTK_COMBO_BOX 
                         (detail_devise_compte));
     }
-    g_signal_handler_block ( (gpointer *) combo_devise_totaux_tiers,
-                        (gulong) g_object_get_data ( G_OBJECT 
-                        (combo_devise_totaux_tiers), "changed-hook" ) );
-    g_signal_handler_block ( (gpointer *) combo_devise_totaux_categ,
-                        (gulong) g_object_get_data ( G_OBJECT 
-                        (combo_devise_totaux_categ), "changed-hook" ) );
-    g_signal_handler_block ( (gpointer *) combo_devise_totaux_ib,
-                        (gulong) g_object_get_data ( G_OBJECT 
-                        (combo_devise_totaux_ib), "changed-hook" ) );
+    if ( combo_devise_totaux_tiers )
+        g_signal_handler_block ( (gpointer *) combo_devise_totaux_tiers,
+                            (gulong) g_object_get_data ( G_OBJECT 
+                            (combo_devise_totaux_tiers), "changed-hook" ) );
+    if ( combo_devise_totaux_categ )
+        g_signal_handler_block ( (gpointer *) combo_devise_totaux_categ,
+                            (gulong) g_object_get_data ( G_OBJECT 
+                            (combo_devise_totaux_categ), "changed-hook" ) );
+    if ( combo_devise_totaux_ib )
+        g_signal_handler_block ( (gpointer *) combo_devise_totaux_ib,
+                            (gulong) g_object_get_data ( G_OBJECT 
+                            (combo_devise_totaux_ib), "changed-hook" ) );
 
     gtk_list_store_clear (GTK_LIST_STORE (combobox_currency_store));
     list_tmp = gsb_data_currency_get_currency_list ();
@@ -350,21 +353,30 @@
                         (gulong) g_object_get_data ( G_OBJECT 
                         (detail_devise_compte), "changed-hook" ) );
     }
-    gtk_combo_box_set_active ( GTK_COMBO_BOX (combo_devise_totaux_tiers), 
-                    old_currency_number );
-    g_signal_handler_unblock ( (gpointer *) combo_devise_totaux_tiers,
-                        (gulong) g_object_get_data ( G_OBJECT 
-                        (combo_devise_totaux_tiers), "changed-hook" ) );
-    gtk_combo_box_set_active ( GTK_COMBO_BOX (combo_devise_totaux_categ), 
-                    old_currency_number );
-    g_signal_handler_unblock ( (gpointer *) combo_devise_totaux_categ,
-                        (gulong) g_object_get_data ( G_OBJECT 
-                        (combo_devise_totaux_categ), "changed-hook" ) );
-    gtk_combo_box_set_active ( GTK_COMBO_BOX (combo_devise_totaux_ib), 
-                    old_currency_number );
-    g_signal_handler_unblock ( (gpointer *) combo_devise_totaux_ib,
-                        (gulong) g_object_get_data ( G_OBJECT 
-                        (combo_devise_totaux_ib), "changed-hook" ) );
+    if ( combo_devise_totaux_tiers )
+    {
+        gtk_combo_box_set_active ( GTK_COMBO_BOX (combo_devise_totaux_tiers), 
+                        old_currency_number );
+        g_signal_handler_unblock ( (gpointer *) combo_devise_totaux_tiers,
+                            (gulong) g_object_get_data ( G_OBJECT 
+                            (combo_devise_totaux_tiers), "changed-hook" ) );
+    }
+    if ( combo_devise_totaux_categ )
+    {
+        gtk_combo_box_set_active ( GTK_COMBO_BOX (combo_devise_totaux_categ), 
+                        old_currency_number );
+        g_signal_handler_unblock ( (gpointer *) combo_devise_totaux_categ,
+                            (gulong) g_object_get_data ( G_OBJECT 
+                            (combo_devise_totaux_categ), "changed-hook" ) );
+    }
+    if ( combo_devise_totaux_ib )
+    {
+        gtk_combo_box_set_active ( GTK_COMBO_BOX (combo_devise_totaux_ib), 
+                        old_currency_number );
+        g_signal_handler_unblock ( (gpointer *) combo_devise_totaux_ib,
+                            (gulong) g_object_get_data ( G_OBJECT 
+                            (combo_devise_totaux_ib), "changed-hook" ) );
+    }
     
     return FALSE;
 }



More information about the cvs mailing list