[grisbi-cvs] grisbi/src etats_config.c, 1.165, 1.166 gsb_autofunc.c, 1.15, 1.16 gsb_automem.c, 1.20, 1.21 gsb_calendar_entry.c, 1.21, 1.22 gtk_combofix.c, 1.54, 1.55 metatree.c, 1.124, 1.125 print_config.c, 1.40, 1.41

Martin Stromberger fabiolla at users.sourceforge.net
Thu Jan 8 19:47:58 CET 2009


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

Modified Files:
	etats_config.c gsb_autofunc.c gsb_automem.c 
	gsb_calendar_entry.c gtk_combofix.c metatree.c print_config.c 
Log Message:
replacement of deprecated symbols

Index: gtk_combofix.c
===================================================================
RCS file: /cvsroot/grisbi/grisbi/src/gtk_combofix.c,v
retrieving revision 1.54
retrieving revision 1.55
diff -u -d -r1.54 -r1.55
--- gtk_combofix.c	11 Dec 2008 19:07:20 -0000	1.54
+++ gtk_combofix.c	8 Jan 2009 18:47:56 -0000	1.55
@@ -1185,10 +1185,7 @@
 	    height = gdk_screen_height () - y;
     }
 
-    gtk_widget_set_uposition ( GTK_WIDGET ( combofix->popup ),
-			       x,
-			       y );
-
+    gtk_window_move ( GTK_WINDOW ( combofix->popup ), x, y );
     gtk_widget_set_size_request ( GTK_WIDGET ( combofix->popup ),
 			   GTK_WIDGET ( combofix ) ->allocation.width,
 			   height );

Index: print_config.c
===================================================================
RCS file: /cvsroot/grisbi/grisbi/src/print_config.c,v
retrieving revision 1.40
retrieving revision 1.41
diff -u -d -r1.40 -r1.41
--- print_config.c	16 Dec 2008 20:40:21 -0000	1.40
+++ print_config.c	8 Jan 2009 18:47:56 -0000	1.41
@@ -231,7 +231,7 @@
     gtk_entry_set_text ( GTK_ENTRY(input1), etat.print_config.printer_name );
 
     /* Print to file */
-    radio2 = gtk_radio_button_new_with_label ( gtk_radio_button_group (GTK_RADIO_BUTTON(radio1)), _("File") );
+    radio2 = gtk_radio_button_new_with_label ( gtk_radio_button_get_group (GTK_RADIO_BUTTON(radio1)), _("File") );
     gtk_table_attach ( GTK_TABLE(table), radio2, 0, 1, 1, 2,
 		       GTK_SHRINK | GTK_FILL, GTK_SHRINK | GTK_FILL,
 		       0, 0 );
@@ -316,7 +316,7 @@
     radio = gtk_radio_button_new_with_label ( NULL, _("Portrait") );
     gtk_box_pack_start ( GTK_BOX(paddingbox), radio, FALSE, FALSE, 0 );
 
-    radio = gtk_radio_button_new_with_label ( gtk_radio_button_group (GTK_RADIO_BUTTON(radio)), _("Landscape") );
+    radio = gtk_radio_button_new_with_label ( gtk_radio_button_get_group (GTK_RADIO_BUTTON(radio)), _("Landscape") );
     gtk_box_pack_start ( GTK_BOX(paddingbox), radio, FALSE, FALSE, 0 );
     g_object_set_data ( G_OBJECT(dialog), "orientation", radio );
 

Index: gsb_automem.c
===================================================================
RCS file: /cvsroot/grisbi/grisbi/src/gsb_automem.c,v
retrieving revision 1.20
retrieving revision 1.21
diff -u -d -r1.20 -r1.21
--- gsb_automem.c	27 Oct 2008 14:34:36 -0000	1.20
+++ gsb_automem.c	8 Jan 2009 18:47:56 -0000	1.21
@@ -475,7 +475,7 @@
 
     button1 = gtk_radio_button_new_with_mnemonic ( NULL, choice1 );
     gtk_box_pack_start (GTK_BOX(vbox), button1, FALSE, FALSE, 0 );
