Re: Problem with popup menu cache system

Alexander Larsson wrote:

On Wed, 2006-04-19 at 14:10 +0200, RUAUDEL Frédéric wrote:
So if I'm right, I would like to know if an extension has access to a function of Nautilus which asks it to refresh all the menus ? If not, is it feasible in a near future ?

There is no such function at the moment. I'm not really sure how it
would work either. Its normally the case that nautilus calls into the
module when it needs some information, but what you propose is the
opposite. But this means the extension must be running already so that
it can call nautilus, and that is not typically the case.

How would you detect that the menus need refreshing? I guess it might be
possible to register a source in the mainloop for this.
I have a GUI config tool that allow a user to add new configuration. The configurations are stored into GConf and with the notification mechanism of GConf, my extension knows when new configs are added. Then it would be great that in the notification callback of the extension I can call a nautilus function to ask it to refresh the current selected menus.

Anyway, i'm not conceptually against having this, even if i'm not
immediately sure how it would be implemented. I'll gladly take patches
for it.

I have opened a feature request in Bugzilla, so we can add patches & ideas there :

I'm not sure I'm able to create such a patch but maybe if I have some time to dive into nautilus' code, I will give it a try. Maybe if you could just give me some hints on where the menu caching is managed in the nautilus code (filename and/or some function names), I would appreciate. Meanwhile, I'll glady take patches too :)

Best regards,

fn:Frederic RUAUDEL
org:EMBL Grenoble Outstation;Computer & Network Team
email;internet:ruaudel embl fr
title:System Administrator

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