Update progressbar without gtk_timeout_add




Is it possible to update a progressbar without using a gtk_timeout_add
??

I want to update a progressbar when a spinbutton is changed.

gtk_signal_connect(GTKOBJECT(adj),"value_changed",
      GTK_SIGNAL_FUNC(bar_da1),(gpointer) spinbutton_da1);

And in bar_da1 i have :

adj=GTK_PROGRESS(data)->adjustment;
gtk_progress_set_value(GTK_PROGRESS(data),new_val);

But the progressbar does not work...

-- 
My webserver http://hihihi.penguinpowered.com
My home page at my provider http://www.casema.net/~hihihi



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