[gnome-shell/gbsneto/graphene: 4/4] Replace Clutter.Point by Graphene.Point



commit aeef2f892b6d589bdfe5e8c65a5c323a1e60c564
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date:   Wed Feb 20 16:54:29 2019 -0300

    Replace Clutter.Point by Graphene.Point

 js/ui/dash.js         | 4 ++--
 js/ui/lookingGlass.js | 4 ++--
 js/ui/messageList.js  | 5 +++--
 js/ui/popupMenu.js    | 4 ++--
 js/ui/screenShield.js | 4 ++--
 5 files changed, 11 insertions(+), 10 deletions(-)
---
diff --git a/js/ui/dash.js b/js/ui/dash.js
index e60cdd8ad..4591d2a45 100644
--- a/js/ui/dash.js
+++ b/js/ui/dash.js
@@ -1,6 +1,6 @@
 // -*- mode: js; js-indent-level: 4; indent-tabs-mode: nil -*-
 
-const { Clutter, GLib, GObject, Meta, Shell, St } = imports.gi;
+const { Clutter, GLib, GObject, Graphene, Meta, Shell, St } = imports.gi;
 const Mainloop = imports.mainloop;
 const Signals = imports.signals;
 
@@ -30,7 +30,7 @@ var DashItemContainer = GObject.registerClass(
 class DashItemContainer extends St.Widget {
     _init() {
         super._init({ style_class: 'dash-item-container',
-                      pivot_point: new Clutter.Point({ x: .5, y: .5 }),
+                      pivot_point: new Graphene.Point({ x: .5, y: .5 }),
                       x_expand: true,
                       x_align: Clutter.ActorAlign.CENTER });
 
diff --git a/js/ui/lookingGlass.js b/js/ui/lookingGlass.js
index 920a24347..db6740956 100644
--- a/js/ui/lookingGlass.js
+++ b/js/ui/lookingGlass.js
@@ -1,7 +1,7 @@
 // -*- mode: js; js-indent-level: 4; indent-tabs-mode: nil -*-
 
 const { Clutter, Cogl, Gio, GLib,
-        GObject, Meta, Pango, Shell, St } = imports.gi;
+        GObject, Graphene, Meta, Pango, Shell, St } = imports.gi;
 const Mainloop = imports.mainloop;
 const Signals = imports.signals;
 const System = imports.system;
@@ -345,7 +345,7 @@ var ObjInspector = class ObjInspector {
 
         this._parentList = [];
 
-        this.actor = new St.ScrollView({ pivot_point: new Clutter.Point({ x: 0.5, y: 0.5 }),
+        this.actor = new St.ScrollView({ pivot_point: new Graphene.Point({ x: 0.5, y: 0.5 }),
                                          x_fill: true, y_fill: true });
         this.actor.get_hscroll_bar().hide();
         this._container = new St.BoxLayout({ name: 'LookingGlassPropertyInspector',
diff --git a/js/ui/messageList.js b/js/ui/messageList.js
index bd97ffcb0..7d619c335 100644
--- a/js/ui/messageList.js
+++ b/js/ui/messageList.js
@@ -1,4 +1,5 @@
-const { Atk, Clutter, Gio, GLib, GObject, Meta, Pango, St } = imports.gi;
+const { Atk, Clutter, Gio, GLib,
+        GObject, Graphene, Meta, Pango, St } = imports.gi;
 const Main = imports.ui.main;
 const MessageTray = imports.ui.messageTray;
 const Signals = imports.signals;
@@ -562,7 +563,7 @@ var MessageListSection = class MessageListSection {
             keyFocusId: 0,
             closeId: 0
         };
-        let pivot = new Clutter.Point({ x: .5, y: .5 });
+        let pivot = new Graphene.Point({ x: .5, y: .5 });
         let scale = animate ? 0 : 1;
         obj.container = new St.Widget({ layout_manager: new ScaleLayout(),
                                         pivot_point: pivot,
diff --git a/js/ui/popupMenu.js b/js/ui/popupMenu.js
index 283934c28..1ec0f5dbe 100644
--- a/js/ui/popupMenu.js
+++ b/js/ui/popupMenu.js
@@ -1,6 +1,6 @@
 // -*- mode: js; js-indent-level: 4; indent-tabs-mode: nil -*-
 
-const { Atk, Clutter, Gio, GObject, Shell, St } = imports.gi;
+const { Atk, Clutter, Gio, GObject, Graphene, Shell, St } = imports.gi;
 const Signals = imports.signals;
 
 const BoxPointer = imports.ui.boxpointer;
@@ -1080,7 +1080,7 @@ var PopupSubMenuMenuItem = class extends PopupBaseMenuItem {
         this.actor.add(expander, { expand: true });
 
         this._triangle = arrowIcon(St.Side.RIGHT);
-        this._triangle.pivot_point = new Clutter.Point({ x: 0.5, y: 0.6 });
+        this._triangle.pivot_point = new Graphene.Point({ x: 0.5, y: 0.6 });
 
         this._triangleBin = new St.Widget({ y_expand: true,
                                             y_align: Clutter.ActorAlign.CENTER });
diff --git a/js/ui/screenShield.js b/js/ui/screenShield.js
index 3f45b8acf..c6b242e98 100644
--- a/js/ui/screenShield.js
+++ b/js/ui/screenShield.js
@@ -1,7 +1,7 @@
 // -*- mode: js; js-indent-level: 4; indent-tabs-mode: nil -*-
 
 const { AccountsService, Clutter, Cogl, Gio, GLib,
-        GnomeDesktop, GObject, Meta, Shell, St } = imports.gi;
+        GnomeDesktop, GObject, Graphene, Meta, Shell, St } = imports.gi;
 const Cairo = imports.cairo;
 const Mainloop = imports.mainloop;
 const Signals = imports.signals;
@@ -490,7 +490,7 @@ var ScreenShield = class {
         this._lockDialogGroup = new St.Widget({ x_expand: true,
                                                 y_expand: true,
                                                 reactive: true,
-                                                pivot_point: new Clutter.Point({ x: 0.5, y: 0.5 }),
+                                                pivot_point: new Graphene.Point({ x: 0.5, y: 0.5 }),
                                                 name: 'lockDialogGroup' });
 
         this.actor.add_actor(this._lockDialogGroup);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]