Skip to content

Commit 70fb61d

Browse files
committed
Clean up the offset_notification method
1 parent 0fb37cd commit 70fb61d

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

src/Services/PopoverManager.vala

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -254,13 +254,12 @@ public class Wingpanel.Services.PopoverManager : Object {
254254
});
255255
}
256256

257-
private void offset_notifications(Wingpanel.Widgets.IndicatorPopover? popover = null) {
257+
private void offset_notifications (Wingpanel.Widgets.IndicatorPopover? popover = null) {
258258
int offset = 0;
259259
if (popover != null) {
260-
int minimum_height, natural_height;
261-
popover.get_preferred_height (out minimum_height, out natural_height);
262-
offset = natural_height;
260+
popover.get_preferred_height (null, out offset);
263261
}
262+
264263
try {
265264
wm.offset_notifications (offset);
266265
} catch (Error e) {

0 commit comments

Comments
 (0)