[grisbi-cvs] grisbi/src barre_outils.c, 1.121, 1.122 categories_onglet.c, 1.184, 1.185 etats_config.c, 1.166, 1.167 etats_onglet.c, 1.128, 1.129 go-charmap-sel.c, 1.11, 1.12 gsb_account.c, 1.40, 1.41 gsb_form.c, 1.103, 1.104 gsb_payment_method_config.c, 1.29, 1.30 gsb_scheduler_list.c, 1.57, 1.58 gsb_transactions_list.c, 1.147, 1.148 import_csv.c, 1.52, 1.53 imputation_budgetaire.c, 1.149, 1.150 print_config.c, 1.41, 1.42 tiers_onglet.c, 1.141, 1.142

Martin Stromberger fabiolla at users.sourceforge.net
Fri Jan 9 15:49:02 CET 2009


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

Modified Files:
	barre_outils.c categories_onglet.c etats_config.c 
	etats_onglet.c go-charmap-sel.c gsb_account.c gsb_form.c 
	gsb_payment_method_config.c gsb_scheduler_list.c 
	gsb_transactions_list.c import_csv.c imputation_budgetaire.c 
	print_config.c tiers_onglet.c 
Log Message:
replacement of deprecated symbols

Index: gsb_account.c
===================================================================
RCS file: /cvsroot/grisbi/grisbi/src/gsb_account.c,v
retrieving revision 1.40
retrieving revision 1.41
diff -u -d -r1.40 -r1.41
--- gsb_account.c	7 Jan 2009 21:18:55 -0000	1.40
+++ gsb_account.c	9 Jan 2009 14:49:00 -0000	1.41
@@ -498,7 +498,7 @@
 				  GINT_TO_POINTER (i));
 	    if ( func )
 		g_signal_connect ( G_OBJECT ( item ), "activate", G_CALLBACK(func), NULL );
-	    gtk_menu_append ( GTK_MENU ( menu ), item );
+	    gtk_menu_shell_append ( GTK_MENU_SHELL ( menu ), item );
 
 	    if ( !activate_currrent && 
 		 gsb_gui_navigation_get_current_account () == i)

Index: go-charmap-sel.c
===================================================================
RCS file: /cvsroot/grisbi/grisbi/src/go-charmap-sel.c,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -d -r1.11 -r1.12
--- go-charmap-sel.c	21 Oct 2008 08:05:18 -0000	1.11
+++ go-charmap-sel.c	9 Jan 2009 14:49:00 -0000	1.12
@@ -452,7 +452,7 @@
 					subitem = gtk_check_menu_item_new_with_label
 						(_(charset_trans->charset_title));
 					gtk_widget_show (subitem);
-					gtk_menu_shell_append (GTK_MENU_SHELL (submenu),  subitem);
+					gtk_menu_shell_append ( GTK_MENU_SHELL (submenu), subitem );
 					if (charset_trans->imp == CI_MAJOR)
 						cs_emphasize_label (GTK_LABEL (gtk_bin_get_child (GTK_BIN (subitem))));
 					g_object_set_data (G_OBJECT (subitem), CHARMAP_NAME_KEY,
@@ -465,9 +465,9 @@
 			charset_trans++;
 		}
 		if (cnt > 0) {
-			gtk_menu_item_set_submenu (GTK_MENU_ITEM (item), GTK_WIDGET (submenu));
+			gtk_menu_item_set_submenu ( GTK_MENU_ITEM (item), GTK_WIDGET (submenu) );
 			gtk_widget_show (item);
-			gtk_menu_shell_append (GTK_MENU_SHELL (menu),  item);
+			gtk_menu_shell_append ( GTK_MENU_SHELL (menu), item );
 			lg_cnt++;
 		} else {
 			g_object_unref (item);
@@ -476,7 +476,7 @@
         }
 	item = gtk_separator_menu_item_new ();
 	gtk_widget_show (item);
-	gtk_menu_shell_append (GTK_MENU_SHELL (menu),  item);
+	gtk_menu_shell_append ( GTK_MENU_SHELL (menu), item );
 	lg_cnt++;
 
 	{
@@ -486,7 +486,7 @@
 		item = gtk_check_menu_item_new_with_label (locale_encoding_menu_title);
 		g_free (locale_encoding_menu_title);
 		gtk_widget_show (item);
-		gtk_menu_shell_append (GTK_MENU_SHELL (menu),  item);
+		gtk_menu_shell_append ( GTK_MENU_SHELL (menu), item );
 		lg_cnt++;
 		cs_emphasize_label (GTK_LABEL (gtk_bin_get_child (GTK_BIN (item))));
 	}

Index: gsb_scheduler_list.c
===================================================================
RCS file: /cvsroot/grisbi/grisbi/src/gsb_scheduler_list.c,v
retrieving revision 1.57
retrieving revision 1.58
diff -u -d -r1.57 -r1.58
--- gsb_scheduler_list.c	8 Dec 2008 14:39:00 -0000	1.57
+++ gsb_scheduler_list.c	9 Jan 2009 14:49:00 -0000	1.58
@@ -1766,7 +1766,7 @@
  * */
 gboolean gsb_scheduler_list_popup_custom_periodicity_dialog (void)
 {
-    GtkWidget * dialog, *hbox, *hbox2, *paddingbox, *omenu, *menu, *label, *entry, *item;
+    GtkWidget * dialog, *hbox, *hbox2, *paddingbox, *label, *entry, *combobox;
     gchar * names[] = { _("days"), _("weeks"), _("months"), _("years"), NULL };
     int i;
 
@@ -1796,25 +1796,22 @@
 					  NULL, NULL );
     gtk_box_pack_start ( GTK_BOX(hbox2), entry, FALSE, FALSE, 6 );
 
-    omenu = gtk_option_menu_new ();
-    menu = gtk_menu_new();
-    gtk_option_menu_set_menu ( GTK_OPTION_MENU(omenu), menu );
-    gtk_box_pack_start ( GTK_BOX(hbox2), omenu, FALSE, FALSE, 0 );
+    /* combobox for userdefined frequency */
+    combobox = gtk_combo_box_new_text ();
+    gtk_box_pack_start ( GTK_BOX(hbox2), combobox, FALSE, FALSE, 0 );
 
     for ( i = 0; names[i]; i++ )
     {
-	item = gtk_menu_item_new_with_label ( names[i] );
-	gtk_menu_append ( menu, item );
+	gtk_combo_box_append_text ( GTK_COMBO_BOX ( combobox ), names[i] );
     }
