[grisbi-cvs] grisbi/src affichage_liste.c, 1.110, 1.111 gsb_data_payment.c, 1.10, 1.11 gsb_form.c, 1.126, 1.127 gsb_form_widget.c, 1.34, 1.35
Pierre Biava
pbiava at users.sourceforge.net
Sat Jun 27 17:10:54 CEST 2009
- Previous message: [grisbi-cvs] grisbi/po eo.po, NONE, 1.1 cs.po, 1.38, 1.39 da.po, 1.45, 1.46 de.po, 1.93, 1.94 el.po, 1.9, 1.10 es.po, 1.85, 1.86 fa.po, 1.32, 1.33 fr.po, 1.162, 1.163 grisbi.pot, 1.80, 1.81 he.po, 1.38, 1.39 it.po, 1.38, 1.39 nl.po, 1.37, 1.38 pl.po, 1.43, 1.44 pt_BR.po, 1.40, 1.41 ro.po, 1.38, 1.39 ru.po, 1.37, 1.38 zh_CN.po, 1.32, 1.33
- Next message: [grisbi-cvs] grisbi autogen.sh,1.13,1.14
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /cvsroot/grisbi/grisbi/src
In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv32512/src
Modified Files:
affichage_liste.c gsb_data_payment.c gsb_form.c
gsb_form_widget.c
Log Message:
add esperanto language
Index: affichage_liste.c
===================================================================
RCS file: /cvsroot/grisbi/grisbi/src/affichage_liste.c,v
retrieving revision 1.110
retrieving revision 1.111
diff -u -d -r1.110 -r1.111
--- affichage_liste.c 17 Jun 2009 19:39:50 -0000 1.110
+++ affichage_liste.c 27 Jun 2009 15:10:52 -0000 1.111
@@ -50,6 +50,8 @@
static gboolean gsb_transactions_list_display_change_max_items ( GtkWidget *entry,
gpointer null );
static void gsb_transactions_list_display_show_gives_balance ( void );
+static gboolean gsb_transactions_list_display_update_auto_completion ( GtkWidget *button,
+ GtkWidget *checkbutton );
static gboolean gsb_transactions_list_display_update_combofix ( void );
/*END_STATIC*/
@@ -444,22 +446,26 @@
GtkWidget *onglet_form_completion ( void )
{
GtkWidget *vbox_pref, *hbox, *label, *entry;
+ GtkWidget *button;
vbox_pref = new_vbox_with_title_and_icon ( _("Form completion"), "form.png" );
- gtk_box_pack_start ( GTK_BOX ( vbox_pref ),
- gsb_automem_checkbutton_new (_("Automatic completion of the payees"),
- &etat.automatic_completion_payee,
- NULL, NULL),
- FALSE, FALSE, 0 );
+ button = gsb_automem_checkbutton_new (
+ _("Limit the filling with payees belonging to the current account"),
+ &etat.limit_completion_to_current_account,
+ NULL, NULL);
+ gtk_widget_set_sensitive ( button, etat.automatic_completion_payee );
gtk_box_pack_start ( GTK_BOX ( vbox_pref ),
gsb_automem_checkbutton_new (
- _("Limit the filling with payees belonging to the current account"),
- &etat.limit_completion_to_current_account,
- NULL, NULL),
+ _("Automatic filling transactions from payee"),
+ &etat.automatic_completion_payee,
+ G_CALLBACK ( gsb_transactions_list_display_update_auto_completion ),
+ button ),
FALSE, FALSE, 0 );
+ gtk_box_pack_start ( GTK_BOX ( vbox_pref ),button, FALSE, FALSE, 0 );
+
gtk_box_pack_start ( GTK_BOX (vbox_pref),
gsb_automem_checkbutton_new (_("Mix credit/debit categories"),
&etat.combofix_mixed_sort,
@@ -598,7 +604,11 @@
}
-
+/**
+ * Appellée lorsqu'on coche la case afficher le solde à aujourd'hui
+ *
+ *
+ * */
void gsb_transactions_list_display_show_gives_balance ( void )
{
gint account_number;
@@ -608,6 +618,27 @@
if ( account_number != -1 )
gsb_transactions_list_update_tree_view ( account_number, TRUE );
}
+
+
+/**
+ * Appellée lorsqu'on coche la case
+ * "Automatic filling transactions from payee"
+ *
+ * \param
+ * \param
+ *
+ * \return FALSE
+ * */
+gboolean gsb_transactions_list_display_update_auto_completion ( GtkWidget *checkbutton,
+ GtkWidget *button )
+{
+ if ( gtk_toggle_button_get_active ( GTK_TOGGLE_BUTTON ( checkbutton ) ) )
+ gtk_widget_set_sensitive ( button, TRUE );
+ else
+ gtk_widget_set_sensitive ( button, FALSE );
+
+ return FALSE;
+}
/* Local Variables: */
/* c-basic-offset: 4 */
/* End: */
Index: gsb_form.c
===================================================================
RCS file: /cvsroot/grisbi/grisbi/src/gsb_form.c,v
retrieving revision 1.126
retrieving revision 1.127
diff -u -d -r1.126 -r1.127
--- gsb_form.c 7 Jun 2009 11:48:11 -0000 1.126
+++ gsb_form.c 27 Jun 2009 15:10:52 -0000 1.127
@@ -842,6 +842,9 @@
gsb_form_widget_get_widget (TRANSACTION_FORM_CHEQUE) ),
gsb_data_transaction_get_method_of_payment_content (
transaction_number) );
+ printf ("method_of_payment_content = %s\n",
+ gsb_data_transaction_get_method_of_payment_content (
+ transaction_number) );
gtk_widget_show (gsb_form_widget_get_widget (
TRANSACTION_FORM_CHEQUE) );
}
@@ -1232,8 +1235,10 @@
* and contra, they know themselves if they have to be shown or not,
* so just let them */
if (element != TRANSACTION_FORM_TYPE
- &&
- element != TRANSACTION_FORM_CONTRA )
+ &&
+ element != TRANSACTION_FORM_CONTRA
+ &&
+ element != TRANSACTION_FORM_CHEQUE )
gtk_widget_show (widget);
}
gsb_form_clean (account_number);
@@ -1930,7 +1935,7 @@
GtkWidget *widget;
element_number = GPOINTER_TO_INT (ptr_origin);
-
+printf ("passage par button_press_event element_number = %d\n", element_number);
/* we do the first part only if we click on the form directly, without double click or
* entry in the transaction list,
* in that case, transaction_number_in_form is 0 and set to -1, as a white line */
Index: gsb_form_widget.c
===================================================================
RCS file: /cvsroot/grisbi/grisbi/src/gsb_form_widget.c,v
retrieving revision 1.34
retrieving revision 1.35
diff -u -d -r1.34 -r1.35
--- gsb_form_widget.c 7 Jun 2009 11:48:11 -0000 1.34
+++ gsb_form_widget.c 27 Jun 2009 15:10:52 -0000 1.35
@@ -771,7 +771,6 @@
{
old_credit = g_strdup ( gtk_entry_get_text ( GTK_ENTRY (
gsb_form_widget_get_widget ( TRANSACTION_FORM_CREDIT ) ) ) );
- printf ("old_credit = %s\n", old_credit );
gtk_entry_set_text ( GTK_ENTRY ( widget ),
gsb_form_widget_get_name ( TRANSACTION_FORM_CREDIT ) );
gsb_form_widget_set_empty ( widget, TRUE );
@@ -818,7 +817,6 @@
{
old_debit = g_strdup ( gtk_entry_get_text ( GTK_ENTRY (
gsb_form_widget_get_widget ( TRANSACTION_FORM_DEBIT ) ) ) );
- printf ("old_debit = %s\n", old_debit );
gtk_entry_set_text ( GTK_ENTRY (widget),
gsb_form_widget_get_name (TRANSACTION_FORM_DEBIT));
gsb_form_widget_set_empty ( widget, TRUE );
Index: gsb_data_payment.c
===================================================================
RCS file: /cvsroot/grisbi/grisbi/src/gsb_data_payment.c,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -d -r1.10 -r1.11
--- gsb_data_payment.c 16 Nov 2008 20:34:25 -0000 1.10
+++ gsb_data_payment.c 27 Jun 2009 15:10:52 -0000 1.11
@@ -35,6 +35,7 @@
#include "./utils_str.h"
#include "./gsb_data_account.h"
#include "./include.h"
+#include "./erreur.h"
/*END_INCLUDE*/
@@ -645,12 +646,12 @@
gint gsb_data_payment_get_last_number ( gint payment_number )
{
struct_payment *payment;
-
+devel_debug (NULL);
payment = gsb_data_payment_get_structure ( payment_number );
if (!payment)
return -1;
-
+printf ("last_number = %d\n", payment -> last_number);
return payment -> last_number;
}
@@ -667,7 +668,8 @@
gint last_number )
{
struct_payment *payment;
-
+devel_debug_int (last_number);
+ printf ("last_number = %d\n", last_number);
payment = gsb_data_payment_get_structure ( payment_number );
if (!payment)
- Previous message: [grisbi-cvs] grisbi/po eo.po, NONE, 1.1 cs.po, 1.38, 1.39 da.po, 1.45, 1.46 de.po, 1.93, 1.94 el.po, 1.9, 1.10 es.po, 1.85, 1.86 fa.po, 1.32, 1.33 fr.po, 1.162, 1.163 grisbi.pot, 1.80, 1.81 he.po, 1.38, 1.39 it.po, 1.38, 1.39 nl.po, 1.37, 1.38 pl.po, 1.43, 1.44 pt_BR.po, 1.40, 1.41 ro.po, 1.38, 1.39 ru.po, 1.37, 1.38 zh_CN.po, 1.32, 1.33
- Next message: [grisbi-cvs] grisbi autogen.sh,1.13,1.14
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the cvs
mailing list