[gnome-maps] mapMarker: Use Gdk.Rectangle



commit 8bc74ec0716ddf7064f059835a353da03153c438
Author: Damián Nohales <damiannohales gmail com>
Date:   Sun Jun 28 15:31:17 2015 -0300

    mapMarker: Use Gdk.Rectangle
    
    https://bugzilla.gnome.org/show_bug.cgi?id=751493

 src/mapMarker.js |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/src/mapMarker.js b/src/mapMarker.js
index 122ce8d..e31290f 100644
--- a/src/mapMarker.js
+++ b/src/mapMarker.js
@@ -19,8 +19,8 @@
  * Author: Damián Nohales <damiannohales gmail com>
  */
 
-const Cairo = imports.gi.cairo;
 const Champlain = imports.gi.Champlain;
+const Gdk = imports.gi.Gdk;
 const GObject = imports.gi.GObject;
 const Gtk = imports.gi.Gtk;
 const Lang = imports.lang;
@@ -113,10 +113,10 @@ const MapMarker = new Lang.Class({
         let y = this._view.latitude_to_y(this.latitude);
         let mapSize = this._mapView.get_allocation();
 
-        let pos = new Cairo.RectangleInt({ x: x + tx - this.bubbleSpacing,
-                                           y: y + ty - this.bubbleSpacing,
-                                           width: this.width + this.bubbleSpacing * 2,
-                                           height: this.height + this.bubbleSpacing * 2 });
+        let pos = new Gdk.Rectangle({ x: x + tx - this.bubbleSpacing,
+                                      y: y + ty - this.bubbleSpacing,
+                                      width: this.width + this.bubbleSpacing * 2,
+                                      height: this.height + this.bubbleSpacing * 2 });
         bubble.pointing_to = pos;
         bubble.position = Gtk.PositionType.TOP;
 


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