[grisbi-cvs] grisbi/src barre_outils.c,1.117,1.118

Benjamin Drieu benj2 at users.sourceforge.net
Sun Nov 16 22:33:12 CET 2008


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

Modified Files:
	barre_outils.c 
Log Message:
Improve toolbar (I hope)

Index: barre_outils.c
===================================================================
RCS file: /cvsroot/grisbi/grisbi/src/barre_outils.c,v
retrieving revision 1.117
retrieving revision 1.118
diff -u -d -r1.117 -r1.118
--- barre_outils.c	16 Nov 2008 20:34:25 -0000	1.117
+++ barre_outils.c	16 Nov 2008 21:33:10 -0000	1.118
@@ -148,8 +148,8 @@
     gtk_box_pack_start ( GTK_BOX(hbox), menu, FALSE, FALSE, 0 );
 
     /* set the button to show/hide R transactions */
-    if ( bouton_affiche_ope_r && GTK_IS_WIDGET ( bouton_affiche_ope_r ) )
-	    gtk_box_pack_start ( GTK_BOX ( hbox ), bouton_affiche_ope_r, FALSE, FALSE, 0 );
+/*     if ( bouton_affiche_ope_r && GTK_IS_WIDGET ( bouton_affiche_ope_r ) ) */
+/* 	    gtk_box_pack_start ( GTK_BOX ( hbox ), bouton_affiche_ope_r, FALSE, FALSE, 0 ); */
 
 
     menu_import_rules = gsb_automem_stock_button_menu_new ( etat.display_toolbar,
@@ -225,6 +225,15 @@
     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 ( ) );
+
+    menu_item = gtk_check_menu_item_new_with_label ( _("Display reconciled transactions") );
+    gtk_check_menu_item_set_active ( menu_item,
+				     gsb_data_account_get_r ( gsb_gui_navigation_get_current_account () ) );
+    gtk_menu_append ( GTK_MENU ( menu ), menu_item );
+    g_signal_connect_swapped ( G_OBJECT(menu_item), "activate", 
+			       G_CALLBACK (gsb_gui_toggle_show_reconciled), GINT_TO_POINTER (4) );
+
     gtk_menu_set_active ( GTK_MENU(menu), 
 			  gsb_data_account_get_nb_rows ( gsb_gui_navigation_get_current_account () ) );
 
@@ -257,24 +266,25 @@
 
 	rule = gsb_data_import_rule_get_number (tmp_list -> data);
  
-    if (i > 0)
-    { 
-        menu_item = gtk_separator_menu_item_new ( );
-        gtk_menu_append ( GTK_MENU ( menu ), menu_item );
-    }
+	if (i > 0)
+	{ 
+	    menu_item = gtk_separator_menu_item_new ( );
+	    gtk_menu_append ( GTK_MENU ( menu ), menu_item );
+	}
   
-    menu_item = gtk_menu_item_new_with_label (gsb_data_import_rule_get_name (rule));
+	menu_item = gtk_menu_item_new_with_label (gsb_data_import_rule_get_name (rule));
 	gtk_menu_append ( GTK_MENU ( 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", 
+	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 );
 
 	tmp_list = tmp_list -> next;
     }
+
     gtk_widget_show_all ( menu );
     gtk_menu_popup ( GTK_MENU(menu), NULL, button, set_popup_position, button, 1, 
 		     gtk_get_current_event_time());



More information about the cvs mailing list