[gnome-documents] view: remove updateSelection() timeout hack
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-documents] view: remove updateSelection() timeout hack
- Date: Fri, 11 Nov 2011 17:38:31 +0000 (UTC)
commit 02dd5e1353fdaae36766a3abbbb49d8e4f265edb
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Wed Nov 9 16:23:23 2011 -0500
view: remove updateSelection() timeout hack
After the last round of TrackerController cleanups, this doesn't seem
needed anymore.
src/view.js | 12 +-----------
1 files changed, 1 insertions(+), 11 deletions(-)
---
diff --git a/src/view.js b/src/view.js
index 1cb82f6..6123b4f 100644
--- a/src/view.js
+++ b/src/view.js
@@ -157,17 +157,7 @@ View.prototype = {
// unfreeze selection
Global.selectionController.freezeSelection(false);
-
- // HACK: give the view some time to setup the scrolled window
- // allocation, as updateSelection() might call scrollToPath().
- // Is there anything better we can do here?
- this._updateSelectionId =
- Mainloop.timeout_add(100, Lang.bind(this,
- function() {
- this._updateSelectionId = 0;
- this._updateSelection();
- return false;
- }));
+ this._updateSelection();
} else {
// save the last selection
Global.selectionController.freezeSelection(true);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]