-    gtk_option_menu_set_history ( GTK_OPTION_MENU ( omenu ),
-				  affichage_echeances_perso_j_m_a );
+    gtk_combo_box_set_active ( GTK_COMBO_BOX ( combobox ), affichage_echeances_perso_j_m_a );
 
     gtk_widget_show_all ( dialog );
 
     switch ( gtk_dialog_run ( GTK_DIALOG ( dialog ) ) )
     {
 	case GTK_RESPONSE_OK:
-	    affichage_echeances_perso_j_m_a = gtk_option_menu_get_history ( GTK_OPTION_MENU ( omenu ) );
+	    affichage_echeances_perso_j_m_a = gtk_combo_box_get_active ( GTK_COMBO_BOX (combobox) );
 	    affichage_echeances_perso_nb_libre = utils_str_atoi ( gtk_entry_get_text ( GTK_ENTRY(entry)) );
 	    gtk_widget_destroy ( dialog );
 	    return TRUE;

Index: print_config.c
===================================================================
RCS file: /cvsroot/grisbi/grisbi/src/print_config.c,v
retrieving revision 1.41
retrieving revision 1.42
diff -u -d -r1.41 -r1.42
--- print_config.c	8 Jan 2009 18:47:56 -0000	1.41
+++ print_config.c	9 Jan 2009 14:49:00 -0000	1.42
@@ -254,9 +254,9 @@
     g_object_set_data ( G_OBJECT(dialog), "filetype", omenu );
 
     item = gtk_menu_item_new_with_label ( _("Postscript file") );
-    gtk_menu_append ( GTK_MENU ( menu ), item );
+    gtk_menu_shell_append ( GTK_MENU_SHELL ( menu ), item );
     item = gtk_menu_item_new_with_label ( _("LaTeX file") );
-    gtk_menu_append ( GTK_MENU ( menu ), item );
+    gtk_menu_shell_append ( GTK_MENU_SHELL ( menu ), item );
     gtk_option_menu_set_history ( GTK_OPTION_MENU(omenu), etat.print_config.filetype );
     gtk_table_attach_defaults ( GTK_TABLE(table), omenu, 1, 2, 2, 3 );
 
@@ -306,7 +306,7 @@
 	if ( !strcmp ( _(paper_sizes[i].name), etat.print_config.paper_config.name ))
 	    history = i;
 
-	gtk_menu_append ( GTK_MENU ( menu ), item );
+	gtk_menu_shell_append ( GTK_MENU_SHELL ( menu ), item );
     }
     gtk_option_menu_set_history ( GTK_OPTION_MENU(omenu), history );
 

Index: imputation_budgetaire.c
===================================================================
RCS file: /cvsroot/grisbi/grisbi/src/imputation_budgetaire.c,v
retrieving revision 1.149
retrieving revision 1.150
diff -u -d -r1.149 -r1.150
--- imputation_budgetaire.c	1 Jan 2009 20:43:49 -0000	1.149
+++ imputation_budgetaire.c	9 Jan 2009 14:49:00 -0000	1.150
@@ -583,19 +583,19 @@
     g_signal_connect ( G_OBJECT(menu_item), "activate",
 		       G_CALLBACK(expand_arbre_division), (gpointer) 0 );
     g_object_set_data ( G_OBJECT(menu_item), "tree-view", budgetary_line_tree );
-    gtk_menu_append ( menu, menu_item );
+    gtk_menu_shell_append ( GTK_MENU_SHELL ( menu ), menu_item );
 
     menu_item = gtk_image_menu_item_new_with_label ( _("Sub-budgetary line view") );
     g_signal_connect ( G_OBJECT(menu_item), "activate",
 		       G_CALLBACK(expand_arbre_division), (gpointer) 1 );
     g_object_set_data ( G_OBJECT(menu_item), "tree-view", budgetary_line_tree );
-    gtk_menu_append ( menu, menu_item );
+    gtk_menu_shell_append ( GTK_MENU_SHELL ( menu ), menu_item );
 
     menu_item = gtk_image_menu_item_new_with_label ( _("Complete view") );
     g_signal_connect ( G_OBJECT(menu_item), "activate",
 		       G_CALLBACK(expand_arbre_division), (gpointer) 2 );
     g_object_set_data ( G_OBJECT(menu_item), "tree-view", budgetary_line_tree );
-    gtk_menu_append ( menu, menu_item );
+    gtk_menu_shell_append ( GTK_MENU_SHELL ( menu ), menu_item );
 
     gtk_widget_show_all ( menu );
 

Index: gsb_payment_method_config.c
===================================================================
RCS file: /cvsroot/grisbi/grisbi/src/gsb_payment_method_config.c,v
retrieving revision 1.29
retrieving revision 1.30
diff -u -d -r1.29 -r1.30
--- gsb_payment_method_config.c	25 Dec 2008 23:14:58 -0000	1.29
+++ gsb_payment_method_config.c	9 Jan 2009 14:49:00 -0000	1.30
@@ -306,21 +306,21 @@
 		       "activate",
 		       G_CALLBACK ( gsb_payment_method_config_sign_changed ),
 		       GINT_TO_POINTER (GSB_PAYMENT_NEUTRAL));
-    gtk_menu_append ( GTK_MENU ( menu ), item );
+    gtk_menu_shell_append ( GTK_MENU_SHELL ( menu ), item );
     /* Debit method_ptr */
     item = gtk_menu_item_new_with_label ( _("Debit") );
     g_signal_connect ( G_OBJECT ( item ),
 		       "activate",
 		       G_CALLBACK ( gsb_payment_method_config_sign_changed ),
 		       GINT_TO_POINTER (GSB_PAYMENT_DEBIT));
-    gtk_menu_append ( GTK_MENU ( menu ), item );
+    gtk_menu_shell_append ( GTK_MENU_SHELL ( menu ), item );
     /* Credit method_ptr */
     item = gtk_menu_item_new_with_label ( _("Credit") );
     g_signal_connect ( G_OBJECT ( item ),
 		       "activate",
 		       G_CALLBACK ( gsb_payment_method_config_sign_changed ),
 		       GINT_TO_POINTER (GSB_PAYMENT_CREDIT));
-    gtk_menu_append ( GTK_MENU ( menu ), item );
+    gtk_menu_shell_append ( GTK_MENU_SHELL ( menu ), item );
     /* Set menu */
     gtk_option_menu_set_menu ( GTK_OPTION_MENU ( payment_sign_button ), menu );
     gtk_table_attach ( GTK_TABLE ( table ),

Index: gsb_transactions_list.c
===================================================================
RCS file: /cvsroot/grisbi/grisbi/src/gsb_transactions_list.c,v
retrieving revision 1.147
retrieving revision 1.148
diff -u -d -r1.147 -r1.148
--- gsb_transactions_list.c	7 Jan 2009 21:18:55 -0000	1.147
+++ gsb_transactions_list.c	9 Jan 2009 14:49:00 -0000	1.148
@@ -2090,10 +2090,10 @@
 			       G_CALLBACK (gsb_transactions_list_edit_transaction_by_pointer),
 			       GINT_TO_POINTER (transaction_number));
     gtk_widget_set_sensitive ( menu_item, full );
-    gtk_menu_append ( menu, menu_item );
+    gtk_menu_shell_append ( GTK_MENU_SHELL ( menu ), menu_item );
 
     /* Separator */
-    gtk_menu_append ( menu, gtk_separator_menu_item_new() );
+    gtk_menu_shell_append ( GTK_MENU_SHELL ( menu ), gtk_separator_menu_item_new() );
 
     /* New transaction */
     menu_item = gtk_image_menu_item_new_with_label ( _("New transaction") );
@@ -2101,7 +2101,7 @@
 				    gtk_image_new_from_stock ( GTK_STOCK_NEW,
 							       GTK_ICON_SIZE_MENU ));
     g_signal_connect ( G_OBJECT(menu_item), "activate", G_CALLBACK (new_transaction), NULL );
-    gtk_menu_append ( menu, menu_item );
+    gtk_menu_shell_append ( GTK_MENU_SHELL ( menu ), menu_item );
 
     /* Delete transaction */
     menu_item = gtk_image_menu_item_new_with_label ( _("Delete transaction") );
