Re: [gtk-list] Re: 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...
>
> FAQ question 5.11. (On www.gtk.org or in the GTK+ distribution)
>
> Hope this helps,
>                                         Owen

Could someone address how this would be done using the Gtk-Perl bindings?  I'm
having some trouble getting control returned to main while I'm waiting for a
system call to complete.
Thanks,
Steve



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