Bug 223201

Summary: "Recent Notifications" applications' tabbar maximum width is not honored during several situations (causing the Notification extender to be too wide)
Product: [Plasma] plasma4 Reporter: Antonio Rojas <arojas>
Component: notificationsAssignee: Plasma Bugs List <plasma-bugs>
Status: RESOLVED FIXED    
Severity: normal CC: andresbajotierra, apfelmausmail, asraniel, notmart, plasma-bugs
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:
Attachments: screenshot
screenshot
Proposed patch

Description Antonio Rojas 2010-01-17 20:55:38 UTC
Version:            (using Devel)
OS:                Linux
Installed from:    Compiled sources

When there are recent notifications from a few apps, the plasma notifications become too wide. Right now they're taking more than half of the width of my 15' screen. The label text of the apps should be ellided if they are too long.
Comment 1 Antonio Rojas 2010-01-17 20:56:53 UTC
Created attachment 39988 [details]
screenshot
Comment 2 Dario Andres 2010-01-19 18:52:58 UTC
The tabbar containing the applications' names has a maximum width of 400px...
May be a smaller size should be applied ?
@Marco: what do you think ?
Regards
Comment 3 Antonio Rojas 2010-01-19 19:04:15 UTC
Created attachment 40046 [details]
screenshot

It's definitely wider than 400px here...
Comment 4 Dario Andres 2010-01-19 19:08:06 UTC
May be the value is not being honored....
Comment 5 Dario Andres 2010-01-20 16:50:30 UTC
I did some tests about it on 4.5 trunk:

Test 1:
---

I spawned several notifications (using dbus) (with different appnames) with a delay of 1s between them
After the first notification is shown, if I click the "Recent Notifications" "expand" button (to show the application TabBar); all the other applications appear properly, the maxwidth is honored and the "<>" arrows appear in the tabbar...

However, if I click one item in the Tabbar,  the tabbar is "expanded" (the maxwidth is not honored and the "<>" arrows dissapear)

Test 2:
---

If I spawn all the notifications at the same time (without delay), the tabbar maxwidth won't be honored from the start...

--

I can attach the sample code I used to spawn the notifications if needed...
Comment 6 Dario Andres 2010-01-20 16:56:40 UTC
Created attachment 40075 [details]
Proposed patch
Comment 7 Dario Andres 2010-01-26 16:05:42 UTC
*** Bug 224187 has been marked as a duplicate of this bug. ***
Comment 8 Dario Andres 2010-01-27 13:24:32 UTC
SVN commit 1081011 by darioandres:

- Fix the maximum width of the the application tabbar in the notification dialog in order to avoid a 
  too wide dialog

BUG:223201


 M  +1 -1      applet.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1081011
Comment 9 Dario Andres 2010-01-27 13:26:23 UTC
SVN commit 1081012 by darioandres:

Backport to 4.4 of:
SVN commit 1081011 by darioandres:

- Fix the maximum width of the the application tabbar in the notification
dialog in order to avoid a 
  too wide dialog

CCBUG:223201


 M  +1 -1      applet.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1081012