Re: gtk_init() more than once?
- From: Sven Neumann <sven gimp org>
- To: murrayc usa net
- Cc: gtk-devel-list <gtk-devel-list gnome org>
- Subject: Re: gtk_init() more than once?
- Date: 12 Dec 2001 13:05:39 +0100
Hi,
murrayc t-online de (Murray Cumming) writes:
> Is it OK to call gtk_init() multiple times?
can't read the source? It boils down to:
static gint gtk_initialized = FALSE;
void
gtk_init (int *argc, char ***argv)
{
gtk_init_check (argc, argv);
}
gboolean
gtk_init_check (int *argc,
char ***argv)
{
if (gtk_initialized)
return TRUE;
/* do lots of stuff */
gtk_initialized = TRUE;
}
that should answer your question. However it opens the new
question why gtk_initialized is not declared as gboolean.
I think it should be.
Salut, Sven
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]