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

[PATCH] Set main window to 800x600 for live install (#667566)



Without a requested window size the live install would shrink the
main window to fit each screen's widget set. This sets a default size
of 800x600 for live installs and for forwarded X connections.
---
 pyanaconda/gui.py |   14 ++++++--------
 1 files changed, 6 insertions(+), 8 deletions(-)

diff --git a/pyanaconda/gui.py b/pyanaconda/gui.py
index 36bcc76..6f87847 100755
--- a/pyanaconda/gui.py
+++ b/pyanaconda/gui.py
@@ -1422,8 +1422,8 @@ class InstallControlWindow:
 
     def createWidgets (self):
         self.window.set_title(_("%s Installer") %(productName,))
-        
-        i = self.mainxml.get_widget("headerImage")        
+
+        i = self.mainxml.get_widget("headerImage")
         p = readImageFromFile("anaconda_header.png",
                               dither = False, image = i)
         if p is None:
@@ -1434,14 +1434,12 @@ class InstallControlWindow:
             self.window.set_resizable(True)
             self.window.set_size_request(-1, -1)
         else:
-            # if we're running in the live mode and the dpi is something weird,
-            # give ourselves as much space as we can.  this gets things to fit
+            # if we're running in the live mode give ourselves
+            # as much space as we can. This gets things to fit
             # with a dpi of up to 147
-            if flags.livecdInstall:
+            if flags.livecdInstall or flags.preexisting_x11:
                 i.hide()
-            elif flags.preexisting_x11:
-                # running on a pre-existing X, probably through X11 forwarding
-                pass 
+                self.window.set_size_request(800, 600)
             else:
                 self.window.set_type_hint(gtk.gdk.WINDOW_TYPE_HINT_DESKTOP)
 
-- 
1.7.3.4


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