[gnome-boxes] Fix origin of thumbnail drawing



commit ccccf5066838d99a4ff9039be9996966703c17c9
Author: Alexander Larsson <alexl redhat com>
Date:   Thu Jun 28 18:55:18 2012 +0200

    Fix origin of thumbnail drawing
    
    We were not drawing the thumbnails centered.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=678455

 src/machine.vala |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/machine.vala b/src/machine.vala
index 1c3faa9..a62fb98 100644
--- a/src/machine.vala
+++ b/src/machine.vala
@@ -238,7 +238,7 @@ private abstract class Boxes.Machine: Boxes.CollectionItem, Boxes.IPropertiesPro
         context.rectangle (x, y, pw, ph);
         context.clip ();
 
-        Gdk.cairo_set_source_pixbuf (context, pixbuf, 0, 0);
+        Gdk.cairo_set_source_pixbuf (context, pixbuf, x, y);
         context.set_operator (Cairo.Operator.SOURCE);
         context.paint ();
 



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