fantasdic r361 - in trunk: . lib/fantasdic/ui



Author: mblondel
Date: Sun Sep 21 03:24:53 2008
New Revision: 361
URL: http://svn.gnome.org/viewvc/fantasdic?rev=361&view=rev

Log:
    * lib/fantasdic/ui/main_app.rb (load_window_preferences): Check that the
    window coordinates are not negative.


Modified:
   trunk/ChangeLog
   trunk/lib/fantasdic/ui/main_app.rb

Modified: trunk/lib/fantasdic/ui/main_app.rb
==============================================================================
--- trunk/lib/fantasdic/ui/main_app.rb	(original)
+++ trunk/lib/fantasdic/ui/main_app.rb	Sun Sep 21 03:24:53 2008
@@ -362,6 +362,10 @@
                 @main_app.maximize
             else
                 @main_app.resize(* prefs window_size)
+
+                @prefs.window_position[0] = 0 if @prefs.window_position[0] < 0
+                @prefs.window_position[1] = 0 if @prefs.window_position[1] < 0
+
                 @main_app.move(* prefs window_position) unless \
                     @prefs.window_position == [0,0]
             end



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