Re: GconfClient and notification?



Dietmar Maurer wrote:
I tried the following to get notifications:

 gconf_client_add_dir (cb->client, cb->path, GCONF_CLIENT_PRELOAD_NONE,
         NULL);

 cb->nid = gconf_client_notify_add (cb->client, cb->path,
        bonobo_config_notify_listeners,
        cb->client, NULL, NULL);

To test it I wrote a program which set a value to 17, then to 18.

When I run the program the first time I get 2 notification - fine.
But if I run the program again I do not receive any event until I
kill gconfd?

I have found the error (something was wrong with
my event loop).

- Dietmar



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