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 661044 - Follow the icon-theme/naming-specification
Follow the icon-theme/naming-specification
Status: RESOLVED OBSOLETE
Product: NetworkManager
Classification: Platform
Component: nm-applet
0.9.x
Other Linux
: Normal blocker
: ---
Assigned To: Dan Williams
NetworkManager maintainer(s)
Depends on:
Blocks: nm-patch
 
 
Reported: 2011-10-06 02:56 UTC by orbisvicis
Modified: 2020-11-12 14:27 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Split status icons and apps icons (757.60 KB, patch)
2011-10-08 23:08 UTC, orbisvicis
none Details | Review
Fix typo and update configure.ac for split icon layout (1.61 KB, patch)
2011-10-09 19:18 UTC, orbisvicis
none Details | Review
Add nm-stage* status icons originally missed (18.93 KB, patch)
2011-10-09 19:19 UTC, orbisvicis
none Details | Review

Description orbisvicis 2011-10-06 02:56:54 UTC
Lets split the icons into those used for the tray, and those used for the applet-interface.
The icons for the applet-interface remain where they are: "../scalable/apps/"
The icons for the status tray go to: "../scalable/status/"

The guidelines are followed, and everyone is happy!

Use case: users with a white theme and a black status tray, or a black theme and a white status tray. This way, icon themes can customize the status icon color *and* the applet icon color differently.
Comment 1 Matthias Clasen 2011-10-07 13:02:47 UTC
Icon themes can customize whatever they want, regardless of where the icon sits in the file system.
Comment 2 orbisvicis 2011-10-08 23:08:43 UTC
Created attachment 198641 [details] [review]
Split status icons and apps icons

Untested, but should work. Doesn't remove obsolete application icons (that are now status icons).
Comment 3 orbisvicis 2011-10-08 23:10:32 UTC
But themes can't customize the same icon with different appearances. Hence attached patch.
Comment 4 orbisvicis 2011-10-09 19:18:56 UTC
Created attachment 198665 [details] [review]
Fix typo and update configure.ac for split icon layout
Comment 5 orbisvicis 2011-10-09 19:19:38 UTC
Created attachment 198666 [details] [review]
Add nm-stage* status icons originally missed
Comment 6 orbisvicis 2011-10-09 19:32:00 UTC
Tested and work as expected, with all three patches (above) applied.

The general idea is to
 . Append _status to GdkPixbuf* status icon resource names
 . Append _status to functions that modify the status icon
 . Split functions (only 1) that do both into _status and non-status versions
-------
 . install icons to icons/apps/ and icons/status/
 . append -status to status icon names
 . functions that modify the status icon load -status icon versions

I identified all the icons possibly loaded into the status tray, and duplicated those resources (actual icons and GdkPixbuf* names) without verifying if those icons are loaded only into the status tray.

I know the nm-signal* icons are used for both the tray and the menu, ie the variants nm-signal%02d and nm-signal%02d-status are needed.

It is possible all the other status icons are only used in the status tray, in which case their corresponding menu entries (actual icons and GdkPixbuf*) can be deleted.

However, thats a lot of work for someone who is unfamiliar with nm-applet (but probably simple enough for those familiar). And these patches work. So I'm leaving it the way it is.
Comment 7 orbisvicis 2011-10-12 15:49:05 UTC
bump?
Comment 8 orbisvicis 2011-11-10 22:58:57 UTC
...
Comment 9 Lubomir Rintel 2015-02-10 14:32:00 UTC
Rebased this on top of master and compile-checked.

This possibly needs some more work: as reporter indicates some icons are probably duplicated. Also the _status naming change seems a bit useless at least in some places to me.

Pushed into lr/icon-naming-fdo661044
Comment 10 André Klapper 2020-11-12 14:27:31 UTC
bugzilla.gnome.org is being shut down in favor of a GitLab instance. 
We are closing all old bug reports and feature requests in GNOME Bugzilla which have not seen updates for a long time.

If you still use NetworkManager and if you still see this bug / want this feature in a recent and supported version of NetworkManager, then please feel free to report it at https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/issues/

Thank you for creating this report and we are sorry it could not be implemented (workforce and time is unfortunately limited).