Re: GTK Widget assertion problem

2010-06-11 Thread David Nečas
On Thu, Jun 10, 2010 at 06:39:30PM +0200, Michael T. wrote: Yes it does. I tried 10 other ways and they didn't work. This one works perfectly (so far). ... All initialization was shown in the previous examples. All my initializations are taken directly from the GTK+ documentation and I

Re: GTK Widget assertion problem

2010-06-11 Thread Michael T .
Hi, thank you all for input. Le 10/06/2010, Shawn Bakhtiar shashan...@hotmail.com a écrit : 2.2) There is probably a memory leak somewhere. Where the structure of the application (the compiled code) puts that pointer outside the reach of the overflow so when you re-wrote it, it magically

Re: GTK Widget assertion problem

2010-06-10 Thread Michael T .
In case anyone's interested I solved the problem with a little hack. I create the progress bar this way: progBar = gtk_progress_bar_new(); gtk_box_pack_start (GTK_BOX (vboxGr), GTK_PROGRESS_BAR(progBar), FALSE, FALSE, 0); gtk_widget_show (progBar)); progressBarHack(progBar); the function

Re: GTK Widget assertion problem

2010-06-10 Thread David Nečas
On Thu, Jun 10, 2010 at 01:31:33PM +0200, Michael T. wrote: In case anyone's interested I solved the problem with a little hack. I create the progress bar this way: progBar = gtk_progress_bar_new(); gtk_box_pack_start (GTK_BOX (vboxGr), GTK_PROGRESS_BAR(progBar), FALSE, FALSE, 0);

Re: GTK Widget assertion problem

2010-06-10 Thread Michael T .
Hi, Hello, this all looks like utter voodoo. Yes it does. I tried 10 other ways and they didn't work. This one works perfectly (so far). You have probably a trivial bug somewhere (elsewhere) in your code, maybe some extern/static/initialization confusion? All initialization was shown

GTK Widget assertion problem

2010-06-09 Thread Michael T .
Hi, I have a problem, when I try to access the GTK progress bar out of the function it was created in. I have a global variable GtkWidget *progressBar; so that I can access the progress bar from all the functions and different files in the project. When I initilize the bar and call functions