Skip to content

Commit 7bc16d8

Browse files
committed
Clean up the offset_notification method
1 parent 0fb37cd commit 7bc16d8

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/Services/PopoverManager.vala

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -257,10 +257,9 @@ public class Wingpanel.Services.PopoverManager : Object {
257257
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)