[grisbi-cvs] grisbi/src gsb_form.c,1.165,1.166
Pierre Biava
pbiava at users.sourceforge.net
Thu May 20 23:14:56 CEST 2010
- Previous message: [grisbi-cvs] grisbi/po ChangeLog, NONE, 1.1.26.2 Makefile.in.in, NONE, 1.9.6.2 POTFILES.in, NONE, 1.46.2.2 cs.po, NONE, 1.114.2.2 da.po, NONE, 1.118.2.2 de.po, NONE, 1.194.2.2 el.po, NONE, 1.82.2.2 eo.po, NONE, 1.75.2.2 es.po, NONE, 1.195.2.2 fa.po, NONE, 1.105.2.2 fr.po, NONE, 1.251.2.2 grisbi.pot, NONE, 1.153.2.2 he.po, NONE, 1.111.2.2 it.po, NONE, 1.111.2.2 nl.po, NONE, 1.110.2.2 pl.po, NONE, 1.116.2.2 pt_BR.po, NONE, 1.113.2.2 ro.po, NONE, 1.112.2.2 ru.po, NONE, 1.110.2.2 zh_CN.po, NONE, 1.106.2.2
- Next message: [grisbi-cvs] grisbi installer_strings.nsh, 1.3, 1.4 windows_installer.nsi, 1.4, 1.5
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /cvsroot/grisbi/grisbi/src
In directory sfp-cvsdas-2.v30.ch3.sourceforge.com:/tmp/cvs-serv6049/src
Modified Files:
gsb_form.c
Log Message:
fix bug 1086 in gsb_form.c and minor changes
Index: gsb_form.c
===================================================================
RCS file: /cvsroot/grisbi/grisbi/src/gsb_form.c,v
retrieving revision 1.165
retrieving revision 1.166
diff -u -d -r1.165 -r1.166
--- gsb_form.c 18 May 2010 20:12:54 -0000 1.165
+++ gsb_form.c 20 May 2010 21:14:54 -0000 1.166
@@ -98,6 +98,7 @@
gint new_transaction,
gboolean is_transaction );
static gboolean gsb_form_hide ( void );
+static void gsb_form_set_current_date_into_date_entry ( void );
static gboolean gsb_form_size_allocate ( GtkWidget *widget,
GtkAllocation *allocation,
gpointer null );
@@ -2646,19 +2647,22 @@
modification_fichier ( TRUE );
/* Si l'origine de l'opération est un modèle alors on sélectionne une ligne vide */
- if ( GPOINTER_TO_INT (g_object_get_data ( G_OBJECT ( transaction_form ),
- "transaction_selected_in_form" ) ) == -1 )
- {
- g_object_set_data ( G_OBJECT ( transaction_form ), "transaction_selected_in_form", NULL );
- transaction_list_select ( -1 );
- return FALSE;
- }
-
+ //~ if ( GPOINTER_TO_INT (g_object_get_data ( G_OBJECT ( transaction_form ),
+ //~ "transaction_selected_in_form" ) ) == -1 )
+ //~ {
+ //~ g_object_set_data ( G_OBJECT ( transaction_form ), "transaction_selected_in_form", NULL );
+ //~ transaction_list_select ( -1 );
+ //~ return FALSE;
+ //~ }
/* give the focus to the date widget */
- if ( is_transaction )
- gsb_form_widget_set_focus ( TRANSACTION_FORM_DATE );
- else
- gsb_scheduler_list_edit_transaction (gsb_scheduler_list_get_current_scheduled_number ());
+ //~ if ( is_transaction )
+ //~ {
+ gsb_form_escape_form ( );
+ gsb_form_set_current_date_into_date_entry ( );
+ gsb_form_widget_set_focus ( TRANSACTION_FORM_DATE );
+ //~ }
+ //~ else
+ //~ gsb_scheduler_list_edit_transaction (gsb_scheduler_list_get_current_scheduled_number ());
return FALSE;
}
@@ -3548,6 +3552,24 @@
}
+void gsb_form_set_current_date_into_date_entry ( void )
+{
+ GtkWidget *date_entry;
+
+ date_entry = gsb_form_widget_get_widget ( TRANSACTION_FORM_DATE );
+ if ( gsb_form_widget_check_empty ( date_entry ) )
+ {
+ if ( save_form_date )
+ gtk_entry_set_text ( GTK_ENTRY ( date_entry ),
+ gsb_format_gdate ( save_form_date ) );
+ else
+ gtk_entry_set_text ( GTK_ENTRY ( date_entry ),
+ gsb_date_today ( ) );
+
+ gsb_form_widget_set_empty ( date_entry, FALSE );
+ }
+}
+
/* Local Variables: */
/* c-basic-offset: 4 */
/* End: */
- Previous message: [grisbi-cvs] grisbi/po ChangeLog, NONE, 1.1.26.2 Makefile.in.in, NONE, 1.9.6.2 POTFILES.in, NONE, 1.46.2.2 cs.po, NONE, 1.114.2.2 da.po, NONE, 1.118.2.2 de.po, NONE, 1.194.2.2 el.po, NONE, 1.82.2.2 eo.po, NONE, 1.75.2.2 es.po, NONE, 1.195.2.2 fa.po, NONE, 1.105.2.2 fr.po, NONE, 1.251.2.2 grisbi.pot, NONE, 1.153.2.2 he.po, NONE, 1.111.2.2 it.po, NONE, 1.111.2.2 nl.po, NONE, 1.110.2.2 pl.po, NONE, 1.116.2.2 pt_BR.po, NONE, 1.113.2.2 ro.po, NONE, 1.112.2.2 ru.po, NONE, 1.110.2.2 zh_CN.po, NONE, 1.106.2.2
- Next message: [grisbi-cvs] grisbi installer_strings.nsh, 1.3, 1.4 windows_installer.nsi, 1.4, 1.5
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the cvs
mailing list