-    button2 = gtk_radio_button_new_with_mnemonic ( gtk_radio_button_group (GTK_RADIO_BUTTON(button1)), 
+    button2 = gtk_radio_button_new_with_mnemonic ( gtk_radio_button_get_group (GTK_RADIO_BUTTON(button1)), 
 						   choice2 );
     gtk_box_pack_start (GTK_BOX(vbox), button2, FALSE, FALSE, 0 );
 
@@ -555,10 +555,10 @@
 
     button1 = gtk_radio_button_new_with_mnemonic ( NULL, choice1 );
     gtk_box_pack_start (GTK_BOX(vbox), button1, FALSE, FALSE, 0 );
-    button2 = gtk_radio_button_new_with_mnemonic ( gtk_radio_button_group (GTK_RADIO_BUTTON(button1)), 
+    button2 = gtk_radio_button_new_with_mnemonic ( gtk_radio_button_get_group (GTK_RADIO_BUTTON(button1)), 
 						   choice2 );
     gtk_box_pack_start (GTK_BOX(vbox), button2, FALSE, FALSE, 0 );
-    button3 = gtk_radio_button_new_with_mnemonic ( gtk_radio_button_group (GTK_RADIO_BUTTON(button1)), 
+    button3 = gtk_radio_button_new_with_mnemonic ( gtk_radio_button_get_group (GTK_RADIO_BUTTON(button1)), 
 						   choice3 );
     gtk_box_pack_start (GTK_BOX(vbox), button3, FALSE, FALSE, 0 );
 

Index: metatree.c
===================================================================
RCS file: /cvsroot/grisbi/grisbi/src/metatree.c,v
retrieving revision 1.124
retrieving revision 1.125
diff -u -d -r1.124 -r1.125
--- metatree.c	27 Oct 2008 17:30:57 -0000	1.124
+++ metatree.c	8 Jan 2009 18:47:56 -0000	1.125
@@ -1720,7 +1720,7 @@
 	tmpstr = g_strdup_printf(_("Just remove this %s."), _(iface -> meta_name) );
     else
 	tmpstr = g_strdup_printf(_("Just remove this sub-%s."), _(iface -> meta_name) );
-    button_delete = gtk_radio_button_new_with_label ( gtk_radio_button_group ( GTK_RADIO_BUTTON ( button_move )), tmpstr );
+    button_delete = gtk_radio_button_new_with_label ( gtk_radio_button_get_group ( GTK_RADIO_BUTTON ( button_move )), tmpstr );
     g_free ( tmpstr );
     gtk_box_pack_start ( GTK_BOX ( hbox ), button_delete, FALSE, FALSE, 0 );
 

Index: etats_config.c
===================================================================
RCS file: /cvsroot/grisbi/grisbi/src/etats_config.c,v
retrieving revision 1.165
retrieving revision 1.166
diff -u -d -r1.165 -r1.166
--- etats_config.c	6 Jan 2009 22:16:44 -0000	1.165
+++ etats_config.c	8 Jan 2009 18:47:56 -0000	1.166
@@ -2178,7 +2178,7 @@
 			 0 );
     gtk_widget_show ( vbox );
 
-    radio_button_utilise_exo = gtk_radio_button_new_with_label ( gtk_radio_button_group ( GTK_RADIO_BUTTON ( radio_button_utilise_dates )),
+    radio_button_utilise_exo = gtk_radio_button_new_with_label ( gtk_radio_button_get_group ( GTK_RADIO_BUTTON ( radio_button_utilise_dates )),
 								 _("Use financial years") );
     g_signal_connect ( G_OBJECT (radio_button_utilise_exo ), "destroy",
     		G_CALLBACK ( gtk_widget_destroyed), &radio_button_utilise_exo );
@@ -2230,7 +2230,7 @@
 			 0 );
     gtk_widget_show ( bouton_exo_tous );
 
-    bouton_exo_courant = gtk_radio_button_new_with_label ( gtk_radio_button_group ( GTK_RADIO_BUTTON ( bouton_exo_tous )),
+    bouton_exo_courant = gtk_radio_button_new_with_label ( gtk_radio_button_get_group ( GTK_RADIO_BUTTON ( bouton_exo_tous )),
 							   _("Current financial year"));
     g_signal_connect ( G_OBJECT (bouton_exo_courant ), "destroy",
     		G_CALLBACK ( gtk_widget_destroyed), &bouton_exo_courant );
@@ -2241,7 +2241,7 @@
 			 0 );
     gtk_widget_show ( bouton_exo_courant );
 
-    bouton_exo_precedent = gtk_radio_button_new_with_label ( gtk_radio_button_group ( GTK_RADIO_BUTTON ( bouton_exo_tous )),
+    bouton_exo_precedent = gtk_radio_button_new_with_label ( gtk_radio_button_get_group ( GTK_RADIO_BUTTON ( bouton_exo_tous )),
 							     _("Former financial year"));
     g_signal_connect ( G_OBJECT (bouton_exo_precedent ), "destroy",
     		G_CALLBACK ( gtk_widget_destroyed), &bouton_exo_precedent );
@@ -2254,7 +2254,7 @@
 
 
 
-    bouton_detaille_exo_etat = gtk_radio_button_new_with_label ( gtk_radio_button_group ( GTK_RADIO_BUTTON ( bouton_exo_tous )),
+    bouton_detaille_exo_etat = gtk_radio_button_new_with_label ( gtk_radio_button_get_group ( GTK_RADIO_BUTTON ( bouton_exo_tous )),
 								 _("Detail financial years") );
     g_signal_connect ( G_OBJECT (bouton_detaille_exo_etat ), "destroy",
     		G_CALLBACK ( gtk_widget_destroyed), &bouton_detaille_exo_etat );
@@ -2753,7 +2753,7 @@
 			 0 );
     gtk_widget_show ( bouton_non_inclusion_virements );
 
-    bouton_inclusion_virements_actifs_etat = gtk_radio_button_new_with_label ( gtk_radio_button_group ( GTK_RADIO_BUTTON ( bouton_non_inclusion_virements )),
+    bouton_inclusion_virements_actifs_etat = gtk_radio_button_new_with_label ( gtk_radio_button_get_group ( GTK_RADIO_BUTTON ( bouton_non_inclusion_virements )),
 									       _("Include transfers from or to assets or liabilities accounts") );
     g_signal_connect ( G_OBJECT (bouton_inclusion_virements_actifs_etat ), "destroy",
     		G_CALLBACK ( gtk_widget_destroyed), &bouton_inclusion_virements_actifs_etat );
@@ -2768,7 +2768,7 @@
 			 0 );
     gtk_widget_show ( bouton_inclusion_virements_actifs_etat );
 
-    bouton_inclusion_virements_hors_etat = gtk_radio_button_new_with_label ( gtk_radio_button_group ( GTK_RADIO_BUTTON ( bouton_non_inclusion_virements )),
+    bouton_inclusion_virements_hors_etat = gtk_radio_button_new_with_label ( gtk_radio_button_get_group ( GTK_RADIO_BUTTON ( bouton_non_inclusion_virements )),
 									     _("Include transfers from or to accounts not in this report") );
     g_signal_connect ( G_OBJECT (bouton_inclusion_virements_hors_etat ), "destroy",
     		G_CALLBACK ( gtk_widget_destroyed), &bouton_inclusion_virements_hors_etat );
@@ -2783,7 +2783,7 @@
 			 0 );
     gtk_widget_show ( bouton_inclusion_virements_hors_etat );
 
-    bouton_inclusion_virements_perso = gtk_radio_button_new_with_label ( gtk_radio_button_group ( GTK_RADIO_BUTTON ( bouton_non_inclusion_virements )),
+    bouton_inclusion_virements_perso = gtk_radio_button_new_with_label ( gtk_radio_button_get_group ( GTK_RADIO_BUTTON ( bouton_non_inclusion_virements )),
 									 _("Include transfers from or to these accounts") );
     g_signal_connect ( G_OBJECT (bouton_inclusion_virements_perso ), "destroy",
     		G_CALLBACK ( gtk_widget_destroyed), &bouton_inclusion_virements_perso );
@@ -4583,7 +4583,7 @@
     gsb_data_report_text_comparison_set_button_use_text ( text_comparison_number,
 							  gtk_radio_button_new ( NULL ));
     gsb_data_report_text_comparison_set_button_use_number ( text_comparison_number,
-							    gtk_radio_button_new ( gtk_radio_button_group ( GTK_RADIO_BUTTON(gsb_data_report_text_comparison_get_button_use_text (text_comparison_number)))));
+							    gtk_radio_button_new ( gtk_radio_button_get_group ( GTK_RADIO_BUTTON(gsb_data_report_text_comparison_get_button_use_text (text_comparison_number)))));
 
     gsb_data_report_text_comparison_set_button_field ( text_comparison_number,
 						       cree_bouton_champ ( text_comparison_number ));
@@ -6233,7 +6233,7 @@
 			 0 );
     gtk_widget_show ( bouton_opes_r_et_non_r_etat );
 
-    bouton_opes_non_r_etat = gtk_radio_button_new_with_label ( gtk_radio_button_group ( GTK_RADIO_BUTTON ( bouton_opes_r_et_non_r_etat )),
+    bouton_opes_non_r_etat = gtk_radio_button_new_with_label ( gtk_radio_button_get_group ( GTK_RADIO_BUTTON ( bouton_opes_r_et_non_r_etat )),
 							       _("Select unreconciled transactions") );
     g_signal_connect ( G_OBJECT (bouton_opes_non_r_etat ), "destroy",
     		G_CALLBACK ( gtk_widget_destroyed), &bouton_opes_non_r_etat );
@@ -6248,7 +6248,7 @@
 			 0 );
     gtk_widget_show ( bouton_opes_non_r_etat );
 
-    bouton_opes_r_etat = gtk_radio_button_new_with_label ( gtk_radio_button_group ( GTK_RADIO_BUTTON ( bouton_opes_r_et_non_r_etat )),
+    bouton_opes_r_etat = gtk_radio_button_new_with_label ( gtk_radio_button_get_group ( GTK_RADIO_BUTTON ( bouton_opes_r_et_non_r_etat )),
 							   _("Select reconciled transactions") );
     g_signal_connect ( G_OBJECT (bouton_opes_r_etat ), "destroy",
     		G_CALLBACK ( gtk_widget_destroyed), &bouton_opes_r_etat );
@@ -6836,7 +6836,7 @@
     		G_CALLBACK ( gtk_widget_destroyed), &bouton_titre_changement );
     gtk_box_pack_start ( GTK_BOX ( paddingbox ), bouton_titre_changement, FALSE, FALSE, 0 );
 
-    bouton_titre_en_haut = gtk_radio_button_new_with_label ( gtk_radio_button_group ( GTK_RADIO_BUTTON ( bouton_titre_changement )),
+    bouton_titre_en_haut = gtk_radio_button_new_with_label ( gtk_radio_button_get_group ( GTK_RADIO_BUTTON ( bouton_titre_changement )),
 							     _("at the top of the report") );
     g_signal_connect ( G_OBJECT (bouton_titre_en_haut ), "destroy",
     		G_CALLBACK ( gtk_widget_destroyed), &bouton_titre_en_haut );

Index: gsb_calendar_entry.c
===================================================================
RCS file: /cvsroot/grisbi/grisbi/src/gsb_calendar_entry.c,v
retrieving revision 1.21
retrieving revision 1.22
diff -u -d -r1.21 -r1.22
--- gsb_calendar_entry.c	7 Jan 2009 21:18:55 -0000	1.21
+++ gsb_calendar_entry.c	8 Jan 2009 18:47:56 -0000	1.22
@@ -518,17 +518,14 @@
     y -= popup_size -> height;
 
     /* si une des coordonnées est négative, alors la fonction
-       gtk_widget_set_uposition échoue et affiche la popup en 0,0 */
+       gtk_window_move échoue et affiche la popup en 0,0 */
     if ( x < 0 )
 	x = 0 ;
 
     if ( y < 0 )
 	y = 0 ;
 
-    gtk_widget_set_uposition ( GTK_WIDGET ( popup ),
-			       x,
-			       y );
-
+    gtk_window_move ( GTK_WINDOW ( popup ), x, y );
     gtk_widget_show ( popup );
     gtk_widget_grab_focus ( GTK_WIDGET ( pCalendar ) );
     return ( popup );

Index: gsb_autofunc.c
===================================================================
RCS file: /cvsroot/grisbi/grisbi/src/gsb_autofunc.c,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -d -r1.15 -r1.16
--- gsb_autofunc.c	7 Jan 2009 21:18:55 -0000	1.15
+++ gsb_autofunc.c	8 Jan 2009 18:47:56 -0000	1.16
@@ -810,7 +810,7 @@
 
     button1 = gtk_radio_button_new_with_mnemonic ( NULL, choice1 );
     gtk_box_pack_start (GTK_BOX(vbox), button1, FALSE, FALSE, 0 );
-    button2 = gtk_radio_button_new_with_mnemonic ( gtk_radio_button_group (GTK_RADIO_BUTTON(button1)), 
+    button2 = gtk_radio_button_new_with_mnemonic ( gtk_radio_button_get_group (GTK_RADIO_BUTTON(button1)), 
 						   choice2 );
     gtk_box_pack_start (GTK_BOX(vbox), button2, FALSE, FALSE, 0 );
 



More information about the cvs mailing list