Re: Update progressbar without gtk_timeout_add




hihihi <hihihi@casema.net> writes:

> 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...

FAQ question 5.11. (On www.gtk.org or in the GTK+ distribution)

Hope this helps,
                                        Owen



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