[gnome-boxes] Correctly restore window position



commit dea2ffcfd150b411a50f920ee2fcf9b74ef10408
Author: Marc-Andrà Lureau <marcandre lureau gmail com>
Date:   Thu Nov 3 19:14:26 2011 +0100

    Correctly restore window position

 src/app.vala |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/src/app.vala b/src/app.vala
index 2e56ba9..a8de2f1 100644
--- a/src/app.vala
+++ b/src/app.vala
@@ -160,8 +160,8 @@ private class Boxes.App: Boxes.UI {
         // restore window geometry/position
         var size = settings.get_value ("window-size");
         if (size.n_children () == 2) {
-            var width = (int32) size.get_child_value (0);
-            var height = (int32) size.get_child_value (1);
+            var width = (int) size.get_child_value (0);
+            var height = (int) size.get_child_value (1);
 
             window.set_default_size (width, height);
         }
@@ -171,8 +171,8 @@ private class Boxes.App: Boxes.UI {
 
         var position = settings.get_value ("window-position");
         if (position.n_children () == 2) {
-            var x = (int32) size.get_child_value (0);
-            var y = (int32) size.get_child_value (1);
+            var x = (int) position.get_child_value (0);
+            var y = (int) position.get_child_value (1);
 
             window.move (x, y);
         }



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