GNOME Bugzilla – Bug 573639
Remove deprecated libgnomeui dependency
Last modified: 2009-07-13 17:33:00 UTC
http://live.gnome.org/LibgnomeMustDie $:andre\> grep -r gnome.ui . ./README: * gnome-python-2.10 (modules: gconf, gnome, gnome.ui, gnomevfs) ./deskbar/core/Utils.py: import gnome.ui ./deskbar/core/Utils.py: factory = gnome.ui.ThumbnailFactory(deskbar.ICON_HEIGHT) ./deskbar/core/Utils.py: icon, flags = gnome.ui.icon_lookup(ICON_THEME, factory, ./deskbar/core/Utils.py: gnome.ui.ICON_LOOKUP_FLAGS_SHOW_SMALL_IMAGES_AS_THEMSELVES) ./deskbar/handlers/gdmactions.py: import gnome.ui ./deskbar/handlers/gdmactions.py: client = gnome.ui.master_client() ./deskbar/handlers/gdmactions.py: client.request_save(gnome.ui.SAVE_GLOBAL, ./deskbar/handlers/gdmactions.py: gnome.ui.INTERACT_ANY, ./configure.ac:AM_CHECK_PYMOD(gnome.ui)
gnomeui is used in Utils.py to retrieve thumbnails of files. Afaik, there's no replacement for it, yet. In gdmactions.py it's used to logout/restart/shutdown/switch user. I'm not sure how to replace this one. Maybe with the new gnome session D-Bus API?
Note: When there's a fix - bug 574174 is very similar for gnome-mag.
(In reply to comment #1) > gnomeui is used in Utils.py to retrieve thumbnails of files. Afaik, there's no > replacement for it, yet. Forwarding comment by mclasen on d-d-l today: "Retrieving of thumbnails is covered in gio/gvfs with the file attributes thumbnail::path thumbnail::failed preview::icon What is not covered is creation of thumbnails, for which we probably have to wait for the outcome of the 'thumbnailing service' ideas that are being floated..." > In gdmactions.py it's used to logout/restart/shutdown/switch user. I'm not sure > how to replace this one. Maybe with the new gnome session D-Bus API? Is bug 580423 comment 2 and the follow-ups helpful here?
I fixed both issues in master. gnomeui is now gone in deskbar-applet.
What about the usage of gnome-open in deskbar/handlers/templates.py ? Isn't that also libgnome-usage? subprocess.Popen(["gnome-open", created_file])
Fixed now as well.