Start ids with the number one. Allows zero to be used to indicate

that a id is not set.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/branches/gnucash-gnome2-dev@9364 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
David Hampton
2003-09-20 03:46:38 +00:00
parent 5299b12c7a
commit c4e7a80851
2 changed files with 2 additions and 2 deletions

View File

@@ -64,7 +64,7 @@ typedef struct
/** Static Variables ************************************************/
static guint suspend_counter = 0;
static gint next_component_id = 0;
static gint next_component_id = 1;
static GList *components = NULL;
static ComponentEventInfo changes = { NULL, NULL, FALSE };

View File

@@ -41,7 +41,7 @@ typedef struct
/** Static Variables ************************************************/
static guint suspend_counter = 0;
static gint next_handler_id = 0;
static gint next_handler_id = 1;
static GList *handlers = NULL;
/* This static indicates the debugging module that this .o belongs to. */