[grisbi-cvs] grisbi/src gsb_form_scheduler.c,1.30,1.31
Pierre Biava
pbiava at users.sourceforge.net
Sun Apr 26 17:41:24 CEST 2009
- Previous message: [grisbi-cvs] grisbi/src gsb_scheduler_list.c,1.59,1.60
- Next message: [grisbi-cvs] grisbi/src accueil.c, 1.195, 1.196 affichage.c, 1.154, 1.155 affichage_liste.c, 1.104, 1.105 balance_estimate_tab.c, 1.20, 1.21 barre_outils.c, 1.123, 1.124 categories_onglet.c, 1.191, 1.192 dialog.c, 1.69, 1.70 erreur.c, 1.90, 1.91 etats_affiche.c, 1.104, 1.105 etats_calculs.c, 1.130, 1.131 etats_config.c, 1.168, 1.169 etats_gtktable.c, 1.96, 1.97 etats_onglet.c, 1.132, 1.133 export.c, 1.24, 1.25 fenetre_principale.c, 1.109, 1.110 file_obfuscate.c, 1.9, 1.10 go-optionmenu.c, 1.9, 1.10 gsb_account.c, 1.42, 1.43 gsb_account_property.c, 1.33, 1.34 gsb_archive_config.c, 1.20, 1.21 gsb_assistant.c, 1.44, 1.45 gsb_assistant_archive_export.c, 1.15, 1.16 gsb_assistant_file.c, 1.16, 1.17 gsb_assistant_first.c, 1.22, 1.23 gsb_autofunc.c, 1.19, 1.20 gsb_bank.c, 1.19, 1.20 gsb_calendar_entry.c, 1.23, 1.24 gsb_crypt.c, 1.14, 1.15 gsb_currency.c, 1.38, 1.39 gsb_currency_config.c, 1.48, 1.49 gsb_data_account.c, 1.68, 1.69 gsb_data_archive_store.c, 1.12, 1.13 gsb_data_budget.c, 1.47, 1.48 gsb_data_category.c, 1.66, 1.67 gsb_data_currency_link.c, 1.1 3, 1.14 gsb_data_payee.c, 1.45, 1.46 gsb_data_payee.h, 1.21, 1.22 gsb_data_reconcile.c, 1.15, 1.16 gsb_data_report_amout_comparison.c, 1.12, 1.13 gsb_data_scheduled.c, 1.24, 1.25 gsb_data_transaction.c, 1.58, 1.59 gsb_debug.c, 1.9, 1.10 gsb_file.c, 1.43, 1.44 gsb_file_config.c, 1.73, 1.74 gsb_file_load.c, 1.165, 1.166 gsb_file_save.c, 1.122, 1.123 gsb_file_util.c, 1.37, 1.38 gsb_form.c, 1.117, 1.118 gsb_form.h, 1.25, 1.26 gsb_form_config.c, 1.27, 1.28 gsb_form_scheduler.c, 1.31, 1.32 gsb_form_scheduler.h, 1.3, 1.4 gsb_form_transaction.c, 1.40, 1.41 gsb_form_transaction.h, 1.9, 1.10 gsb_payment_method_config.c, 1.32, 1.33 gsb_plugins.c, 1.18, 1.19 gsb_reconcile.c, 1.33, 1.34 gsb_reconcile_config.c, 1.25, 1.26 gsb_scheduler_list.c, 1.60, 1.61 gsb_select_icon.c, 1.11, 1.12 gsb_status.c, 1.17, 1.18 gsb_transactions_list.c, 1.157, 1.158 gsb_transactions_list.h, 1.32, 1.33 gtk_combofix.c, 1.59, 1.60 help.c, 1.84, 1.85 import.c, 1.273, 1.274 imputation_budgetaire.c, 1.154, 1.155 main.c, 1.139, 1.140 menu.c, 1.144, 1.145 meta_budgetary.c, 1.34, 1.35 me ta_categories.c, 1.45, 1.46 meta_payee.c, 1.31, 1.32 metatree.c, 1.132, 1.133 metatree.h, 1.42, 1.43 navigation.c, 1.116, 1.117 parametres.c, 1.190, 1.191 print_config.c, 1.43, 1.44 print_dialog_config.c, 1.6, 1.7 print_report.c, 1.8, 1.9 tiers_onglet.c, 1.157, 1.158 traitement_variables.c, 1.170, 1.171 transaction_list.c, 1.31, 1.32 utils.c, 1.50, 1.51 utils_buttons.c, 1.49, 1.50 utils_editables.c, 1.29, 1.30 utils_files.c, 1.38, 1.39 utils_operations.c, 1.30, 1.31
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /cvsroot/grisbi/grisbi/src
In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv16805
Modified Files:
gsb_form_scheduler.c
Log Message:
fix bug 542
Index: gsb_form_scheduler.c
===================================================================
RCS file: /cvsroot/grisbi/grisbi/src/gsb_form_scheduler.c,v
retrieving revision 1.30
retrieving revision 1.31
diff -u -d -r1.30 -r1.31
--- gsb_form_scheduler.c 7 Jan 2009 21:18:55 -0000 1.30
+++ gsb_form_scheduler.c 26 Apr 2009 15:41:22 -0000 1.31
@@ -119,7 +119,9 @@
/**
* create the scheduled part : that widgets are created at the beginning
* and normally never destroyed, they are showed only for
- * scheduled transactions
+ * scheduled transactions
+ * Cela ne fonctionne pas : tous les widgets sont détruits par la
+ * fonction gsb_form_create_widgets ( )
*
* \param table a GtkTable with the dimension SCHEDULED_HEIGHT*SCHEDULED_WIDTH to be filled
*
@@ -135,7 +137,7 @@
/* just in case... be sure that not created */
if (scheduled_element_list)
- return FALSE;
+ gsb_form_scheduler_free_list ( );
/* check the dimensions,
* if problem give a warning message but continue the program with changing the values */
@@ -147,10 +149,11 @@
||
row != SCHEDULED_HEIGHT )
{
- warning_debug ( _("gsb_form_scheduler_create is called with a bad table,\nthe number of rows or columns is not good.\nThe function will resize the table to the correct values but should check that warning."));
- gtk_table_resize ( GTK_TABLE (table),
- SCHEDULED_HEIGHT,
- SCHEDULED_WIDTH );
+ warning_debug ( _("gsb_form_scheduler_create is called with a bad table,\n"
+ "the number of rows or columns is not good.\n"
+ "The function will resize the table to the correct values but "
+ "should check that warning."));
+ gtk_table_resize ( GTK_TABLE (table), SCHEDULED_HEIGHT, SCHEDULED_WIDTH );
}
/* ok, now fill the form
@@ -162,7 +165,8 @@
GtkWidget *widget = NULL;
const gchar *tooltip_text = NULL;
gchar *text_auto [] = { _("Manual"), _("Automatic"), NULL };
- gchar *text_frequency [] = { _("Once"), _("Weekly"), _("Monthly"), _("two months"), _("trimester"), _("Yearly"), _("Custom"), NULL };
+ gchar *text_frequency [] = { _("Once"), _("Weekly"), _("Monthly"), _("two months"),
+ _("trimester"), _("Yearly"), _("Custom"), NULL };
gchar *text_frequency_user [] = { _("Days"), _("Weeks"), _("Months"), _("Years"), NULL };
element_number = row*SCHEDULED_WIDTH + column;
@@ -170,38 +174,37 @@
switch ( element_number )
{
case SCHEDULED_FORM_ACCOUNT:
- widget = gsb_account_create_combo_list ((GtkSignalFunc) gsb_form_scheduler_change_account, NULL, FALSE);
- gtk_combo_box_set_active ( GTK_COMBO_BOX (widget),
- 0 );
+ widget = gsb_account_create_combo_list ((GtkSignalFunc)
+ gsb_form_scheduler_change_account, NULL, FALSE);
+ gtk_combo_box_set_active ( GTK_COMBO_BOX (widget), 0 );
tooltip_text = SPACIFY(_("Choose the account"));
break;
case SCHEDULED_FORM_AUTO:
- widget = gsb_combo_box_new_with_index ( text_auto,
- NULL, NULL );
+ widget = gsb_combo_box_new_with_index ( text_auto, NULL, NULL );
tooltip_text = SPACIFY(_("Automatic/manual scheduled transaction"));
break;
case SCHEDULED_FORM_FREQUENCY_BUTTON:
widget = gsb_combo_box_new_with_index ( text_frequency,
- G_CALLBACK (gsb_form_scheduler_frequency_button_changed), NULL );
+ G_CALLBACK (gsb_form_scheduler_frequency_button_changed), NULL );
tooltip_text = SPACIFY(_("Frequency"));
break;
case SCHEDULED_FORM_LIMIT_DATE:
widget = gsb_calendar_entry_new (FALSE);
g_signal_connect ( G_OBJECT (widget),
- "button-press-event",
- G_CALLBACK (gsb_form_scheduler_button_press_event),
- GINT_TO_POINTER (element_number));
+ "button-press-event",
+ G_CALLBACK (gsb_form_scheduler_button_press_event),
+ GINT_TO_POINTER (element_number));
g_signal_connect ( G_OBJECT (widget),
- "focus-in-event",
- G_CALLBACK (gsb_form_entry_get_focus),
- GINT_TO_POINTER (element_number));
+ "focus-in-event",
+ G_CALLBACK (gsb_form_entry_get_focus),
+ GINT_TO_POINTER (element_number));
g_signal_connect_after ( G_OBJECT (widget),
- "focus-out-event",
- G_CALLBACK (gsb_form_scheduler_entry_lose_focus),
- GINT_TO_POINTER (element_number));
+ "focus-out-event",
+ G_CALLBACK (gsb_form_scheduler_entry_lose_focus),
+ GINT_TO_POINTER (element_number));
tooltip_text = SPACIFY(_("Frequency"));
break;
@@ -218,34 +221,35 @@
}
if (!widget)
- continue;
+ continue;
if (tooltip_text)
- gtk_widget_set_tooltip_text ( GTK_WIDGET (widget),
- tooltip_text);
+ gtk_widget_set_tooltip_text ( GTK_WIDGET (widget),
+ tooltip_text);
/* save the element */
element = g_malloc0 (sizeof (scheduled_element));
element -> element_number = element_number;
element -> element_widget = widget;
scheduled_element_list = g_slist_append ( scheduled_element_list,
- element );
+ element );
/* set the key signal */
g_signal_connect ( G_OBJECT (widget),
- "key-press-event",
- G_CALLBACK (gsb_form_key_press_event),
- GINT_TO_POINTER (SCHEDULED_FORM_ACCOUNT));
+ "key-press-event",
+ G_CALLBACK (gsb_form_key_press_event),
+ GINT_TO_POINTER (SCHEDULED_FORM_ACCOUNT));
/* set in the form */
gtk_table_attach ( GTK_TABLE (table),
- widget,
- column, column+1,
- row, row+1,
- GTK_EXPAND | GTK_FILL,
- GTK_EXPAND | GTK_FILL,
- 0, 0);
+ widget,
+ column, column+1,
+ row, row+1,
+ GTK_EXPAND | GTK_FILL,
+ GTK_EXPAND | GTK_FILL,
+ 0, 0);
}
+ gsb_form_scheduler_clean ( );
return FALSE;
}
- Previous message: [grisbi-cvs] grisbi/src gsb_scheduler_list.c,1.59,1.60
- Next message: [grisbi-cvs] grisbi/src accueil.c, 1.195, 1.196 affichage.c, 1.154, 1.155 affichage_liste.c, 1.104, 1.105 balance_estimate_tab.c, 1.20, 1.21 barre_outils.c, 1.123, 1.124 categories_onglet.c, 1.191, 1.192 dialog.c, 1.69, 1.70 erreur.c, 1.90, 1.91 etats_affiche.c, 1.104, 1.105 etats_calculs.c, 1.130, 1.131 etats_config.c, 1.168, 1.169 etats_gtktable.c, 1.96, 1.97 etats_onglet.c, 1.132, 1.133 export.c, 1.24, 1.25 fenetre_principale.c, 1.109, 1.110 file_obfuscate.c, 1.9, 1.10 go-optionmenu.c, 1.9, 1.10 gsb_account.c, 1.42, 1.43 gsb_account_property.c, 1.33, 1.34 gsb_archive_config.c, 1.20, 1.21 gsb_assistant.c, 1.44, 1.45 gsb_assistant_archive_export.c, 1.15, 1.16 gsb_assistant_file.c, 1.16, 1.17 gsb_assistant_first.c, 1.22, 1.23 gsb_autofunc.c, 1.19, 1.20 gsb_bank.c, 1.19, 1.20 gsb_calendar_entry.c, 1.23, 1.24 gsb_crypt.c, 1.14, 1.15 gsb_currency.c, 1.38, 1.39 gsb_currency_config.c, 1.48, 1.49 gsb_data_account.c, 1.68, 1.69 gsb_data_archive_store.c, 1.12, 1.13 gsb_data_budget.c, 1.47, 1.48 gsb_data_category.c, 1.66, 1.67 gsb_data_currency_link.c, 1.1 3, 1.14 gsb_data_payee.c, 1.45, 1.46 gsb_data_payee.h, 1.21, 1.22 gsb_data_reconcile.c, 1.15, 1.16 gsb_data_report_amout_comparison.c, 1.12, 1.13 gsb_data_scheduled.c, 1.24, 1.25 gsb_data_transaction.c, 1.58, 1.59 gsb_debug.c, 1.9, 1.10 gsb_file.c, 1.43, 1.44 gsb_file_config.c, 1.73, 1.74 gsb_file_load.c, 1.165, 1.166 gsb_file_save.c, 1.122, 1.123 gsb_file_util.c, 1.37, 1.38 gsb_form.c, 1.117, 1.118 gsb_form.h, 1.25, 1.26 gsb_form_config.c, 1.27, 1.28 gsb_form_scheduler.c, 1.31, 1.32 gsb_form_scheduler.h, 1.3, 1.4 gsb_form_transaction.c, 1.40, 1.41 gsb_form_transaction.h, 1.9, 1.10 gsb_payment_method_config.c, 1.32, 1.33 gsb_plugins.c, 1.18, 1.19 gsb_reconcile.c, 1.33, 1.34 gsb_reconcile_config.c, 1.25, 1.26 gsb_scheduler_list.c, 1.60, 1.61 gsb_select_icon.c, 1.11, 1.12 gsb_status.c, 1.17, 1.18 gsb_transactions_list.c, 1.157, 1.158 gsb_transactions_list.h, 1.32, 1.33 gtk_combofix.c, 1.59, 1.60 help.c, 1.84, 1.85 import.c, 1.273, 1.274 imputation_budgetaire.c, 1.154, 1.155 main.c, 1.139, 1.140 menu.c, 1.144, 1.145 meta_budgetary.c, 1.34, 1.35 me ta_categories.c, 1.45, 1.46 meta_payee.c, 1.31, 1.32 metatree.c, 1.132, 1.133 metatree.h, 1.42, 1.43 navigation.c, 1.116, 1.117 parametres.c, 1.190, 1.191 print_config.c, 1.43, 1.44 print_dialog_config.c, 1.6, 1.7 print_report.c, 1.8, 1.9 tiers_onglet.c, 1.157, 1.158 traitement_variables.c, 1.170, 1.171 transaction_list.c, 1.31, 1.32 utils.c, 1.50, 1.51 utils_buttons.c, 1.49, 1.50 utils_editables.c, 1.29, 1.30 utils_files.c, 1.38, 1.39 utils_operations.c, 1.30, 1.31
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the cvs
mailing list