Skip to content
Permalink
Browse files

Tray: Fix too-wide icon spacing after mate-polkit has been used w sni

Note that vertical and horizontal panels require different options in the grid, as "homogenous" is needed in rows for horizontal panels and columns in vertical panels to prevent icon rendering problems including icons growing without limit when the tray is moved from a horizontal to a vertical panel
  • Loading branch information...
lukefromdc committed Dec 30, 2018
1 parent 4c23197 commit 9484b053c9857ca7512b7374461c1fec6e246159
Showing with 5 additions and 0 deletions.
  1. +5 −0 applets/notification_area/na-grid.c
@@ -145,13 +145,17 @@ refresh_grid (NaGrid *self)

if (orientation == GTK_ORIENTATION_HORIZONTAL)
{
gtk_grid_set_row_homogeneous (GTK_GRID (self), TRUE);
gtk_grid_set_column_homogeneous (GTK_GRID (self), FALSE);
rows = MAX (1, allocation.height / self->min_icon_size);
cols = MAX (1, length / rows);
if (length % rows)
cols++;
}
else
{
gtk_grid_set_row_homogeneous (GTK_GRID (self), FALSE);
gtk_grid_set_column_homogeneous (GTK_GRID (self), TRUE);
cols = MAX (1, allocation.width / self->min_icon_size);
rows = MAX (1, length / cols);
if (length % cols)
@@ -243,6 +247,7 @@ na_grid_init (NaGrid *self)

gtk_grid_set_row_homogeneous (GTK_GRID (self), TRUE);
gtk_grid_set_column_homogeneous (GTK_GRID (self), TRUE);

}

static void

0 comments on commit 9484b05

Please sign in to comment.
You can’t perform that action at this time.