Skip to content

Commit

Permalink
Clean up the offset_notification method
Browse files Browse the repository at this point in the history
  • Loading branch information
stan-janssen committed Mar 29, 2023
1 parent 0fb37cd commit 70fb61d
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/Services/PopoverManager.vala
Original file line number Diff line number Diff line change
Expand Up @@ -254,13 +254,12 @@ public class Wingpanel.Services.PopoverManager : Object {
});
}

private void offset_notifications(Wingpanel.Widgets.IndicatorPopover? popover = null) {
private void offset_notifications (Wingpanel.Widgets.IndicatorPopover? popover = null) {
int offset = 0;
if (popover != null) {
int minimum_height, natural_height;
popover.get_preferred_height (out minimum_height, out natural_height);
offset = natural_height;
popover.get_preferred_height (null, out offset);
}

try {
wm.offset_notifications (offset);
} catch (Error e) {
Expand Down

0 comments on commit 70fb61d

Please sign in to comment.