[gnome-shell/wip/paging-release: 79/93] Fixed not updating arrow side when boxpointer doesn't change size (and then it doesn't reallocate it
- From: Carlos Soriano <csoriano src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell/wip/paging-release: 79/93] Fixed not updating arrow side when boxpointer doesn't change size (and then it doesn't reallocate it
- Date: Mon, 12 Aug 2013 17:18:25 +0000 (UTC)
commit fc8035ba657afe413b03eb180b31b8c92418aef2
Author: Carlos Soriano <carlos soriano89 gmail com>
Date: Wed Jul 24 18:34:43 2013 +0200
Fixed not updating arrow side when boxpointer doesn't change size (and
then it doesn't reallocate items and doesn't take into account the new
updated arrow side) but it changes the arrow side because of the
resolution change.
Fixed it queuing a redrawing on the border of the boxpointer
js/ui/appDisplay.js | 9 +++++++--
1 files changed, 7 insertions(+), 2 deletions(-)
---
diff --git a/js/ui/appDisplay.js b/js/ui/appDisplay.js
index ce99e79..7667aa8 100644
--- a/js/ui/appDisplay.js
+++ b/js/ui/appDisplay.js
@@ -1161,8 +1161,8 @@ const FolderView = new Lang.Class({
addApp: function(app) {
//FIXME
- /*if(this._allItems.length > 20)
- return;*/
+ if(this._allItems.length > 0)
+ return;
this._addItem(app);
},
@@ -1394,6 +1394,9 @@ const FolderIcon = new Lang.Class({
_calculateBoxPointerArrowSide: function() {
let absoluteActorYPosition = this.actor.get_transformed_position()[1];
let spaceTop = absoluteActorYPosition;
+ // Be careful, but doesn't matter, we don0t take into account the top panel height etc,
+ // So maybe we put an arrow side "wrong", but anyway, the expanding of colelction view will
+ // do the required space
let spaceBottom = this.actor.get_stage().height - (absoluteActorYPosition + this.actor.height);
return spaceTop > spaceBottom ? St.Side.BOTTOM : St.Side.TOP;
},
@@ -1482,6 +1485,7 @@ const FolderIcon = new Lang.Class({
} else {
this._boxPointerArrowside = this._calculateBoxPointerArrowSide();
+ global.log("arrow side " + this._boxPointerArrowside);
if(!this._popup) {
this._popup = new AppFolderPopup(this, this._boxPointerArrowside);
this._parentView.addFolderPopup(this._popup);
@@ -1603,6 +1607,7 @@ const AppFolderPopup = new Lang.Class({
updateBoxPointer: function (side) {
this._arrowSide = side;
this._boxPointer._arrowSide = side;
+ this._boxPointer._border.queue_repaint();
}
});
Signals.addSignalMethods(AppFolderPopup.prototype);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]