[Geany-devel] [PATCH 19/19] Use per document indent sizes

Jiří Techet techet at xxxxx
Wed Aug 4 23:59:53 UTC 2010


Different documents may use different indent size and it's often necessary
to have all of them opened in parallel and use the correct indent size
for each of them.

The current implementation doesn't save the indent size to the project and
session file - this can be added if desired.

Right now the indent size is set from a submenu of the document menu.
This can be changed to use dialog to set the indent size; also a combined
approach is possible - display only the common sizes in the submenu
(2, 4, 8) with "others" item that opens the dialog to set the more esoteric
indent sizes.

Signed-off-by: Jiří Techet <techet at gmail.com>
---
 geany.glade     |  150 ++++++++++++++++++++----
 src/callbacks.c |   23 ++++-
 src/callbacks.h |    4 +
 src/document.c  |    8 +-
 src/editor.c    |   16 ++-
 src/editor.h    |    3 +
 src/interface.c |  350 +++++++++++++++++++++++++++++++++++--------------------
 src/keyfile.c   |    2 +-
 src/ui_utils.c  |   10 ++
 9 files changed, 406 insertions(+), 160 deletions(-)

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0019-Use-per-document-indent-sizes.patch
Type: text/x-patch
Size: 59710 bytes
Desc: not available
URL: <http://lists.geany.org/pipermail/devel/attachments/20100805/5580614d/attachment.bin>


More information about the Devel mailing list