Hi,
As explained in my previous mail: "[PATCH] Jump To button in bookmark
dialog always open browers window" that patch also solves some critical
messages which were caused by the fact that nautilus_application_new is
called again.
Correct me if I'm wrong but I guess that per process there should be
only one instance of a NautilusApplication.
If so then I think it would be a good idea to make a singleton [1] of
NautilusApplication. This will guarantee that there is only one instance
of NautilusApplication and also access to the application object will be
very simple. You can just call nautilus_application_get_instance as soon
as you need the application object.
As far as I can see also of the NautilusShell there is only one object
needed.
Do the maintainers also think making a singleton of NautilusApplication
is a good idea?
Jaap
[1] http://en.wikipedia.org/wiki/Singleton_pattern
--
nautilus-list mailing list
[email protected]
http://mail.gnome.org/mailman/listinfo/nautilus-list