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 611612 - urgent notifications should pre-expand
urgent notifications should pre-expand
Status: RESOLVED FIXED
Product: gnome-shell
Classification: Core
Component: general
unspecified
Other Linux
: Normal normal
: ---
Assigned To: gnome-shell-maint
gnome-shell-maint
Depends on:
Blocks:
 
 
Reported: 2010-03-02 15:29 UTC by Dan Winship
Modified: 2010-04-30 15:55 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
[MessageTray] fix clutter warnings (4.44 KB, patch)
2010-04-29 15:23 UTC, Dan Winship
committed Details | Review
[MessageTray] handle "urgent" notifications specially (3.65 KB, patch)
2010-04-29 15:24 UTC, Dan Winship
committed Details | Review

Description Dan Winship 2010-03-02 15:29:01 UTC
libnotify notifications have a priority/urgency hint. Urgent notifications should show up pre-expanded, if they are expandable.
Comment 1 Dan Winship 2010-04-29 15:23:19 UTC
Created attachment 159886 [details] [review]
[MessageTray] fix clutter warnings

Figure out if the banner is too long to fit as soon as the
notification's style is set, rather than waiting until allocation
time, since it's bad to add new table rows during allocation.

(This is needed for the pre-expansion fix because otherwise we haven't
figured out that the notification is going to need to expand yet from
_showNotification().)
Comment 2 Dan Winship 2010-04-29 15:24:24 UTC
Created attachment 159887 [details] [review]
[MessageTray] handle "urgent" notifications specially

Urgent notifications jump to the front of the tray's notification
queue, and come up pre-expanded.


I don't think we'd ever talked about "jump to the front of the queue"
before, but it seems like it makes sense, and it simplifies the "urgent
notifications show up even when fullscreen" bug.
Comment 3 Marina Zhurakhinskaya 2010-04-29 21:33:21 UTC
Review of attachment 159886 [details] [review]:

Looks good!
Comment 4 Marina Zhurakhinskaya 2010-04-29 21:35:46 UTC
Review of attachment 159887 [details] [review]:

Looks good!

I was wondering if we could use source.notification.urgent when setting the source icon, so that we don't need to pass hints to the Source and parse them in two places, but it looks like it's too much trouble than it is worth at the moment because we first create the Source and only then create the Notification for it.
Comment 5 Dan Winship 2010-04-30 15:55:04 UTC
Attachment 159886 [details] pushed as 077f0c5 - [MessageTray] fix clutter warnings
Attachment 159887 [details] pushed as 263261c - [MessageTray] handle "urgent" notifications specially