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 746343 - Port chat notifications to the new notification banners
Port chat notifications to the new notification banners
Status: RESOLVED FIXED
Product: gnome-shell
Classification: Core
Component: general
unspecified
Other All
: Normal normal
: ---
Assigned To: gnome-shell-maint
gnome-shell-maint
Depends on:
Blocks:
 
 
Reported: 2015-03-17 12:48 UTC by Florian Müllner
Modified: 2015-03-17 15:09 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
telepathyClient: Don't remove body on updates (1.88 KB, patch)
2015-03-17 12:48 UTC, Florian Müllner
committed Details | Review
Revert "messageTray: Special-case chat notifications to use the old actor" (1.44 KB, patch)
2015-03-17 12:49 UTC, Florian Müllner
committed Details | Review
messageTray: Always destroy banners when done displaying (1.25 KB, patch)
2015-03-17 12:49 UTC, Florian Müllner
committed Details | Review
telepathyClient: Provide a custom banner implementation (19.96 KB, patch)
2015-03-17 12:49 UTC, Florian Müllner
committed Details | Review
messageTray: Stop including an actor with Notifications (34.75 KB, patch)
2015-03-17 12:49 UTC, Florian Müllner
committed Details | Review

Description Florian Müllner 2015-03-17 12:48:54 UTC
See patches or wip/fmuellner/chat-notifications.
Comment 1 Florian Müllner 2015-03-17 12:48:59 UTC
Created attachment 299590 [details] [review]
telepathyClient: Don't remove body on updates

Passing null as body always meant clearing the existing one. While this
mattered less with the old message tray which used the expanded actor,
the new message list in the calendar uses the unexpanded body. We clearly
don't want that to disappear on icon changes, so pass the existing one.
Comment 2 Florian Müllner 2015-03-17 12:49:05 UTC
Created attachment 299591 [details] [review]
Revert "messageTray: Special-case chat notifications to use the old actor"

This was really just a temporary hack to buy us more time to properly port
chat notifications to the new banners ...

This reverts commit cd5318baa7699923f9757e25576c9fb4e3aef2ac.
Comment 3 Florian Müllner 2015-03-17 12:49:11 UTC
Created attachment 299592 [details] [review]
messageTray: Always destroy banners when done displaying

Special-casing banners of resident notifications was really a
thinly veiled special case for chat notifications, as those were
still using the old notification actor which coupled the life-time
of the notification to its actor. This is no longer the case, so
we can do the sane thing and destroy banners once they are no
longer needed.
Comment 4 Florian Müllner 2015-03-17 12:49:17 UTC
Created attachment 299593 [details] [review]
telepathyClient: Provide a custom banner implementation

Since we stopped special-casing chat notifications to use the old
notification actor, we need to provide a notification banner to
maintain the inline chat functionality, so split out the UI from
the existing ChatNotification class.
Comment 5 Florian Müllner 2015-03-17 12:49:23 UTC
Created attachment 299594 [details] [review]
messageTray: Stop including an actor with Notifications

We now stopped using notification actors directly for anything, so
we can simplify the Notification class significantly by turning it
into a purely informational object others can use to built their UI
representation from.
Comment 6 Carlos Soriano 2015-03-17 13:31:14 UTC
Review of attachment 299590 [details] [review]:

Ok, although seems more clear if no passing anything means "use whatever you had before". So we will need all in params.
But the change doesn't worth the effort I guess =)
Comment 7 Carlos Soriano 2015-03-17 13:32:11 UTC
Review of attachment 299591 [details] [review]:

-y
Comment 8 Carlos Soriano 2015-03-17 13:36:52 UTC
Review of attachment 299592 [details] [review]:

yay
Comment 9 Carlos Soriano 2015-03-17 14:52:51 UTC
Review of attachment 299593 [details] [review]:

awesome!!! finally that gap in the left fixed...

code looks ok
Comment 10 Carlos Soriano 2015-03-17 14:53:15 UTC
Review of attachment 299593 [details] [review]:

awesome!!! finally that gap in the left fixed...

code looks ok
Comment 11 Carlos Soriano 2015-03-17 15:01:30 UTC
Review of attachment 299594 [details] [review]:

yes
Comment 12 Florian Müllner 2015-03-17 15:08:58 UTC
Attachment 299590 [details] pushed as 0ee7622 - telepathyClient: Don't remove body on updates
Attachment 299591 [details] pushed as 54f46e8 - Revert "messageTray: Special-case chat notifications to use the old actor"
Attachment 299592 [details] pushed as 2d4ba30 - messageTray: Always destroy banners when done displaying
Attachment 299593 [details] pushed as bb61dd4 - telepathyClient: Provide a custom banner implementation
Attachment 299594 [details] pushed as 15e42c4 - messageTray: Stop including an actor with Notifications