mirror of
https://github.com/morgan9e/dash-to-panel
synced 2026-04-14 00:04:17 +09:00
fix deprecated warning
fix hscroll.get_adjustment and vscroll.get_adjustment deprecated warning in system log every time scroll in panel
This commit is contained in:
@@ -1408,7 +1408,7 @@ export const TaskbarItemContainer = GObject.registerClass({
|
||||
|
||||
// The clone follows its source when the taskbar is scrolled.
|
||||
let taskbarScrollView = this.get_parent().get_parent();
|
||||
let adjustment = this._dtpPanel.checkIfVertical() ? taskbarScrollView.vscroll.get_adjustment() : taskbarScrollView.hscroll.get_adjustment();
|
||||
let adjustment = this._dtpPanel.checkIfVertical() ? taskbarScrollView.get_vadjustment() : taskbarScrollView.get_hadjustment();
|
||||
let adjustmentChangedId = adjustment.connect('notify::value', () => this._updateCloneContainerPosition(cloneContainer));
|
||||
|
||||
// Update clone position when an item is added to / removed from the taskbar.
|
||||
|
||||
Reference in New Issue
Block a user