Mercurial > geeqie
view HACKING @ 622:54e20abb5c6d
Fix display of collection in overlay info.
Due to markup escaped <i>collection</i> was displayed instead of collection's in italic.
Overlay info syntax was extended to allow the wrapping of displayed data with markup.
General syntax is: %name[:length limit][:extra]%
Extra string uses special character '*' to mark the place of the data to display.
If no '*' is present, then extra string is just appended to data.
Any "\n" is replaced by a newline on display.
Pango mark up is accepted in left and right parts.
If data is empty, nothing will be displayed.
Examples:
"%name:<i>*</i>\n%" -> name is displayed in italics ended with a newline
"%size:\n%" -> size is displayed with a newline at end
"%formatted.ISOSpeedRating:ISO *%" -> prefix iso number with "ISO " (ie. "ISO 100")
"Collection <b>*</b>\n" -> display collection name in bold prefixed by "Collection " and a newline is appended
Collection name formatting was slighly improved by not displaying the .gqv extension.
The default overlay info string was modified to use the new syntax, but older info strings should be
displayed as usual.
author | zas_ |
---|---|
date | Sat, 10 May 2008 21:29:53 +0000 |
parents | f31ae0d9e163 |
children | b9a9a457860d |
line wrap: on
line source
A brief overview for those that wish to work with the source. The Makefiles and configure script are generated by the autogen.sh script, usually only distributed with snapshot releases. Running autogen.sh requires automake and autoconf. GNU gettext may also be needed by autogen.sh. SVN commits _require_ an explicit log message. Think it will be used in the release Changelog. Coders should respect general coding style (see CODING). Coders, please resync po/POTFILES.in if you add or remove source files from src/ directory (using regen_potfiles.sh script in po/) and re-run make update-po when appropriate to keep translations in sync with the code. Maintainers, don't forget to run make update-po before releases. Translators, please have a look at po/README.