[luther maxime u-strasbg fr: Re: [gtk-list] interactive gtk_main.]
- From: Sven LUTHER <luther maxime u-strasbg fr>
- To: gtk-list redhat com
- Subject: [luther@maxime.u-strasbg.fr: Re: [gtk-list] interactive gtk_main.]
- Date: Tue, 12 Oct 1999 10:46:51 +0200
On Tue, Oct 12, 1999 at 10:33:46AM +0200, Arjan J. Molenaar wrote:
>
> > Hello, ...
> >
> > What is the best way to have a gtk_main function that returns
> > control to the
> > calling function which could then affect the interface.
> >
> > What comes to mind first is to have a thread running the
> > gtk_main function and
> > another one continuing the calling function.
> >
> > Is this possible ?
> > Are there any sample exemples of this floating somewehre ?
> >
> > Are there aother possibilities ?
> >
> > are all the gtk_main_xxx functions documented somewhere ?
> >
> > Friendly,
> >
> > Sven LUTHER
> >
> Hi,
>
> Couldn't you use idle functions for whatever-you-wanna-do? Or maybe a timeout ? This way you don't have to exit the main loop and you don't have to do threading stuff.
Where is idle_xxx documented ? what do they do ? And what is gtk_main_quit for
???
Sure i could do something like that, but what i need is something very simple,
what i wanted to do is that :
int main (int argc, char**argv)
{
...
gtk_init(...);
my_window = ...
gtk_main_interactiv ();
do some drawing in said window;
gtk_exit ();
}
This way i don't have to reopen a widnow everytime i want to draw a thing, and
i don't have to write a function that i passas parameter to another function.
Some easy stuff for beginners.
Friendly,
Sven LUTHER
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]