=?us-ascii?Q?Re=3A=20GTK=20Widget=20assertion=20problem?=



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 progressBarHack() looks like this:

void progressBarHack(GtkWidget* bar)
{
    progBar = bar; 
}

progBar is a global variable. I get an assertion error when I try to work with it outside the function where 
the bar was created.
When I use my hack, which does nothing except some pointer work, everything works fine.
I don't know why the hack was needed because I've worked with several widgets with no problems at all. But 
this thing works.

Cheerz,

Michael
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list






[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]