[gnome-shell] Remove simple uses of ClutterRectangle
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] Remove simple uses of ClutterRectangle
- Date: Thu, 9 May 2013 13:49:45 +0000 (UTC)
commit db89648f6244287f29101b8c6487beface750222
Author: Jasper St. Pierre <jstpierre mecheye net>
Date: Wed May 8 21:53:20 2013 -0400
Remove simple uses of ClutterRectangle
https://bugzilla.gnome.org/show_bug.cgi?id=699975
js/ui/dnd.js | 2 +-
js/ui/layout.js | 10 +++++-----
js/ui/overview.js | 4 ++--
js/ui/workspace.js | 2 +-
js/ui/xdndHandler.js | 2 +-
5 files changed, 10 insertions(+), 10 deletions(-)
---
diff --git a/js/ui/dnd.js b/js/ui/dnd.js
index 5b0a334..fab58f5 100644
--- a/js/ui/dnd.js
+++ b/js/ui/dnd.js
@@ -43,7 +43,7 @@ let dragMonitors = [];
function _getEventHandlerActor() {
if (!eventHandlerActor) {
- eventHandlerActor = new Clutter.Rectangle({ width: 0, height: 0 });
+ eventHandlerActor = new Clutter.Actor({ width: 0, height: 0 });
Main.uiGroup.add_actor(eventHandlerActor);
// We connect to 'event' rather than 'captured-event' because the capturing phase doesn't happen
// when you've grabbed the pointer.
diff --git a/js/ui/layout.js b/js/ui/layout.js
index 67c277c..7cc7d48 100644
--- a/js/ui/layout.js
+++ b/js/ui/layout.js
@@ -1136,11 +1136,11 @@ const HotCorner = new Lang.Class({
height: 3,
reactive: true });
- this._corner = new Clutter.Rectangle({ name: 'hot-corner',
- width: 1,
- height: 1,
- opacity: 0,
- reactive: true });
+ this._corner = new Clutter.Actor({ name: 'hot-corner',
+ width: 1,
+ height: 1,
+ opacity: 0,
+ reactive: true });
this._corner._delegate = this;
this.actor.add_child(this._corner);
diff --git a/js/ui/overview.js b/js/ui/overview.js
index fb6b910..c3ae2bb 100644
--- a/js/ui/overview.js
+++ b/js/ui/overview.js
@@ -147,8 +147,8 @@ const Overview = new Lang.Class({
// During transitions, we raise this to the top to avoid having the overview
// area be reactive; it causes too many issues such as double clicks on
// Dash elements, or mouseover handlers in the workspaces.
- this._coverPane = new Clutter.Rectangle({ opacity: 0,
- reactive: true });
+ this._coverPane = new Clutter.Actor({ opacity: 0,
+ reactive: true });
this._overview.add_actor(this._coverPane);
this._coverPane.connect('event', Lang.bind(this, function (actor, event) { return true; }));
diff --git a/js/ui/workspace.js b/js/ui/workspace.js
index ee6dcfc..6395208 100644
--- a/js/ui/workspace.js
+++ b/js/ui/workspace.js
@@ -936,7 +936,7 @@ const Workspace = new Lang.Class({
this.actor.add_style_class_name('external-monitor');
this.actor.set_size(0, 0);
- this._dropRect = new Clutter.Rectangle({ opacity: 0 });
+ this._dropRect = new Clutter.Actor({ opacity: 0 });
this._dropRect._delegate = this;
this.actor.add_actor(this._dropRect);
diff --git a/js/ui/xdndHandler.js b/js/ui/xdndHandler.js
index 85af2fa..61e1e4d 100644
--- a/js/ui/xdndHandler.js
+++ b/js/ui/xdndHandler.js
@@ -16,7 +16,7 @@ const XdndHandler = new Lang.Class({
this._cursorWindowClone = null;
// Used as a drag actor in case we don't have a cursor window clone
- this._dummy = new Clutter.Rectangle({ width: 1, height: 1, opacity: 0 });
+ this._dummy = new Clutter.Actor({ width: 1, height: 1, opacity: 0 });
Main.uiGroup.add_actor(this._dummy);
Shell.util_set_hidden_from_pick(this._dummy, true);
this._dummy.hide();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]