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 659768 - Handle icons in notifications better and update the avatar when it changes
Handle icons in notifications better and update the avatar when it changes
Status: RESOLVED FIXED
Product: gnome-shell
Classification: Core
Component: message-tray
unspecified
Other All
: Normal normal
: ---
Assigned To: gnome-shell-maint
gnome-shell-maint
Depends on:
Blocks:
 
 
Reported: 2011-09-21 21:18 UTC by Marina Zhurakhinskaya
Modified: 2011-10-17 20:04 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
telepathyClient: update the avatar correctly when it changes (2.62 KB, patch)
2011-09-21 21:18 UTC, Marina Zhurakhinskaya
committed Details | Review
messageTray: only update an icon when necessary on notification update (2.31 KB, patch)
2011-09-21 21:19 UTC, Marina Zhurakhinskaya
committed Details | Review
A screenshot of a summary chat notification with inconsistent icons (83.23 KB, image/png)
2011-09-21 21:26 UTC, Marina Zhurakhinskaya
  Details
notificationDaemon: only display a large image if icon is also specified (1.87 KB, patch)
2011-10-17 19:59 UTC, Marina Zhurakhinskaya
none Details | Review

Description Marina Zhurakhinskaya 2011-09-21 21:18:56 UTC
Previously, when the avatar changed, we would not update the summary icon
for the source at all and would only update the notification icon when the
next message was received. Instead, we should update both immediately upon
recieving the signal that the avatar has changed.
Comment 1 Marina Zhurakhinskaya 2011-09-21 21:18:58 UTC
Created attachment 197190 [details] [review]
telepathyClient: update the avatar correctly when it changes
Comment 2 Marina Zhurakhinskaya 2011-09-21 21:19:42 UTC
Created attachment 197191 [details] [review]
messageTray: only update an icon when necessary on notification update

This avoids unnecessarily removing and resetting the icon in the notifications.

This fixes the new chat notification sliding down and up slightly when new
messages are received.
Comment 3 Marina Zhurakhinskaya 2011-09-21 21:26:12 UTC
Created attachment 197192 [details]
A screenshot of a summary chat notification with inconsistent icons

This is what would happen when avatar was updated before - the notification's icon would get updated when the next message is received and the source summary icon would not get updated at all.
Comment 4 Dan Winship 2011-09-21 21:38:55 UTC
Comment on attachment 197190 [details] [review]
telepathyClient: update the avatar correctly when it changes

looks ok
Comment 5 Marina Zhurakhinskaya 2011-10-17 19:59:02 UTC
Created attachment 199261 [details] [review]
notificationDaemon: only display a large image if icon is also specified

Historically, when applications set "image-data" they expect it to show up
as an icon. So we display it as such if an icon is not specified with an
"app_icon" argument to Notify().

We only display a large image specified with "image-data" or "image-path"
if an icon is also specified.

This is an alternative fix to hardcoding Rhythmbox. The abrt, Firefox download
complete, and Rhythmbox notifications look the same. There are no known
applications that specify both "app_icon" argument and ("image-data" or
"image-path"), but don't want an additional image to be displayed. This
approach is better, as it will allow other applications such as Banshee to
also display large images in notifications.
Comment 6 Marina Zhurakhinskaya 2011-10-17 20:04:14 UTC
Comment on attachment 199261 [details] [review]
notificationDaemon: only display a large image if icon is also specified

Sorry, wrong number.