From: Scott L. <sl...@cs...> - 2002-04-04 07:53:51
|
I've mostly finished testing style.scm. Ugh, this file is annoying :-(. I wasn't able to test the following functions because I need to find apps that set the hints and I don't know how to check reasonably easily whether an app uses these hints and I don't know which apps set this hints. This is where the help comes in. I need to find apps that set these hints. If you know of such apps I can just use them. If you know how to check what hints an app has set I can look through a lot of apps that seem likely to be setting hints until I find ones to use to test these hints. The untested hint stuff is: #:hint-override, #:mwm-decor-hint, #:mwm-func-hint, #:PPosition-hint, #:OL-decor-hint, #:lenience Anyway, everything else in the file is tested. Summary: Mostly doc fixes. Added new concepts 'Style Option' and 'Style Entry'. A few documentation of broken C routines breaking the scheme stuff. A couple of fixed functions. Changelog: Changes in scheme/: * style.scm: Added comment about what the structure for a style looks like. Added docs for 'style-one-window', 'clear-window-style', 'make-style', 'make-conditional-style', 'apply-style'. Improved doc for 'window-style'. Fixed 'window-unstyle' so that it works for splicing styles. Also, added note to doc that it removes all instances of the style. Fixed 'clear-window-style' which was accessing an undefined variable. Added comments explaining private functions 'mcs-complain', 'mcs-parse-args'. Added concept for 'Style Entry'. Formatting improvements for style-entry:* functions. Improved 'simplify-style' by making it actually do some simplification. Specifically, made it remove empty styles (which get created all the time by splicing styles). Added BROKEN comments to #:icon-title, #:start-iconified, #:decorate-transient. #:start-iconified crashes scwm because the 'iconify-window' call is made before the icon window created because of where the hook runs. This appears to be in order to make #:start-iconified sort of work. Removed #:start-iconified option until this can be fixed. Discovered that #:show-icon only works as a hint and only when set to #f. Changed from style to hint to reflect when it actually works. Found out #:icon only works as hint. Changed to hint from style until 'set-icon!' gets fixed. Causes window to vanish when applied to an existing window. Added FIXME noting that #:button x only shows the button if it is bound to a mouse event (very unintuitive). Added FIXME about adding documentation to style options. Fixed #:other-proc style option which was not setting the option type. Added FIXMEs for the following style options which have not been tested yet: #:hint-override, #:mwm-decor-hint, #:mwm-func-hint, #:PPosition-hint, #:OL-decor-hint, #:lenience. * style-options.scm: Added concept for 'Style Option'. Changes in src/: * face.c: Added FIXME for documenting style options. Improved doc for 'Window Style' concept and added references to new concepts added 'Style Option' and 'Style Entry'. Whew. Glad that one's mostly over :-) - Scott |