Re: [gtk-list] Re: Update progressbar without gtk_timeout_add
- From: Ramin Motakef <ramin uni-oldenburg de>
- To: gtk-list redhat com
- Subject: Re: [gtk-list] Re: Update progressbar without gtk_timeout_add
- Date: 28 Oct 1999 10:30:36 +0200
Steve Cresawn <scresawn@ufl.edu> 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
>
> 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
>
Hi!
This is what i´ve leadned some days ago from this list:
while (Gtk->events_pending) {
Gtk->main_iteration;
}
works fine.
HTH Ramin
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]