Hi, below you'll find my (trivial) patch to add a new event to the
Desktop Widget that i called "windowAdded".

By posting this here I hope that either a) somebody tells me that
there already is such an event (i could not find it)
or b) this event gets into the qooxdoo trunk :)

Why would somebody need this event? I needed it when writing a taskbar
widget. I did not want the taskbar to rely on others to tell it when a
window was added. It should get this info from the Desktop widget
directly, which is trivial to do with getWindows()... but when should
it poll the Desktop? Every x seconds?  I could find so suitable event,
so i created this one.

Thanks for your consideration,
Martin

--------8<-----------------------------------
--- MDesktop.js (revision 20551)
+++ MDesktop.js (working copy)
@@ -184,6 +184,7 @@
       }

       this.getWindowManager().updateStack();
+     this.fireEvent("windowAdded");
     },
--------8<-----------------------------------

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
qooxdoo-devel mailing list
qooxdoo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to