SF.net SVN: supercollider: [7672] trunk/build/SCClassLibrary/crucial/Gui/ PageLayout.sc

View: New views
1 Messages — Rating Filter:   Alert me  

SF.net SVN: supercollider: [7672] trunk/build/SCClassLibrary/crucial/Gui/ PageLayout.sc

by cruxxial :: Rate this Message:

Reply (Restricted by the Administrator) | Reply to Author | View Threaded | Show Only this Message

Revision: 7672
          http://svn.sourceforge.net/supercollider/?rev=7672&view=rev
Author:   cruxxial
Date:     2008-07-10 12:25:40 -0700 (Thu, 10 Jul 2008)

Log Message:
-----------
once again I broke Swing : adding a conditional to check if the window responds to \setTopLeftBounds

Modified Paths:
--------------
    trunk/build/SCClassLibrary/crucial/Gui/PageLayout.sc

Modified: trunk/build/SCClassLibrary/crucial/Gui/PageLayout.sc
===================================================================
--- trunk/build/SCClassLibrary/crucial/Gui/PageLayout.sc 2008-07-10 19:21:47 UTC (rev 7671)
+++ trunk/build/SCClassLibrary/crucial/Gui/PageLayout.sc 2008-07-10 19:25:40 UTC (rev 7672)
@@ -120,7 +120,7 @@
  wbh = b.height + 17;
  window.setInnerExtent(wbw,wbh);
 
- if(center) {
+ if(center and: {window.respondsTo(\setTopLeftBounds)}) {
  // this should be a window method
  fs = GUI.window.screenBounds;
  wb = window.bounds;


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
_______________________________________________
sc-dev mailing list
sc-dev@...
http://lists.create.ucsb.edu/mailman/listinfo/sc-dev