@@ -2115,7 +2115,7 @@
 	 ||
 	 gsb_data_transaction_get_marked_transaction (transaction_number) == OPERATION_TELERAPPROCHEE )
 	gtk_widget_set_sensitive ( menu_item, FALSE );
-    gtk_menu_append ( menu, menu_item );
+    gtk_menu_shell_append ( GTK_MENU_SHELL ( menu ), menu_item );
 
     /* use transaction as template */
     menu_item = gtk_image_menu_item_new_with_label ( _("Use selected transaction as a template") );
@@ -2125,7 +2125,7 @@
     g_signal_connect ( G_OBJECT(menu_item), "activate",
 		       G_CALLBACK (gsb_transactions_list_clone_template), NULL );
     gtk_widget_set_sensitive ( menu_item, full );
-    gtk_menu_append ( menu, menu_item );
+    gtk_menu_shell_append ( GTK_MENU_SHELL ( menu ), menu_item );
 
     /* Clone transaction */
     menu_item = gtk_image_menu_item_new_with_label ( _("Clone transaction") );
@@ -2135,10 +2135,10 @@
     g_signal_connect ( G_OBJECT(menu_item), "activate",
 		       G_CALLBACK (clone_selected_transaction), NULL );
     gtk_widget_set_sensitive ( menu_item, full );
-    gtk_menu_append ( menu, menu_item );
+    gtk_menu_shell_append ( GTK_MENU_SHELL ( menu ), menu_item );
 
     /* Separator */
-    gtk_menu_append ( menu, gtk_separator_menu_item_new() );
+    gtk_menu_shell_append ( GTK_MENU_SHELL ( menu ), gtk_separator_menu_item_new() );
 
     /* Convert to scheduled transaction */
     menu_item = gtk_image_menu_item_new_with_label ( _("Convert transaction to scheduled transaction") );
@@ -2147,7 +2147,7 @@
 							       GTK_ICON_SIZE_MENU ));
     g_signal_connect ( G_OBJECT(menu_item), "activate", schedule_selected_transaction, NULL );
     gtk_widget_set_sensitive ( menu_item, full && mi_full );
-    gtk_menu_append ( menu, menu_item );
+    gtk_menu_shell_append ( GTK_MENU_SHELL ( menu ), menu_item );
 
     /* Move to another account */
     menu_item = gtk_image_menu_item_new_with_label ( _("Move transaction to another account") );
@@ -2162,7 +2162,7 @@
 	 ||
 	 gsb_data_transaction_get_marked_transaction (transaction_number) == OPERATION_TELERAPPROCHEE )
 	gtk_widget_set_sensitive ( menu_item, FALSE );
-    gtk_menu_append ( menu, menu_item );
+    gtk_menu_shell_append ( GTK_MENU_SHELL ( menu ), menu_item );
 
     /* Add accounts submenu */
     gtk_menu_item_set_submenu ( GTK_MENU_ITEM(menu_item),
@@ -2170,7 +2170,7 @@
 
 
     /* Separator */
-    gtk_menu_append ( menu, gtk_separator_menu_item_new() );
+    gtk_menu_shell_append ( GTK_MENU_SHELL ( menu ), gtk_separator_menu_item_new() );
 
     /* Change cell content. */
     menu_item = gtk_menu_item_new_with_label ( _("Change cell content") );
@@ -2178,7 +2178,7 @@
 	gtk_menu_item_set_submenu ( GTK_MENU_ITEM ( menu_item ),
 				    GTK_WIDGET ( gsb_gui_create_cell_contents_menu ( x, y ) ) );
     gtk_widget_set_sensitive ( menu_item, full );
-    gtk_menu_append ( menu, menu_item );
+    gtk_menu_shell_append ( GTK_MENU_SHELL ( menu ), menu_item );
 
     /* Finish all. */
     gtk_widget_show_all (menu);
@@ -2212,7 +2212,7 @@
 	g_object_set_data ( G_OBJECT (item), "y", GINT_TO_POINTER (y) );
 	g_signal_connect ( G_OBJECT(item), "activate",
 			   G_CALLBACK(gsb_gui_change_cell_content), GINT_TO_POINTER (i+1));
-	gtk_menu_append ( menu, item );
+	gtk_menu_shell_append ( GTK_MENU_SHELL ( menu ), item );
     }
 
     return menu;
@@ -2824,12 +2824,12 @@
 			       G_CALLBACK ( gtk_true ),
 			       NULL );
 
-	    gtk_menu_append ( menu,
+	    gtk_menu_shell_append ( GTK_MENU_SHELL ( menu ),
 			      menu_item );
 	    gtk_widget_show_all ( menu_item );
 
 	    menu_item = gtk_separator_menu_item_new ();
-	    gtk_menu_append ( menu,
+	    gtk_menu_shell_append ( GTK_MENU_SHELL ( menu ),
 			      menu_item );
 	    gtk_widget_show ( menu_item );
 
@@ -2876,7 +2876,7 @@
 				       "activate",
 				       G_CALLBACK ( gsb_transactions_list_change_sort_type ),
 				       no_column );
-		    gtk_menu_append ( menu,
+		    gtk_menu_shell_append ( GTK_MENU_SHELL ( menu ),
 				      menu_item );
 		    gtk_widget_show ( menu_item );
 		}

Index: gsb_form.c
===================================================================
RCS file: /cvsroot/grisbi/grisbi/src/gsb_form.c,v
retrieving revision 1.103
retrieving revision 1.104
diff -u -d -r1.103 -r1.104
--- gsb_form.c	6 Jan 2009 15:21:01 -0000	1.103
+++ gsb_form.c	9 Jan 2009 14:49:00 -0000	1.104
@@ -3157,7 +3157,7 @@
 		       "activate",
 		       G_CALLBACK (gsb_preferences_menu_open),
 		       GINT_TO_POINTER (TRANSACTION_FORM_PAGE));
-    gtk_menu_append ( menu, menu_item );
+    gtk_menu_shell_append ( GTK_MENU_SHELL ( menu ), menu_item );
 
     /* Finish all. */
     gtk_widget_show_all (menu);

Index: etats_config.c
===================================================================
RCS file: /cvsroot/grisbi/grisbi/src/etats_config.c,v
retrieving revision 1.166
retrieving revision 1.167
diff -u -d -r1.166 -r1.167
--- etats_config.c	8 Jan 2009 18:47:56 -0000	1.166
+++ etats_config.c	9 Jan 2009 14:49:00 -0000	1.167
@@ -4900,7 +4900,7 @@
     menu = gtk_menu_new ();
 
     menu_item = gtk_menu_item_new_with_label ( _("payee"));
