After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 573639 - Remove deprecated libgnomeui dependency
Remove deprecated libgnomeui dependency
Status: RESOLVED FIXED
Product: deskbar-applet
Classification: Deprecated
Component: general
2.25.x
Other Linux
: High critical
: ---
Assigned To: Deskbar Applet Maintainer(s)
Deskbar Applet Maintainer(s)
Depends on:
Blocks:
 
 
Reported: 2009-03-01 15:39 UTC by André Klapper
Modified: 2009-07-13 17:33 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description André Klapper 2009-03-01 15:39:21 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)
Comment 1 Sebastian Pölsterl 2009-03-02 10:57:45 UTC
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?
Comment 2 André Klapper 2009-03-04 20:35:17 UTC
Note: When there's a fix - bug 574174 is very similar for gnome-mag.
Comment 3 André Klapper 2009-06-20 16:07:08 UTC
(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?
Comment 4 Sebastian Pölsterl 2009-06-20 19:24:14 UTC
I fixed both issues in master. gnomeui is now gone in deskbar-applet.
Comment 5 Andreas Proschofsky 2009-06-20 20:13:41 UTC
What about the usage of gnome-open in deskbar/handlers/templates.py ? Isn't that also libgnome-usage?

subprocess.Popen(["gnome-open", created_file])
Comment 6 Sebastian Pölsterl 2009-07-13 17:33:00 UTC
Fixed now as well.