Re: Help
- From: Rasoul Hajikhani <rhajikhani exchange office etoys com>
- To: Paul Barton-Davis <pbd Op Net>
- Cc: "Florent. Devin" <Florent Devin lifl fr>, gtk-list gnome org
- Subject: Re: Help
- Date: Wed, 22 Nov 2000 15:24:13 -0800 (PST)
Actually, this is what I mean:
1) program starts
2) gtk_init()
3) creates some widgets
4) show() all of the widgets created
5) gtk_run()
.
.
. <some number of seconds>
6) create another widget (which has other widgets in it)
7) show() the other widget
On Wed, 22 Nov 2000, Paul Barton-Davis wrote:
> >> Can any one tell me how to show a widget after a timer runs out but not at
> >> the execution of the application?
> >> -r
> >If I understand you
> >Try to do
> >while (gtk_events_pending())
> > gtk_main_iteration
>
> i don't think that this is what he meant. i think he wants:
>
> 1) program starts
> 2) gtk_init()
> 3) creates some widgets
> 4) show()'s most of the widgets
> 5) gtk_run()
> .
> .
> . <some number of seconds>
> 6) show() some other widgets
>
> the answer is to do this between steps 4 and 5:
>
> gtk_timeout_add (msecs, function, argument);
>
> and within `function':
>
> gint function (void *arg)
> {
> other_widget1->show ();
> other_widget2->show ();
>
> return FALSE; /* don't execute this function again */
> }
>
> --p
>
> _______________________________________________
> gtk-list mailing list
> gtk-list gnome org
> http://mail.gnome.org/mailman/listinfo/gtk-list
>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]