-    gtk_menu_append ( GTK_MENU ( menu ),
+    gtk_menu_shell_append ( GTK_MENU_SHELL ( menu ),
 		      menu_item );
     g_object_set_data ( G_OBJECT ( menu_item ),
 			  "no_champ",
@@ -4928,7 +4928,7 @@
     gtk_widget_show ( menu_item );
 
     menu_item = gtk_menu_item_new_with_label ( _("payee information"));
-    gtk_menu_append ( GTK_MENU ( menu ),
+    gtk_menu_shell_append ( GTK_MENU_SHELL ( menu ),
 		      menu_item );
     g_object_set_data ( G_OBJECT ( menu_item ),
 			  "no_champ",
@@ -4956,7 +4956,7 @@
     gtk_widget_show ( menu_item );
 
     menu_item = gtk_menu_item_new_with_label ( _("category"));
-    gtk_menu_append ( GTK_MENU ( menu ),
+    gtk_menu_shell_append ( GTK_MENU_SHELL ( menu ),
 		      menu_item );
     g_object_set_data ( G_OBJECT ( menu_item ),
 			  "no_champ",
@@ -4984,7 +4984,7 @@
     gtk_widget_show ( menu_item );
 
     menu_item = gtk_menu_item_new_with_label ( _("sub-category"));
-    gtk_menu_append ( GTK_MENU ( menu ),
+    gtk_menu_shell_append ( GTK_MENU_SHELL ( menu ),
 		      menu_item );
     g_object_set_data ( G_OBJECT ( menu_item ),
 			  "no_champ",
@@ -5012,7 +5012,7 @@
     gtk_widget_show ( menu_item );
 
     menu_item = gtk_menu_item_new_with_label ( _("budgetary line"));
-    gtk_menu_append ( GTK_MENU ( menu ),
+    gtk_menu_shell_append ( GTK_MENU_SHELL ( menu ),
 		      menu_item );
     g_object_set_data ( G_OBJECT ( menu_item ),
 			  "no_champ",
@@ -5040,7 +5040,7 @@
     gtk_widget_show ( menu_item );
 
     menu_item = gtk_menu_item_new_with_label ( _("sub-budgetary line"));
-    gtk_menu_append ( GTK_MENU ( menu ),
+    gtk_menu_shell_append ( GTK_MENU_SHELL ( menu ),
 		      menu_item );
     g_object_set_data ( G_OBJECT ( menu_item ),
 			  "no_champ",
@@ -5068,7 +5068,7 @@
     gtk_widget_show ( menu_item );
 
     menu_item = gtk_menu_item_new_with_label ( _("note"));
-    gtk_menu_append ( GTK_MENU ( menu ),
+    gtk_menu_shell_append ( GTK_MENU_SHELL ( menu ),
 		      menu_item );
     g_object_set_data ( G_OBJECT ( menu_item ),
 			  "no_champ",
@@ -5096,7 +5096,7 @@
     gtk_widget_show ( menu_item );
 
     menu_item = gtk_menu_item_new_with_label ( _("bank reference"));
-    gtk_menu_append ( GTK_MENU ( menu ),
+    gtk_menu_shell_append ( GTK_MENU_SHELL ( menu ),
 		      menu_item );
     g_object_set_data ( G_OBJECT ( menu_item ),
 			  "no_champ",
@@ -5124,7 +5124,7 @@
     gtk_widget_show ( menu_item );
 
     menu_item = gtk_menu_item_new_with_label ( _("voucher"));
-    gtk_menu_append ( GTK_MENU ( menu ),
+    gtk_menu_shell_append ( GTK_MENU_SHELL ( menu ),
 		      menu_item );
     g_object_set_data ( G_OBJECT ( menu_item ),
 			  "no_champ",
@@ -5145,7 +5145,7 @@
 
 
     menu_item = gtk_menu_item_new_with_label ( _("cheque number"));
-    gtk_menu_append ( GTK_MENU ( menu ),
+    gtk_menu_shell_append ( GTK_MENU_SHELL ( menu ),
 		      menu_item );
     g_object_set_data ( G_OBJECT ( menu_item ),
 			  "no_champ",
@@ -5165,7 +5165,7 @@
     gtk_widget_show ( menu_item );
 
     menu_item = gtk_menu_item_new_with_label ( _("reconciliation reference"));
-    gtk_menu_append ( GTK_MENU ( menu ),
+    gtk_menu_shell_append ( GTK_MENU_SHELL ( menu ),
 		      menu_item );
     g_object_set_data ( G_OBJECT ( menu_item ),
 			  "no_champ",
@@ -5220,7 +5220,7 @@
     menu = gtk_menu_new ();
 
     menu_item = gtk_menu_item_new_with_label ( _("contains"));
-    gtk_menu_append ( GTK_MENU ( menu ),
+    gtk_menu_shell_append ( GTK_MENU_SHELL ( menu ),
 		      menu_item );
     g_object_set_data ( G_OBJECT ( menu_item ),
 			  "no_operateur",
@@ -5232,7 +5232,7 @@
     gtk_widget_show ( menu_item );
 
     menu_item = gtk_menu_item_new_with_label ( _("doesn't contain"));
-    gtk_menu_append ( GTK_MENU ( menu ),
+    gtk_menu_shell_append ( GTK_MENU_SHELL ( menu ),
 		      menu_item );
     g_object_set_data ( G_OBJECT ( menu_item ),
 			  "no_operateur",
@@ -5244,7 +5244,7 @@
     gtk_widget_show ( menu_item );
 
     menu_item = gtk_menu_item_new_with_label ( _("begins with"));
-    gtk_menu_append ( GTK_MENU ( menu ),
+    gtk_menu_shell_append ( GTK_MENU_SHELL ( menu ),
 		      menu_item );
     g_object_set_data ( G_OBJECT ( menu_item ),
 			  "no_operateur",
@@ -5256,7 +5256,7 @@
     gtk_widget_show ( menu_item );
 
     menu_item = gtk_menu_item_new_with_label ( _("ends with"));
-    gtk_menu_append ( GTK_MENU ( menu ),
+    gtk_menu_shell_append ( GTK_MENU_SHELL ( menu ),
 		      menu_item );
     g_object_set_data ( G_OBJECT ( menu_item ),
 			  "no_operateur",
@@ -5268,7 +5268,7 @@
     gtk_widget_show ( menu_item );
 
     menu_item = gtk_menu_item_new_with_label ( _("is empty"));
-    gtk_menu_append ( GTK_MENU ( menu ),
+    gtk_menu_shell_append ( GTK_MENU_SHELL ( menu ),
 		      menu_item );
     g_object_set_data ( G_OBJECT ( menu_item ),
 			  "no_operateur",
@@ -5280,7 +5280,7 @@
     gtk_widget_show ( menu_item );
 
     menu_item = gtk_menu_item_new_with_label ( _("isn't empty"));
-    gtk_menu_append ( GTK_MENU ( menu ),
+    gtk_menu_shell_append ( GTK_MENU_SHELL ( menu ),
 		      menu_item );
     g_object_set_data ( G_OBJECT ( menu_item ),
 			  "no_operateur",
@@ -5755,7 +5755,7 @@
     menu = gtk_menu_new ();
 
     menu_item = gtk_menu_item_new_with_label ( _("and"));
-    gtk_menu_append ( GTK_MENU ( menu ),
+    gtk_menu_shell_append ( GTK_MENU_SHELL ( menu ),
 		      menu_item );
     g_object_set_data ( G_OBJECT ( menu_item ),
 			  "no_lien",
@@ -5763,7 +5763,7 @@
     gtk_widget_show ( menu_item );
 
     menu_item = gtk_menu_item_new_with_label ( _("or"));
-    gtk_menu_append ( GTK_MENU ( menu ),
+    gtk_menu_shell_append ( GTK_MENU_SHELL ( menu ),
 		      menu_item );
     g_object_set_data ( G_OBJECT ( menu_item ),
 			  "no_lien",
@@ -5771,7 +5771,7 @@
     gtk_widget_show ( menu_item );
 
     menu_item = gtk_menu_item_new_with_label ( _("except"));
-    gtk_menu_append ( GTK_MENU ( menu ),
+    gtk_menu_shell_append ( GTK_MENU_SHELL ( menu ),
 		      menu_item );
     g_object_set_data ( G_OBJECT ( menu_item ),
 			  "no_lien",
@@ -5801,7 +5801,7 @@
     menu = gtk_menu_new ();
 
     menu_item = gtk_menu_item_new_with_label ( _("equal"));
-    gtk_menu_append ( GTK_MENU ( menu ),
+    gtk_menu_shell_append ( GTK_MENU_SHELL ( menu ),
 		      menu_item );
     g_object_set_data ( G_OBJECT ( menu_item ),
 			  "no_comparateur",
@@ -5813,7 +5813,7 @@
     gtk_widget_show ( menu_item );
 
     menu_item = gtk_menu_item_new_with_label ( _("less than"));
-    gtk_menu_append ( GTK_MENU ( menu ),
+    gtk_menu_shell_append ( GTK_MENU_SHELL ( menu ),
 		      menu_item );
     g_object_set_data ( G_OBJECT ( menu_item ),
 			  "no_comparateur",
@@ -5825,7 +5825,7 @@
     gtk_widget_show ( menu_item );
 
     menu_item = gtk_menu_item_new_with_label ( _("less than or equal"));
-    gtk_menu_append ( GTK_MENU ( menu ),
+    gtk_menu_shell_append ( GTK_MENU_SHELL ( menu ),
 		      menu_item );
     g_object_set_data ( G_OBJECT ( menu_item ),
 			  "no_comparateur",
@@ -5837,7 +5837,7 @@
     gtk_widget_show ( menu_item );
 
     menu_item = gtk_menu_item_new_with_label ( _("greater than"));
-    gtk_menu_append ( GTK_MENU ( menu ),
+    gtk_menu_shell_append ( GTK_MENU_SHELL ( menu ),
 		      menu_item );
     g_object_set_data ( G_OBJECT ( menu_item ),
 			  "no_comparateur",
@@ -5849,7 +5849,7 @@
     gtk_widget_show ( menu_item );
 
     menu_item = gtk_menu_item_new_with_label ( _("greater than or equal"));
-    gtk_menu_append ( GTK_MENU ( menu ),
+    gtk_menu_shell_append ( GTK_MENU_SHELL ( menu ),
 		      menu_item );
     g_object_set_data ( G_OBJECT ( menu_item ),
 			  "no_comparateur",
@@ -5861,7 +5861,7 @@
     gtk_widget_show ( menu_item );
 
     menu_item = gtk_menu_item_new_with_label ( _("different from"));
-    gtk_menu_append ( GTK_MENU ( menu ),
+    gtk_menu_shell_append ( GTK_MENU_SHELL ( menu ),
 		      menu_item );
     g_object_set_data ( G_OBJECT ( menu_item ),
 			  "no_comparateur",
@@ -5873,7 +5873,7 @@
     gtk_widget_show ( menu_item );
 
     menu_item = gtk_menu_item_new_with_label ( _("null"));
-    gtk_menu_append ( GTK_MENU ( menu ),
+    gtk_menu_shell_append ( GTK_MENU_SHELL ( menu ),
 		      menu_item );
     g_object_set_data ( G_OBJECT ( menu_item ),
 			  "no_comparateur",
@@ -5885,7 +5885,7 @@
     gtk_widget_show ( menu_item );
 
     menu_item = gtk_menu_item_new_with_label ( _("not null"));
-    gtk_menu_append ( GTK_MENU ( menu ),
+    gtk_menu_shell_append ( GTK_MENU_SHELL ( menu ),
 		      menu_item );
     g_object_set_data ( G_OBJECT ( menu_item ),
 			  "no_comparateur",
@@ -5897,7 +5897,7 @@
     gtk_widget_show ( menu_item );
 
     menu_item = gtk_menu_item_new_with_label ( _("positive"));
-    gtk_menu_append ( GTK_MENU ( menu ),
+    gtk_menu_shell_append ( GTK_MENU_SHELL ( menu ),
 		      menu_item );
     g_object_set_data ( G_OBJECT ( menu_item ),
 			  "no_comparateur",
@@ -5909,7 +5909,7 @@
     gtk_widget_show ( menu_item );
 
     menu_item = gtk_menu_item_new_with_label ( _("negative"));
-    gtk_menu_append ( GTK_MENU ( menu ),
+    gtk_menu_shell_append ( GTK_MENU_SHELL ( menu ),
 		      menu_item );
     g_object_set_data ( G_OBJECT ( menu_item ),
 			  "no_comparateur",
@@ -5979,7 +5979,7 @@
     menu = gtk_menu_new ();
 
     menu_item = gtk_menu_item_new_with_label ( _("equal"));
-    gtk_menu_append ( GTK_MENU ( menu ),
+    gtk_menu_shell_append ( GTK_MENU_SHELL ( menu ),
 		      menu_item );
     g_object_set_data ( G_OBJECT ( menu_item ),
 			  "no_comparateur",
@@ -5991,7 +5991,7 @@
     gtk_widget_show ( menu_item );
 
     menu_item = gtk_menu_item_new_with_label ( _("less than"));
-    gtk_menu_append ( GTK_MENU ( menu ),
+    gtk_menu_shell_append ( GTK_MENU_SHELL ( menu ),
 		      menu_item );
     g_object_set_data ( G_OBJECT ( menu_item ),
 			  "no_comparateur",
@@ -6003,7 +6003,7 @@
     gtk_widget_show ( menu_item );
 
     menu_item = gtk_menu_item_new_with_label ( _("less than or equal"));
-    gtk_menu_append ( GTK_MENU ( menu ),
+    gtk_menu_shell_append ( GTK_MENU_SHELL ( menu ),
 		      menu_item );
     g_object_set_data ( G_OBJECT ( menu_item ),
 			  "no_comparateur",
@@ -6015,7 +6015,7 @@
     gtk_widget_show ( menu_item );
 
     menu_item = gtk_menu_item_new_with_label ( _("greater than"));
-    gtk_menu_append ( GTK_MENU ( menu ),
+    gtk_menu_shell_append ( GTK_MENU_SHELL ( menu ),
 		      menu_item );
     g_object_set_data ( G_OBJECT ( menu_item ),
 			  "no_comparateur",
@@ -6027,7 +6027,7 @@
     gtk_widget_show ( menu_item );
 
     menu_item = gtk_menu_item_new_with_label ( _("greater than or equal"));
-    gtk_menu_append ( GTK_MENU ( menu ),
+    gtk_menu_shell_append ( GTK_MENU_SHELL ( menu ),
 		      menu_item );
     g_object_set_data ( G_OBJECT ( menu_item ),
 			  "no_comparateur",
@@ -6039,7 +6039,7 @@
     gtk_widget_show ( menu_item );
 
     menu_item = gtk_menu_item_new_with_label ( _("different from"));
-    gtk_menu_append ( GTK_MENU ( menu ),
+    gtk_menu_shell_append ( GTK_MENU_SHELL ( menu ),
 		      menu_item );
     g_object_set_data ( G_OBJECT ( menu_item ),
 			  "no_comparateur",
@@ -6051,7 +6051,7 @@
     gtk_widget_show ( menu_item );
 
     menu_item = gtk_menu_item_new_with_label ( _("the biggest"));
-    gtk_menu_append ( GTK_MENU ( menu ),
+    gtk_menu_shell_append ( GTK_MENU_SHELL ( menu ),
 		      menu_item );
     g_object_set_data ( G_OBJECT ( menu_item ),
 			  "no_comparateur",
@@ -6112,7 +6112,7 @@
     menu = gtk_menu_new ();
 
     menu_item = gtk_menu_item_new_with_label ( _("and"));
-    gtk_menu_append ( GTK_MENU ( menu ),
+    gtk_menu_shell_append ( GTK_MENU_SHELL ( menu ),
 		      menu_item );
     g_object_set_data ( G_OBJECT ( menu_item ),
 			  "no_lien",
@@ -6124,7 +6124,7 @@
     gtk_widget_show ( menu_item );
 
     menu_item = gtk_menu_item_new_with_label ( _("or"));
-    gtk_menu_append ( GTK_MENU ( menu ),
+    gtk_menu_shell_append ( GTK_MENU_SHELL ( menu ),
 		      menu_item );
     g_object_set_data ( G_OBJECT ( menu_item ),
 			  "no_lien",
@@ -6136,7 +6136,7 @@
     gtk_widget_show ( menu_item );
 
     menu_item = gtk_menu_item_new_with_label ( _("except"));
-    gtk_menu_append ( GTK_MENU ( menu ),
+    gtk_menu_shell_append ( GTK_MENU_SHELL ( menu ),
 		      menu_item );
     g_object_set_data ( G_OBJECT ( menu_item ),
 			  "no_lien",
@@ -6148,7 +6148,7 @@
     gtk_widget_show ( menu_item );
 
     menu_item = gtk_menu_item_new_with_label ( _("stop"));
-    gtk_menu_append ( GTK_MENU ( menu ),
+    gtk_menu_shell_append ( GTK_MENU_SHELL ( menu ),
 		      menu_item );
     g_object_set_data ( G_OBJECT ( menu_item ),
 			  "no_lien",
@@ -6469,19 +6469,19 @@
     menu = gtk_menu_new ();
     menu_item = gtk_menu_item_new_with_label ( _("Day") );
     g_object_set_data ( G_OBJECT ( menu_item ), "type", NULL );
-    gtk_menu_append ( GTK_MENU ( menu ), menu_item );
+    gtk_menu_shell_append ( GTK_MENU_SHELL ( menu ), menu_item );
 
     menu_item = gtk_menu_item_new_with_label ( _("Week") );
     g_object_set_data ( G_OBJECT ( menu_item ), "type", GINT_TO_POINTER (1) );
-    gtk_menu_append ( GTK_MENU ( menu ), menu_item );
+    gtk_menu_shell_append ( GTK_MENU_SHELL ( menu ), menu_item );
 
     menu_item = gtk_menu_item_new_with_label ( _("Month") );
     g_object_set_data ( G_OBJECT ( menu_item ), "type", GINT_TO_POINTER (2) );
-    gtk_menu_append ( GTK_MENU ( menu ), menu_item );
+    gtk_menu_shell_append ( GTK_MENU_SHELL ( menu ), menu_item );
 
     menu_item = gtk_menu_item_new_with_label ( _("Year") );
     g_object_set_data ( G_OBJECT ( menu_item ), "type", GINT_TO_POINTER (3));
-    gtk_menu_append ( GTK_MENU ( menu ), menu_item );
+    gtk_menu_shell_append ( GTK_MENU_SHELL ( menu ), menu_item );
 
     gtk_option_menu_set_menu ( GTK_OPTION_MENU ( bouton_type_separe_plages_etat ), menu );
 
@@ -6513,7 +6513,7 @@
     {
 	menu_item = gtk_menu_item_new_with_label ( _(jours_semaine[i]) );
 	g_object_set_data ( G_OBJECT ( menu_item ), "day", GINT_TO_POINTER (i));
-	gtk_menu_append ( GTK_MENU ( menu ), menu_item );
+	gtk_menu_shell_append ( GTK_MENU_SHELL ( menu ), menu_item );
 	i++;
     }
     gtk_option_menu_set_menu ( GTK_OPTION_MENU ( bouton_debut_semaine ), menu );
@@ -6857,84 +6857,84 @@
     g_object_set_data ( G_OBJECT ( menu_item ),
 			  "no_classement",
 			  GINT_TO_POINTER ( 0 ));
-    gtk_menu_append ( GTK_MENU ( menu ),
+    gtk_menu_shell_append ( GTK_MENU_SHELL ( menu ),
 		      menu_item );
 
     menu_item = gtk_menu_item_new_with_label ( _("value date"));
     g_object_set_data ( G_OBJECT ( menu_item ),
 			  "no_classement",
 			  GINT_TO_POINTER ( 1 ));
-    gtk_menu_append ( GTK_MENU ( menu ),
+    gtk_menu_shell_append ( GTK_MENU_SHELL ( menu ),
 		      menu_item );
 
     menu_item = gtk_menu_item_new_with_label ( _("transaction number"));
     g_object_set_data ( G_OBJECT ( menu_item ),
 			  "no_classement",
 			  GINT_TO_POINTER ( 2 ));
-    gtk_menu_append ( GTK_MENU ( menu ),
+    gtk_menu_shell_append ( GTK_MENU_SHELL ( menu ),
 		      menu_item );
 
     menu_item = gtk_menu_item_new_with_label ( _("payee"));
     g_object_set_data ( G_OBJECT ( menu_item ),
 			  "no_classement",
 			  GINT_TO_POINTER ( 3 ));
-    gtk_menu_append ( GTK_MENU ( menu ),
+    gtk_menu_shell_append ( GTK_MENU_SHELL ( menu ),
 		      menu_item );
 
     menu_item = gtk_menu_item_new_with_label ( _("category"));
     g_object_set_data ( G_OBJECT ( menu_item ),
 			  "no_classement",
 			  GINT_TO_POINTER ( 4 ));
-    gtk_menu_append ( GTK_MENU ( menu ),
+    gtk_menu_shell_append ( GTK_MENU_SHELL ( menu ),
 		      menu_item );
 
     menu_item = gtk_menu_item_new_with_label ( _("budgetary line"));
     g_object_set_data ( G_OBJECT ( menu_item ),
 			  "no_classement",
 			  GINT_TO_POINTER ( 5 ));
-    gtk_menu_append ( GTK_MENU ( menu ),
+    gtk_menu_shell_append ( GTK_MENU_SHELL ( menu ),
 		      menu_item );
 
     menu_item = gtk_menu_item_new_with_label ( _("note"));
     g_object_set_data ( G_OBJECT ( menu_item ),
 			  "no_classement",
 			  GINT_TO_POINTER ( 6 ));
-    gtk_menu_append ( GTK_MENU ( menu ),
+    gtk_menu_shell_append ( GTK_MENU_SHELL ( menu ),
 		      menu_item );
 
     menu_item = gtk_menu_item_new_with_label ( _("method of payment"));
     g_object_set_data ( G_OBJECT ( menu_item ),
 			  "no_classement",
 			  GINT_TO_POINTER ( 7 ));
-    gtk_menu_append ( GTK_MENU ( menu ),
+    gtk_menu_shell_append ( GTK_MENU_SHELL ( menu ),
 		      menu_item );
 
     menu_item = gtk_menu_item_new_with_label ( _("cheque/transfer number"));
     g_object_set_data ( G_OBJECT ( menu_item ),
 			  "no_classement",
 			  GINT_TO_POINTER ( 8 ));
-    gtk_menu_append ( GTK_MENU ( menu ),
+    gtk_menu_shell_append ( GTK_MENU_SHELL ( menu ),
 		      menu_item );
 
     menu_item = gtk_menu_item_new_with_label ( _("voucher"));
     g_object_set_data ( G_OBJECT ( menu_item ),
 			  "no_classement",
 			  GINT_TO_POINTER ( 9 ));
-    gtk_menu_append ( GTK_MENU ( menu ),
+    gtk_menu_shell_append ( GTK_MENU_SHELL ( menu ),
 		      menu_item );
 
     menu_item = gtk_menu_item_new_with_label ( _("bank reference"));
     g_object_set_data ( G_OBJECT ( menu_item ),
 			  "no_classement",
 			  GINT_TO_POINTER ( 10 ));
-    gtk_menu_append ( GTK_MENU ( menu ),
+    gtk_menu_shell_append ( GTK_MENU_SHELL ( menu ),
 		      menu_item );
 
     menu_item = gtk_menu_item_new_with_label ( _("reconciliation reference"));
     g_object_set_data ( G_OBJECT ( menu_item ),
 			  "no_classement",
 			  GINT_TO_POINTER ( 11 ));
-    gtk_menu_append ( GTK_MENU ( menu ),
+    gtk_menu_shell_append ( GTK_MENU_SHELL ( menu ),
 		      menu_item );
 
     gtk_option_menu_set_menu ( GTK_OPTION_MENU ( bouton_choix_classement_ope_etat ),

Index: categories_onglet.c
===================================================================
RCS file: /cvsroot/grisbi/grisbi/src/categories_onglet.c,v
retrieving revision 1.184
retrieving revision 1.185
diff -u -d -r1.184 -r1.185
--- categories_onglet.c	1 Jan 2009 20:43:49 -0000	1.184
+++ categories_onglet.c	9 Jan 2009 14:49:00 -0000	1.185
@@ -549,19 +549,19 @@
     g_signal_connect ( G_OBJECT(menu_item), "activate",
 		       G_CALLBACK(expand_arbre_division), (gpointer) 0 );
     g_object_set_data ( G_OBJECT(menu_item), "tree-view", arbre_categ );
-    gtk_menu_append ( menu, menu_item );
+    gtk_menu_shell_append ( GTK_MENU_SHELL ( menu ), menu_item );
 
     menu_item = gtk_image_menu_item_new_with_label ( _("Subcategory view") );
     g_signal_connect ( G_OBJECT(menu_item), "activate",
 		       G_CALLBACK(expand_arbre_division), (gpointer) 1 );
     g_object_set_data ( G_OBJECT(menu_item), "tree-view", arbre_categ );
-    gtk_menu_append ( menu, menu_item );
+    gtk_menu_shell_append ( GTK_MENU_SHELL ( menu ), menu_item );
 
     menu_item = gtk_image_menu_item_new_with_label ( _("Complete view") );
     g_signal_connect ( G_OBJECT(menu_item), "activate",
 		       G_CALLBACK(expand_arbre_division), (gpointer) 2 );
     g_object_set_data ( G_OBJECT(menu_item), "tree-view", arbre_categ );
-    gtk_menu_append ( menu, menu_item );
+    gtk_menu_shell_append ( GTK_MENU_SHELL ( menu ), menu_item );
 
     gtk_widget_show_all ( menu );
 

Index: import_csv.c
===================================================================
RCS file: /cvsroot/grisbi/grisbi/src/import_csv.c,v
retrieving revision 1.52
retrieving revision 1.53
diff -u -d -r1.52 -r1.53
--- import_csv.c	7 Jan 2009 21:18:55 -0000	1.52
+++ import_csv.c	9 Jan 2009 14:49:00 -0000	1.53
@@ -953,7 +953,7 @@
 	g_object_set_data ( G_OBJECT ( item ), "assistant", assistant );
 	g_signal_connect ( G_OBJECT ( item ), "activate",
 			     G_CALLBACK ( csv_import_change_field ), GINT_TO_POINTER(  i ) );
-	gtk_menu_append ( GTK_MENU ( menu ), item );
+	gtk_menu_shell_append ( GTK_MENU_SHELL ( menu ), item );
     }
 
     gtk_widget_show_all ( menu );

Index: etats_onglet.c
===================================================================
RCS file: /cvsroot/grisbi/grisbi/src/etats_onglet.c,v
retrieving revision 1.128
retrieving revision 1.129
diff -u -d -r1.128 -r1.129
--- etats_onglet.c	6 Jan 2009 22:16:44 -0000	1.128
+++ etats_onglet.c	9 Jan 2009 14:49:00 -0000	1.129
@@ -309,7 +309,7 @@
     menu = gtk_menu_new ();
 
     menu_item = gtk_menu_item_new_with_label ( _("Last month incomes and outgoings"));
-    gtk_menu_append ( GTK_MENU ( menu ), menu_item );
+    gtk_menu_shell_append ( GTK_MENU_SHELL ( menu ), menu_item );
     g_object_set_data ( G_OBJECT ( menu_item ), "no_etat",
 			  GINT_TO_POINTER ( 0 ));
     g_signal_connect ( G_OBJECT ( menu_item ), "activate",
@@ -320,7 +320,7 @@
     change_choix_nouvel_etat ( menu_item, label_description );
 
     menu_item = gtk_menu_item_new_with_label ( _("Current month incomes and outgoings"));
-    gtk_menu_append ( GTK_MENU ( menu ), menu_item )
+    gtk_menu_shell_append ( GTK_MENU_SHELL ( menu ), menu_item )
 	; g_object_set_data ( G_OBJECT ( menu_item ), "no_etat",
 				GINT_TO_POINTER ( 1 ));
     g_signal_connect ( G_OBJECT ( menu_item ), "activate",
@@ -328,7 +328,7 @@
 			 G_OBJECT ( label_description ));
 
     menu_item = gtk_menu_item_new_with_label ( _("Annual budget"));
-    gtk_menu_append ( GTK_MENU ( menu ), menu_item );
+    gtk_menu_shell_append ( GTK_MENU_SHELL ( menu ), menu_item );
     g_object_set_data ( G_OBJECT ( menu_item ), "no_etat",
 			  GINT_TO_POINTER ( 2 ));
     g_signal_connect ( G_OBJECT ( menu_item ), "activate",
@@ -336,7 +336,7 @@
 			 G_OBJECT ( label_description ));
 
     menu_item = gtk_menu_item_new_with_label ( _("Cheques deposit"));
-    gtk_menu_append ( GTK_MENU ( menu ), menu_item );
+    gtk_menu_shell_append ( GTK_MENU_SHELL ( menu ), menu_item );
     g_object_set_data ( G_OBJECT ( menu_item ), "no_etat",
 			  GINT_TO_POINTER ( 4 ));
     g_signal_connect ( G_OBJECT ( menu_item ), "activate",
@@ -344,7 +344,7 @@
 			 G_OBJECT ( label_description ));
 
     menu_item = gtk_menu_item_new_with_label ( _("Monthly outgoings by payee"));
-    gtk_menu_append ( GTK_MENU ( menu ), menu_item );
+    gtk_menu_shell_append ( GTK_MENU_SHELL ( menu ), menu_item );
     g_object_set_data ( G_OBJECT ( menu_item ), "no_etat",
 			  GINT_TO_POINTER ( 5 ));
     g_signal_connect ( G_OBJECT ( menu_item ), "activate",
@@ -352,7 +352,7 @@
 			 G_OBJECT ( label_description ));
 
     menu_item = gtk_menu_item_new_with_label ( _("Search"));
-    gtk_menu_append ( GTK_MENU ( menu ), menu_item );
+    gtk_menu_shell_append ( GTK_MENU_SHELL ( menu ), menu_item );
     g_object_set_data ( G_OBJECT ( menu_item ), "no_etat",
 			  GINT_TO_POINTER ( 6 ));
     g_signal_connect ( G_OBJECT ( menu_item ), "activate",
@@ -360,7 +360,7 @@
 			 G_OBJECT ( label_description ));
 
     menu_item = gtk_menu_item_new_with_label ( _("Blank report"));
-    gtk_menu_append ( GTK_MENU ( menu ), menu_item );
+    gtk_menu_shell_append ( GTK_MENU_SHELL ( menu ), menu_item );
     g_object_set_data ( G_OBJECT ( menu_item ), "no_etat",
 			  GINT_TO_POINTER ( 3 ));
     g_signal_connect ( G_OBJECT ( menu_item ), "activate",

Index: tiers_onglet.c
===================================================================
RCS file: /cvsroot/grisbi/grisbi/src/tiers_onglet.c,v
retrieving revision 1.141
retrieving revision 1.142
diff -u -d -r1.141 -r1.142
--- tiers_onglet.c	8 Dec 2008 14:39:00 -0000	1.141
+++ tiers_onglet.c	9 Jan 2009 14:49:00 -0000	1.142
@@ -361,13 +361,13 @@
     g_signal_connect ( G_OBJECT(menu_item), "activate",
 		       G_CALLBACK(expand_arbre_division), (gpointer) 0 );
     g_object_set_data ( G_OBJECT(menu_item), "tree-view", payee_tree );
-    gtk_menu_append ( menu, menu_item );
+    gtk_menu_shell_append ( GTK_MENU_SHELL ( menu ), menu_item );
 
     menu_item = gtk_image_menu_item_new_with_label ( _("Complete view") );
     g_signal_connect ( G_OBJECT(menu_item), "activate",
 		       G_CALLBACK(expand_arbre_division), (gpointer) 2 );
     g_object_set_data ( G_OBJECT(menu_item), "tree-view", payee_tree );
-    gtk_menu_append ( menu, menu_item );
+    gtk_menu_shell_append ( GTK_MENU_SHELL ( menu ), menu_item );
 
     gtk_widget_show_all ( menu );
 

Index: barre_outils.c
===================================================================
RCS file: /cvsroot/grisbi/grisbi/src/barre_outils.c,v
retrieving revision 1.121
retrieving revision 1.122
diff -u -d -r1.121 -r1.122
--- barre_outils.c	7 Jan 2009 21:18:55 -0000	1.121
+++ barre_outils.c	9 Jan 2009 14:48:59 -0000	1.122
@@ -220,31 +220,31 @@
     menu = gtk_menu_new ();
 
     menu_item = gtk_menu_item_new_with_label ( _("Simple view") );
-    gtk_menu_append ( GTK_MENU ( menu ), menu_item );
+    gtk_menu_shell_append ( GTK_MENU_SHELL ( menu ), menu_item );
     g_signal_connect_swapped ( G_OBJECT(menu_item), "activate", 
 			       G_CALLBACK (change_aspect_liste), GINT_TO_POINTER (1) );
 
     menu_item = gtk_menu_item_new_with_label ( _("Two lines view") );
-    gtk_menu_append ( GTK_MENU ( menu ), menu_item );
+    gtk_menu_shell_append ( GTK_MENU_SHELL ( menu ), menu_item );
     g_signal_connect_swapped ( G_OBJECT(menu_item), "activate", 
 			       G_CALLBACK (change_aspect_liste), GINT_TO_POINTER (2) );
 
     menu_item = gtk_menu_item_new_with_label ( _("Three lines view") );
-    gtk_menu_append ( GTK_MENU ( menu ), menu_item );
+    gtk_menu_shell_append ( GTK_MENU_SHELL ( menu ), menu_item );
     g_signal_connect_swapped ( G_OBJECT(menu_item), "activate", 
 			       G_CALLBACK (change_aspect_liste), GINT_TO_POINTER (3) );
 
     menu_item = gtk_menu_item_new_with_label ( _("Complete view") );
-    gtk_menu_append ( GTK_MENU ( menu ), menu_item );
+    gtk_menu_shell_append ( GTK_MENU_SHELL ( menu ), menu_item );
     g_signal_connect_swapped ( G_OBJECT(menu_item), "activate", 
 			       G_CALLBACK (change_aspect_liste), GINT_TO_POINTER (4) );
 
-    gtk_menu_append ( GTK_MENU ( menu ), gtk_separator_menu_item_new ( ) );
+    gtk_menu_shell_append ( GTK_MENU_SHELL ( menu ), gtk_separator_menu_item_new ( ) );
 
     menu_item = gtk_check_menu_item_new_with_label ( _("Display reconciled transactions (Alt+R)") );
     gtk_check_menu_item_set_active ( GTK_CHECK_MENU_ITEM (menu_item),
 				     gsb_data_account_get_r ( gsb_gui_navigation_get_current_account () ) );
-    gtk_menu_append ( GTK_MENU ( menu ), menu_item );
+    gtk_menu_shell_append ( GTK_MENU_SHELL ( menu ), menu_item );
     g_signal_connect_swapped ( G_OBJECT(menu_item), "activate", 
 			       G_CALLBACK (gsb_gui_toggle_show_reconciled), GINT_TO_POINTER (4) );
 
@@ -283,18 +283,18 @@
 	if (i > 0)
 	{ 
 	    menu_item = gtk_separator_menu_item_new ( );
-	    gtk_menu_append ( GTK_MENU ( menu ), menu_item );
+	    gtk_menu_shell_append ( GTK_MENU_SHELL ( menu ), menu_item );
 	}
   
 	menu_item = gtk_menu_item_new_with_label (gsb_data_import_rule_get_name (rule));
-	gtk_menu_append ( GTK_MENU ( menu ), menu_item );
+	gtk_menu_shell_append ( GTK_MENU_SHELL ( menu ), menu_item );
 	g_signal_connect_swapped ( G_OBJECT(menu_item), "activate", 
 				   G_CALLBACK (gsb_import_by_rule), GINT_TO_POINTER (rule) );
 	menu_item = gtk_menu_item_new_with_label (_("Remove the rule"));
 	g_signal_connect_swapped ( G_OBJECT(menu_item), "activate", 
 				   G_CALLBACK (gsb_data_import_rule_remove), GINT_TO_POINTER (rule) );
 
-	gtk_menu_append ( GTK_MENU ( menu ), menu_item );
+	gtk_menu_shell_append ( GTK_MENU_SHELL ( menu ), menu_item );
 
 	tmp_list = tmp_list -> next;
     }
@@ -406,7 +406,7 @@
 	g_signal_connect_swapped ( G_OBJECT ( item ), "activate",
 				    G_CALLBACK ( gsb_scheduler_list_change_scheduler_view ),
 				    GINT_TO_POINTER(i) );
-	gtk_menu_append ( GTK_MENU ( menu ), item );
+	gtk_menu_shell_append ( GTK_MENU_SHELL ( menu ), item );
     }
 
     gtk_widget_show_all ( menu );



More information about the cvs mailing list