Skip to content


Browse files Browse the repository at this point in the history
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 authored and raveit65 committed Jan 28, 2019
1 parent bab2d5a commit cc33d66
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions applets/notification_area/na-grid.c
Expand Up @@ -145,13 +145,17 @@ refresh_grid (NaGrid *self)

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)
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)
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit cc33d66

Please sign in to comment.