[gnome-shell/wip/paging-release: 24/39] 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: 24/39] Fixed not updating arrow side when boxpointer doesn't change size (and then it doesn't reallocate it
- Date: Tue, 13 Aug 2013 21:11:21 +0000 (UTC)
commit 5550d84580f7cb02657efe73e88dec4a68700e61
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 | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
---
diff --git a/js/ui/appDisplay.js b/js/ui/appDisplay.js
index 9b4dae9..5709b0a 100644
--- a/js/ui/appDisplay.js
+++ b/js/ui/appDisplay.js
@@ -1161,9 +1161,6 @@ const FolderView = new Lang.Class({
},
addApp: function(app) {
- //FIXME
- if(this._allItems.length > 1)
- return;
this._addItem(app);
},
@@ -1387,6 +1384,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;
},
@@ -1475,6 +1475,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);
@@ -1596,6 +1597,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]