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 734614 - Undo buttons in application notifications are too tall
Undo buttons in application notifications are too tall
Status: RESOLVED FIXED
Product: gtk+
Classification: Platform
Component: Themes
3.13.x
Other Linux
: Normal normal
: ---
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2014-08-11 13:44 UTC by Debarshi Ray
Modified: 2014-08-13 17:58 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Screenshot of gnome-boxes (264.12 KB, image/png)
2014-08-11 13:44 UTC, Debarshi Ray
  Details
widget-factory: Turn off focus-on-click for notification close button (1.26 KB, patch)
2014-08-11 21:16 UTC, Debarshi Ray
committed Details | Review
widget-factory: Add a reset button to the notification (2.55 KB, patch)
2014-08-11 21:16 UTC, Debarshi Ray
reviewed Details | Review
widget-factory: Add a reset button to the notification (3.09 KB, patch)
2014-08-11 21:39 UTC, Debarshi Ray
committed Details | Review

Description Debarshi Ray 2014-08-11 13:44:19 UTC
Created attachment 283100 [details]
Screenshot of gnome-boxes

The "undo" button in the screenshot is too tall.

I think this is a regression due to the Adwaita re-write because I can not find any Boxes specific style class in the code, and building against gtk-3.12 gives us a nice margin around the button. The notification bar uses the "app-notification" style class.
Comment 1 Lapo Calamandrei 2014-08-11 16:21:57 UTC
The in app notification didn't get much love, I'll tale a look, it would be nice to have a such a button in the widget factory tho
Comment 2 Debarshi Ray 2014-08-11 21:16:18 UTC
Created attachment 283144 [details] [review]
widget-factory: Turn off focus-on-click for notification close button
Comment 3 Debarshi Ray 2014-08-11 21:16:46 UTC
Created attachment 283145 [details] [review]
widget-factory: Add a reset button to the notification
Comment 4 Debarshi Ray 2014-08-11 21:27:35 UTC
(In reply to comment #1)
> The in app notification didn't get much love, I'll tale a look, it would be
> nice to have a such a button in the widget factory tho

There you go.

This makes me realize that the widget-factory and applications (Boxes, Documents and Photos) are constructing the in-app notifications in slightly different ways. Particularly, in this case, the widget-factory sets a margin of 10 on all sides while the applications were only specifying left and right margins.

Given that these libgd applications themselves differ in their use of GdNotification, I wonder if we should try to standardize this some more. eg., in Boxes each notification is a GdNotification, while the others use GdNotification as a floating container in which the individual notification labels and buttons are packed.
Comment 5 Matthias Clasen 2014-08-11 21:30:40 UTC
Review of attachment 283144 [details] [review]:

sure
Comment 6 Matthias Clasen 2014-08-11 21:33:39 UTC
Review of attachment 283145 [details] [review]:

if setting it to 42 pops up the notification again right away, it might be better to use a different initial value
Comment 7 Debarshi Ray 2014-08-11 21:39:33 UTC
Created attachment 283146 [details] [review]
widget-factory: Add a reset button to the notification

Use 50 as an initial value instead of 42. 50 is not a multiple of 3, and it is being used in adjustment1.
Comment 8 Debarshi Ray 2014-08-11 21:44:59 UTC
From #gtk+ on GIMPNet:
21:44 <rishi> mclasen: Changed it to 50.
21:44 <mclasen> feel free to push it with that change