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 644668 - Always use an application icon
Always use an application icon
Status: RESOLVED FIXED
Product: gnome-shell
Classification: Core
Component: general
unspecified
Other Linux
: Normal normal
: ---
Assigned To: gnome-shell-maint
gnome-shell-maint
[gnome3-important]
: 639248 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2011-03-13 20:27 UTC by drago01
Modified: 2011-03-20 05:54 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Fallback to using a generic when requested image isn't found (5.64 KB, patch)
2011-03-17 02:33 UTC, William Jon McCann
reviewed Details | Review
Fallback to using a generic when requested image isn't found (5.71 KB, patch)
2011-03-17 15:20 UTC, William Jon McCann
committed Details | Review

Description drago01 2011-03-13 20:27:56 UTC
We should never show an empty space instead of an icon (neither in the dash, application view or altTab). 

In case the app does not provide an icon for whatever reason we should just show a generic one like application-x-executable as suggested by the designers.
Comment 1 William Jon McCann 2011-03-17 02:33:21 UTC
Created attachment 183602 [details] [review]
Fallback to using a generic when requested image isn't found

Use a type specific generic image when the requested icon
can't be loaded instead of using an empty texture.

It is better not to use gicon theme fallbacks so that the built-in
fallbacks work as intended, so that non-themed icons work too, and so
that textures can be cached efficiently.
Comment 2 Colin Walters 2011-03-17 14:41:16 UTC
Review of attachment 183602 [details] [review]:

I am confused by the code duplication here, but clearly you didn't create that situation.  It looks to me like we're basically trying to handle non-themed icons inside ShellAppSystem which have absolute paths like /path/to/my/app.png.

::: src/shell-app-system.c
@@ +1216,3 @@
+                                                   G_OBJECT (info->window),
+                                                   "icon");
+      goto out;

I'm not sure if there is a strict rule about this, but I really dislike seeing "goto" for anything *except* exception unwinding, and this doesn't really fit.

This could be written as 

if (info == _WINDOW)
  {

  }
else
  {

  }

just fine.
Comment 3 William Jon McCann 2011-03-17 15:20:21 UTC
Created attachment 183638 [details] [review]
Fallback to using a generic when requested image isn't found

Use a type specific generic image when the requested icon
can't be loaded instead of using an empty texture.
Comment 4 William Jon McCann 2011-03-17 18:11:45 UTC
Attachment 183638 [details] pushed as dd99ed7 - Fallback to using a generic when requested image isn't found
Comment 5 William Jon McCann 2011-03-20 05:54:49 UTC
*** Bug 639248 has been marked as a duplicate of this bug. ***