Re: [Tracker] Possible Tracker applet /preferences enhancements



Jamie McCracken wrote:
On Mon, 2008-04-28 at 14:38 +0200, Jaap A. Haitsma wrote:
Hi,

Currently tracker has two preference dialogs: one for the indexer and
one for the applet. Furthermore it's also not that easy to add the
track-applet to the panel (you need to start it from the command line)

My suggestion would be to merge the preferences of the applet into the
one of the indexer. Furthermore there could also be an option in the
preferences to add the applet to the panel


the only reason we did not do this is that it would require more work in
the applet

we currently use dbus to notify daemon of changes in tracker-prefs so we
would have to do the same for the applet

patches welcome for above though

With the new DBus glib bindings work I have added to the indexer-split
branch, you can simply take a GObject and make its API and properties
available over DBus. I have considered doing this for the config
options. This has the following advantages:

- The daemon can listen for changes to properties (set my some client
applet or whatever) and act on those in real time instead of having to
be restarted.
- The daemon/preferences/applets/etc all use the same config interface
and API instead of having to have an additional API to set preferences
as we do now, which is quite unnecessary.

To do this wouldn't take much work at all. It *would* take work to make
the daemon update in real time

  i.e. adding:
    g_signal_connect (config_object,
                      "notify::enable-indexing",
                      callback,
                      user_data);

but it doesn't do that now anyway, so ultimately we could just do it in
stages and still have the preferences app restart the daemon for the
time being as we do anyway.

-- 
Regards,
Martyn



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