[grisbi-cvs] grisbi/src gsb_reconcile.c,1.30,1.31
Pierre Biava
pbiava at users.sourceforge.net
Thu Feb 12 06:26:24 CET 2009
Update of /cvsroot/grisbi/grisbi/src
In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv11268
Modified Files:
gsb_reconcile.c
Log Message:
fix bug 477 : no update tag P or T in R
Index: gsb_reconcile.c
===================================================================
RCS file: /cvsroot/grisbi/grisbi/src/gsb_reconcile.c,v
retrieving revision 1.30
retrieving revision 1.31
diff -u -d -r1.30 -r1.31
--- gsb_reconcile.c 31 Jan 2009 20:11:04 -0000 1.30
+++ gsb_reconcile.c 12 Feb 2009 05:26:20 -0000 1.31
@@ -128,9 +128,10 @@
reconcile_number_entry = gtk_entry_new ();
gtk_widget_set_tooltip_text ( GTK_WIDGET (reconcile_number_entry),
SPACIFY(_("If reconciliation reference ends in a digit, it is automatically incremented at each reconciliation.\nYou can let it empty if you don't want to keep a trace of the reconciliation.")));
- //~ g_signal_connect ( G_OBJECT ( reconcile_number_entry ),
- //~ "key-press-event",
- //~ G_CALLBACK ( gsb_reconcile_key_press_event ), NULL );
+ /* Comment by pbiava the 01/31/2009 fix bug 468
+ g_signal_connect ( G_OBJECT ( reconcile_number_entry ),
+ "key-press-event",
+ G_CALLBACK ( gsb_reconcile_key_press_event ), NULL ); */
gtk_box_pack_start ( GTK_BOX ( hbox ), reconcile_number_entry, TRUE, TRUE, 0);
separator = gtk_hseparator_new();
@@ -176,9 +177,10 @@
/* make the new date entry */
reconcile_new_date_entry = gsb_calendar_entry_new (TRUE);
gtk_widget_set_size_request ( reconcile_new_date_entry, 50, -1 );
- //~ g_signal_connect ( G_OBJECT ( reconcile_new_date_entry ),
- //~ "key-press-event",
- //~ G_CALLBACK( gsb_reconcile_key_press_event ), NULL );
+ /* Comment by pbiava the 01/31/2009 fix bug 468
+ g_signal_connect ( G_OBJECT ( reconcile_new_date_entry ),
+ "key-press-event",
+ G_CALLBACK( gsb_reconcile_key_press_event ), NULL ); */
gtk_table_attach_defaults ( GTK_TABLE ( table ), reconcile_new_date_entry,
0, 1, 4, 5 );
@@ -188,9 +190,10 @@
g_signal_connect ( G_OBJECT ( reconcile_final_balance_entry ), "changed",
G_CALLBACK (gsb_reconcile_update_amounts),
NULL );
- //~ g_signal_connect ( G_OBJECT ( reconcile_final_balance_entry ),
- //~ "key-press-event",
- //~ G_CALLBACK ( gsb_reconcile_key_press_event ), NULL );
+ /* Comment by pbiava the 01/31/2009 fix bug 468
+ g_signal_connect ( G_OBJECT ( reconcile_final_balance_entry ),
+ "key-press-event",
+ G_CALLBACK ( gsb_reconcile_key_press_event ), NULL ); */
gtk_table_attach_defaults ( GTK_TABLE ( table ), reconcile_final_balance_entry,
2, 3, 4, 5 );
@@ -599,10 +602,11 @@
/* update the P and T to R in the list if R are shown,
* else just re-filter */
- if (gsb_data_account_get_r (account_number))
- transaction_list_update_element (ELEMENT_MARK);
- else
- gsb_transactions_list_update_tree_view (account_number, TRUE);
+ /* comment by pbiava 02/11/2009 not update the tag P or T in R bug */
+ //~ if (gsb_data_account_get_r (account_number))
+ transaction_list_update_element (ELEMENT_MARK);
+ //~ else
+ //~ gsb_transactions_list_update_tree_view (account_number, TRUE);
mise_a_jour_liste_comptes_accueil = 1;
@@ -627,6 +631,10 @@
{
gtk_widget_set_sensitive ( navigation_tree_view, sensitive );
gsb_gui_sensitive_headings (sensitive);
+ /* add by pbiava 02/11/2009 */
+ gtk_widget_set_sensitive ( gtk_ui_manager_get_widget ( ui_manager,
+ "/MenuBar/ViewMenu/ShowReconciled/" ),
+ sensitive );
gtk_widget_set_sensitive ( gtk_ui_manager_get_widget (ui_manager,
"/MenuBar/ViewMenu/ShowClosed/" ),
sensitive );
@@ -698,36 +706,37 @@
*
* \return FALSE
* */
-//~ gboolean gsb_reconcile_key_press_event ( GtkWidget *entry,
- //~ GdkEventKey *event,
- //~ gpointer null )
-//~ {
- //~ switch ( event -> keyval )
- //~ {
- //~ case GDK_Tab:
- //~ /* This is hardcoded because normal cycle does not work
- //~ * ... why? -- benj
- //~ * tabs now operating normally in my configuration pbiava*/
- //~ devel_debug ("GDK_Tab");
- //~ if ( entry == reconcile_number_entry )
- //~ {
- //~ gtk_widget_grab_focus ( GTK_WIDGET ( reconcile_new_date_entry ) );
- //~ }
- //~ else if ( entry == reconcile_new_date_entry )
- //~ {
- //~ gtk_widget_grab_focus ( GTK_WIDGET ( reconcile_final_balance_entry ) );
- //~ }
- //~ else if ( entry == reconcile_final_balance_entry )
- //~ {
- //~ gtk_widget_grab_focus ( GTK_WIDGET ( reconcile_number_entry ) );
- //~ }
- //~ return FALSE;
- //~ default:
- //~ /* Reverting to default handler */
- //~ return FALSE;
- //~ }
- //~ return TRUE;
-//~ }
+/* Comment by pbiava the 01/31/2009 fix bug 468
+gboolean gsb_reconcile_key_press_event ( GtkWidget *entry,
+ GdkEventKey *event,
+ gpointer null )
+{
+ switch ( event -> keyval )
+ {
+ case GDK_Tab:
+ !* This is hardcoded because normal cycle does not work
+ * ... why? -- benj
+ * tabs now operating normally in my configuration pbiava*!
+ devel_debug ("GDK_Tab");
+ if ( entry == reconcile_number_entry )
+ {
+ gtk_widget_grab_focus ( GTK_WIDGET ( reconcile_new_date_entry ) );
+ }
+ else if ( entry == reconcile_new_date_entry )
+ {
+ gtk_widget_grab_focus ( GTK_WIDGET ( reconcile_final_balance_entry ) );
+ }
+ else if ( entry == reconcile_final_balance_entry )
+ {
+ gtk_widget_grab_focus ( GTK_WIDGET ( reconcile_number_entry ) );
+ }
+ return FALSE;
+ default:
+ !* Reverting to default handler *!
+ return FALSE;
+ }
+ return TRUE;
+} */
/**
More information about the cvs
mailing list