hello & threads
- From: "david::" <voiser gmail com>
- To: gtk-app-devel-list gnome org
- Subject: hello & threads
- Date: Sat, 15 Jan 2005 13:27:09 +0100
well i have a problem with an application i'm writing. I have 2
threads. The first one creates an empty window with a button and calls
gtk_main(). The second one does this:
// here i create a string
sprintf(str, "%d\n", i++);
// and here I change the button label
if (window != NULL)
// once a second
well the thread is quite simple. But when i launch the program the
button changes its label 3 or 4 times and then becomes blank.
I well, i have been using gtk for a time and i have never had this
problem. can you tell me what i am doing wrong??
thanks for your help.
] [Thread Prev