[Pkg-bazaar-commits] ./bzr-gtk/unstable r4: Use the size of the first monitor rather than the entire screen

Scott James Remnant scott at netsplit.com
Fri Apr 10 07:15:01 UTC 2009


------------------------------------------------------------
revno: 4
committer: Scott James Remnant <scott at netsplit.com>
timestamp: Mon 2005-10-17 05:39:30 +0100
message:
  Use the size of the first monitor rather than the entire screen
modified:
  branchwin.py
-------------- next part --------------
=== modified file 'branchwin.py'
--- a/branchwin.py	2005-10-17 04:26:00 +0000
+++ b/branchwin.py	2005-10-17 04:39:30 +0000
@@ -36,8 +36,9 @@
 
         # Use three-quarters of the screen by default
         screen = self.get_screen()
-        width = int(screen.get_width() * 0.75)
-        height = int(screen.get_height() * 0.75)
+        monitor = screen.get_monitor_geometry(0)
+        width = int(monitor.width * 0.75)
+        height = int(monitor.height * 0.75)
         self.set_default_size(width, height)
 
         # FIXME AndyFitz!



More information about the Pkg-bazaar-commits mailing list