Re: Gconf without Gnome
- From: Havoc Pennington <hp redhat com>
- To: Paul Coates <Paul Coates ncl ac uk>
- Cc: gconf-list gnome org
- Subject: Re: Gconf without Gnome
- Date: 01 Apr 2002 15:28:38 -0500
Paul Coates <Paul Coates ncl ac uk> writes:
> I don't see how to get the child process to listen to gconf directly
> without having a gtk event loop. The child is something like
>
> while(1)
> {
> sz = read(STDIN_FILENO, str, BUFSIZE);
> if (sz>0)
> {
> // handle new task
> write(STDOUT_FILENO, str, strlen(str)+1);
> }
> usleep(2000000);
> }
>
> so what do I add to check for notify events without using gtk?
>
It isn't the GTK main loop, it's the glib main loop. So your child
could run the glib main loop and still use only glib. (If it's a pain
to code that way you may not want to do it, but you could do it.)
Havoc
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]