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 643513 - SummaryItem doesn't update title
SummaryItem doesn't update title
Status: RESOLVED FIXED
Product: gnome-shell
Classification: Core
Component: message-tray
unspecified
Other Linux
: Normal normal
: ---
Assigned To: gnome-shell-maint
gnome-shell-maint
Depends on:
Blocks:
 
 
Reported: 2011-02-28 18:38 UTC by Jasper St. Pierre (not reading bugmail)
Modified: 2011-06-09 21:08 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
messageTray: update the SummaryItem's label based on Source title changes (3.09 KB, patch)
2011-06-08 06:29 UTC, Jasper St. Pierre (not reading bugmail)
committed Details | Review

Description Jasper St. Pierre (not reading bugmail) 2011-02-28 18:38:51 UTC
The SummaryItem label never updates its label to the current title. We currently inadvertently abuse this when adding the status and message to the notification title, retaining the summary item being the simple contact alias.
Comment 1 Jasper St. Pierre (not reading bugmail) 2011-06-02 14:09:45 UTC
One way to keep this under control would be to just add another method: Source.setSummaryItemTitle();

I've thought about splitting the Source title in two, one part for the title and the other part for random add-on status messages, but it seems this would wreak havoc on translators to have to try to phrase these messages with some simple, dumb string appending.
Comment 2 Dan Winship 2011-06-03 17:16:51 UTC
(In reply to comment #0)
> The SummaryItem label never updates its label to the current title. We
> currently inadvertently abuse this when adding the status and message to the
> notification title, retaining the summary item being the simple contact alias.

No, the notification title is not the same as the summary title. Presence notifications just update the notification so that its title is something other than the source.title. So there's no abuse going on here.

The only time we ever change source.title is if the contact's alias changes, and in that case, we do want the SummaryItem label to update. So we just need a 'title-changed' signal on Source, and watch that from SummaryItem.
Comment 3 Jasper St. Pierre (not reading bugmail) 2011-06-08 06:29:20 UTC
Created attachment 189441 [details] [review]
messageTray: update the SummaryItem's label based on Source title changes
Comment 4 Dan Winship 2011-06-09 14:22:33 UTC
Comment on attachment 189441 [details] [review]
messageTray: update the SummaryItem's label based on Source title changes

>             source.connect('destroy', Lang.bind(this,
>                 function() {
>+
>                     delete this._sources[pid];

kill that blank line. good to commit after that
Comment 5 Jasper St. Pierre (not reading bugmail) 2011-06-09 21:08:30 UTC
Attachment 189441 [details] pushed as 890efa7 - messageTray: update the SummaryItem's label based on Source title changes