Revision: 2474
http://vexi.svn.sourceforge.net/vexi/?rev=2474&view=rev
Author: clrg
Date: 2007-10-15 09:07:18 -0700 (Mon, 15 Oct 2007)
Log Message:
-----------
Fix surface.Close puts and add theme debug info
Modified Paths:
--------------
trunk/widgets/org.vexi.widgets/src/org/vexi/lib/role/surface.t
Modified: trunk/widgets/org.vexi.widgets/src/org/vexi/lib/role/surface.t
===================================================================
--- trunk/widgets/org.vexi.widgets/src/org/vexi/lib/role/surface.t
2007-10-15 15:20:23 UTC (rev 2473)
+++ trunk/widgets/org.vexi.widgets/src/org/vexi/lib/role/surface.t
2007-10-15 16:07:18 UTC (rev 2474)
@@ -16,18 +16,17 @@
thisbox.surface ++= function() { return s; };
/** notify surface.Close when closing surface */
- thisbox.Close ++= function(v)
- {
- if (closeLock) return;
- closeLock = true;
- s.Close = true;
- closeLock = false;
+ thisbox.Close ++= function(v) {
+ if (!closeLock) {
+ closeLock = true;
+ s.Close = true;
+ closeLock = false;
+ }
cascade = v;
}
/** manually redirect s.Close */
- s.Close ++= function(v)
- {
+ s.Close ++= function(v) {
if (closeLock) return;
closeLock = true;
Close = true;
@@ -83,19 +82,21 @@
<role:tooltipmanager />
/** access to the theme parameter setting */
- static.theme ++= function()
- {
+ static.theme ++= function() {
var themestr = vexi.params["vexi.theme"];
var themeres = null;
- if (themestr != null)
- {
+ if (themestr != null) {
var sub = themestr.split('.');
var res = vexi[""];
for (var i=0; sub.length>i; i++)
res = res[sub[i]];
themeres = res;
}
- return themeres != null ? themeres : vexi..org.vexi.theme.win2k;
+ var ret = themeres != null ? themeres : vexi..org.vexi.theme.win2k;
+ var str = (""+ret);
+ str = str.substring(0, str.indexOf('$'));
+ vexi.log.debug("using theme "+ret.settings..themename+": "+str);
+ return ret;
}
</vexi>
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Vexi-svn mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/vexi-svn