[gnome-shell] dash: rename a local variable for clarity
- From: StÃphane DÃmurget <stef src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] dash: rename a local variable for clarity
- Date: Tue, 6 Nov 2012 23:30:51 +0000 (UTC)
commit df0151d338248ae7cd38c41cda7a0438bdb2c880
Author: StÃphane DÃmurget <stephane demurget free fr>
Date: Sat Nov 3 21:03:49 2012 +0100
dash: rename a local variable for clarity
createAppIcon creates an appIcon, not a 'display', which made things
unnecessarily more difficult to understand.
https://bugzilla.gnome.org/show_bug.cgi?id=657315
js/ui/dash.js | 20 ++++++++++----------
1 files changed, 10 insertions(+), 10 deletions(-)
---
diff --git a/js/ui/dash.js b/js/ui/dash.js
index 9d5ad24..21594b5 100644
--- a/js/ui/dash.js
+++ b/js/ui/dash.js
@@ -492,31 +492,31 @@ const Dash = new Lang.Class({
},
_createAppItem: function(app) {
- let display = new AppDisplay.AppWellIcon(app,
+ let appIcon = new AppDisplay.AppWellIcon(app,
{ setSizeManually: true,
showLabel: false });
- display._draggable.connect('drag-begin',
+ appIcon._draggable.connect('drag-begin',
Lang.bind(this, function() {
- display.actor.opacity = 50;
+ appIcon.actor.opacity = 50;
}));
- display._draggable.connect('drag-end',
+ appIcon._draggable.connect('drag-end',
Lang.bind(this, function() {
- display.actor.opacity = 255;
+ appIcon.actor.opacity = 255;
}));
- display.connect('menu-state-changed',
- Lang.bind(this, function(display, opened) {
+ appIcon.connect('menu-state-changed',
+ Lang.bind(this, function(appIcon, opened) {
this._itemMenuStateChanged(item, opened);
}));
let item = new DashItemContainer();
- item.setChild(display.actor);
+ item.setChild(appIcon.actor);
// Override default AppWellIcon label_actor, now the
// accessible_name is set at DashItemContainer.setLabelText
- display.actor.label_actor = null;
+ appIcon.actor.label_actor = null;
item.setLabelText(app.get_name());
- display.icon.setIconSize(this.iconSize);
+ appIcon.icon.setIconSize(this.iconSize);
this._hookUpLabel(item);
return item;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]