[gnome-boxes] collection-view: Reflect GTK+ VAPI changes



commit 2a804f555a14ad40c428ffe5a21f7e12a4052280
Author: Adrien Plazas <kekun plazas laposte net>
Date:   Wed May 27 08:07:42 2015 +0200

    collection-view: Reflect GTK+ VAPI changes
    
    Assign a Gdk.Rectangle instead of a Cairo.RectangleInt to
    Gtk.Popover.pointing_to in method launch_context_popover_for_path()
    in order to reflect changes in GTK+'s VAPI.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=749914

 src/collection-view.vala |    7 ++-----
 1 files changed, 2 insertions(+), 5 deletions(-)
---
diff --git a/src/collection-view.vala b/src/collection-view.vala
index 24c2920..4b87bc0 100644
--- a/src/collection-view.vala
+++ b/src/collection-view.vala
@@ -419,11 +419,8 @@ private class Boxes.CollectionView: Gd.MainView, Boxes.UI {
         icon_view.get_cell_rect (path, null, out rect);
 
         context_popover.update_for_item (item);
-        var rectangle = Cairo.RectangleInt () { x = rect.x,
-                                                y = rect.y,
-                                                width = rect.width,
-                                                height = rect.height / 2}; // Show in the middle
-        context_popover.pointing_to = rectangle;
+        rect.height /= 2; // Show in the middle
+        context_popover.pointing_to = rect;
         context_popover.show ();
 
         return true;


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