GNOME Bugzilla – Bug 763292
Improve the alignment of notifications
Last modified: 2016-04-06 10:22:15 UTC
When you have multiple in-app notifications of different widths, you will notice a blank area on the right edge of the shorter rows. We should horizontally expand each notification (hexpand = TRUE), and, probably, set hexpand to FALSE on the parent GtkGrid so that the notification grid itself doesn't expand any further. To reproduce: * Go to the selection mode * Export an item * Delete some item(s)
Created attachment 324679 [details] [review] Improve the alignment of notifications Set hexpand property of several labels in notification to TRUE.
Review of attachment 324679 [details] [review]: Thanks for the patch, Jonathan. Looks good except one comment: ::: src/photos-indexing-notification.c @@ +271,2 @@ labels = gtk_grid_new (); + gtk_widget_set_hexpand (labels, TRUE); I wonder if it would be better to set hexpand on self->primary_label and self->secondary_label. It is a pity that testing this notification is not so easy. As far as I know, the expand flags propagate upwards from a child to its container, not the other way round. So setting hexpand on the grid won't result in expanding the child labels. Also, halign is set on the children, so it makes sense to add the hexpand there.
Created attachment 325428 [details] [review] Improve the alignment of notifications Patch updated.
Review of attachment 325428 [details] [review]: Thanks, Jonathan. Looks good to me. Tweaked the commit message and pushed.