[gnome-shell/wip/carlosg/reuse-paint-volumes] appDisplay: Use set_value() to change adjustment value
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell/wip/carlosg/reuse-paint-volumes] appDisplay: Use set_value() to change adjustment value
- Date: Thu, 28 Jun 2018 17:27:26 +0000 (UTC)
commit e9bc87b193943b8aeda46a47839321797f80e073
Author: Carlos Garnacho <carlosg gnome org>
Date: Thu Jun 28 19:25:01 2018 +0200
appDisplay: Use set_value() to change adjustment value
Using the gobject property will emit notify::value even if the
value actually stays the same. Use set_value() to avoid triggering
unintended work.
js/ui/appDisplay.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/js/ui/appDisplay.js b/js/ui/appDisplay.js
index 2835c2aae..d4b84afd2 100644
--- a/js/ui/appDisplay.js
+++ b/js/ui/appDisplay.js
@@ -762,7 +762,7 @@ var AllView = new Lang.Class({
this._scrollView.get_effect('fade').fade_edges = true;
if (this._availWidth != availWidth || this._availHeight != availHeight || oldNPages !=
this._grid.nPages()) {
- this._adjustment.value = 0;
+ this._adjustment.set_value(0);
this._grid.currentPage = 0;
Meta.later_add(Meta.LaterType.BEFORE_REDRAW, () => {
this._pageIndicators.setNPages(this._grid.nPages());
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]