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

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

 



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

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list


[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux