[grisbi-cvs] [SCM] grisbi branch, master, updated. 572104804c80db978ecdef38019d805ec796125d
NIEL Gérald
nobody at users.sourceforge.net
Thu Jul 1 22:46:05 CEST 2010
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "grisbi".
The branch, master has been updated
via 572104804c80db978ecdef38019d805ec796125d (commit)
via 292bd12cc004669dddf807482573a211f588bff1 (commit)
via a54e499cb3043fe10edcff26240e223b94712f14 (commit)
from ed253f4689884225c5241e3e30bf4fa5a5c40457 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 572104804c80db978ecdef38019d805ec796125d
Author: Gérald Niel <gerald at macbook-gn.local>
Date: Thu Jul 1 22:41:09 2010 +0200
fixed mistake in previous commit
commit 292bd12cc004669dddf807482573a211f588bff1
Author: Gérald Niel <gerald at macbook-gn.local>
Date: Thu Jul 1 22:33:03 2010 +0200
declare global variable "conf" in only one .c file, declare it extern in headers
commit a54e499cb3043fe10edcff26240e223b94712f14
Author: Rémi Cardona <remi at gentoo.org>
Date: Sun Jun 27 23:13:46 2010 +0200
declare global variable "etat" in only one .c file, declare it extern in headers
-----------------------------------------------------------------------
Changes:
diff --git a/src/parametres.c b/src/parametres.c
index 1b5b274..0103524 100644
--- a/src/parametres.c
+++ b/src/parametres.c
@@ -85,6 +85,10 @@ static gboolean selectionne_liste_preference ( GtkTreeSelection *selection,
/*END_STATIC*/
+/* global "etat" structure shared in the entire program */
+struct gsb_etat_t etat;
+struct gsb_conf_t conf;
+
GtkWidget *fenetre_preferences = NULL;
static GtkTreeStore *preference_tree_model = NULL;
diff --git a/src/structures.h b/src/structures.h
index 00b59ea..eb12bb3 100644
--- a/src/structures.h
+++ b/src/structures.h
@@ -36,7 +36,7 @@
* la partie configurée par la conf
* la partie configurée pendant le fonctionnement de grisbi
* */
-struct
+struct gsb_etat_t
{
time_t modification_fichier;
gint is_archive; /** TRUE if the file is an archive, FALSE else */
@@ -115,7 +115,10 @@ struct
/* variables for the module estimate balance */
gint bet_deb_period;
-} etat;
+};
+
+/* declared in parametres.c */
+extern struct gsb_etat_t etat;
/** structure conf
@@ -123,7 +126,7 @@ struct
* configured by the file grisbi.conf
*
*/
-struct
+struct gsb_conf_t
{
/* geometry */
@@ -171,7 +174,10 @@ struct
gint check_for_archival; /* TRUE if we want to check the number of non archived transactions at the opening */
gint max_non_archived_transactions_for_check; /* the max number of transaction before grisbi warm at the opening */
-} conf;
+};
+
+/* declared in parametres.c */
+extern struct gsb_conf_t conf;
/* structure définissant une association entre un tiers
* et une chaine de recherche contenant un ou des jokers (%)
hooks/post-receive
--
grisbi
More information about the cvs
mailing list