8235 Commits

Author SHA1 Message Date
Thomas Martitz
b741ea76df doc: Makefile.am cleanup
- split doxygen make recipe up
- rename geany_includedir to geany_gtkdocincludedir
- removed all references to geany-scintilla-gtkdoc.h

Also, remove geany-scintilla-gtkdoc.h from .gitignore
2016-02-16 07:08:58 +01:00
Matthew Brush
c0bde0dbf4 Add check for lxml package if Python is enabled
This prevents a make-time error later if it can't be imported. lxml is
considered optional so there's no build failure if Python doesn't exist or if
the lxml package can't be imported.
2016-02-16 06:52:09 +01:00
Matthew Brush
8033e26180 Remove commented-out code 2016-02-16 06:52:09 +01:00
Matthew Brush
5a391c79c3 Replace comments and asserts with doc-comments and doc-tests 2016-02-16 06:52:09 +01:00
Matthew Brush
4f3e32e95f Rename global "constant" to follow PEP-8 naming 2016-02-16 06:52:08 +01:00
Matthew Brush
402e771c9b Use 4-space indentation to follow PEP-8
The other Python scripts already follow this convention.
2016-02-16 06:52:08 +01:00
Matthew Brush
5534e5cca0 Move globals into main() function
This prevents running a bunch of top-level code if the module is
ever imported and cleans-up the global namespace.
2016-02-16 06:52:08 +01:00
Matthew Brush
5290f18916 Exclude new generated files from VCS 2016-02-16 06:52:08 +01:00
Thomas Martitz
7279037dd6 project: change GeanyProject::file_patterns type to GStrv
GStrv is identical to gchar ** (as per typedef) but a bit more gir friendly.
This does not break the ABI or API.
2016-02-16 06:52:03 +01:00
Thomas Martitz
658821d2dd api: add script to generate {geany,geany-scintilla}-gtkdoc.h
The script reads the doxygen xml output and generates two headers (optionally
a single header) that contains all of the plugin API in gtk-doc format.

Two headers because it's preferrable to group Scintilla related stuff
into its own namespace. This is a lot easier if g-ir-scanner can
work with a separate header file. If we change minds later on the script is
prepared to generate only one header.
2016-02-07 17:50:23 +01:00
Thomas Martitz
bfa0946420 doxygen: various doxygen-related fixes in preparation for gtkdoc generation 2016-02-07 17:50:23 +01:00
Thomas Martitz
d8f75b7d0f doxygen: generate xml too in preparation for gtkdoc generation
A script will use the xml to generate a gtkdoc'ized header of the plugin API.
The xml files are also installed so that external users can use the xml
that corresponds to the installed version of Geany.

For now a separet doxyfile is used because the gtkdoc'ized header needs
a few types to be documented which not desired to be documented generally.
2016-02-07 17:50:23 +01:00
Enrico Tröger
1ca2554b3a Merge pull request #878 from eht16/drop_obsolete_plugin_test_script
Remove obsolete scripts/plugin_test.c
2016-02-07 14:27:03 +00:00
Frank Lanitz
1be0a255f7 Update of Japanese translation 2016-01-28 19:47:00 +01:00
Colomban Wendling
496d51210c Merge pull request #839 from kugel-/gboxed-types
GBoxed types
2016-01-25 23:10:37 +01:00
Colomban Wendling
85f16ebf78 Merge pull request #874 from kugel-/sci-api-export
scintilla: add scintilla_object_* to the plugin api
2016-01-25 23:09:17 +01:00
Giuseppe Penone
a32a0d5be3 updated language Italian 2016-01-24 23:20:44 +01:00
Enrico Tröger
632b215f77 Remove obsolete scripts/plugin_test.c
This script was used in the nightly builds to verify plugins will load
and have no undefined symbol references. Since the new way plugins
are built and linked, this is no longer necessary.
Additionally, this script won't work with new style geany_load_module()
plugins.
2016-01-23 15:29:03 +01:00
Thomas Martitz
43737733ac plugin api: convert StashGroup to GBoxed internally
Because the stash_group_new() is an exported API, it has to be at least a boxed
type to be usable for gobject introspection. The boxed type uses reference
counting as opposed to memory duplication.

The obligatory stash_group_dup() is not exported (doesn't have to).
2016-01-19 17:08:59 +01:00
Thomas Martitz
9a38b7ac20 plugin api: convert TMSourceFile to GBoxed internally
Because the tm_source_file_new() is an exported API, it has to be at least a
boxed type to be usable for gobject introspection. The boxed type uses
reference counting as opposed to memory duplication.

The obligatory tm_source_file_dup() is not exported (doesn't have to).
2016-01-19 17:08:56 +01:00
Thomas Martitz
a032ed506e scintilla: add scintilla_object_* to the plugin api
Analogous to their legacy counterparts. Also required for gir-bindings
generated via g-ir-scanner.
2016-01-19 17:05:30 +01:00
Colomban Wendling
99938dd821 Update Scintilla to version 3.6.3
Includes improvements for Lua 5.3 and Perl 5.22.
2016-01-18 04:22:26 +01:00
Daniel Șuteu
f3a5dd609a Add file-extensions for Clojure
The extensions are from Wikipedia: https://en.wikipedia.org/wiki/Clojure

Closes #842.
2016-01-18 03:43:35 +01:00
Colomban Wendling
bfd5587f4f Merge pull request #852 from b4n/reflow-hang
Fix hang in reflow command (and small improvements around)
2016-01-18 03:40:56 +01:00
Colomban Wendling
50212093ba Merge pull request #831 from b4n/cuda/tags
CUDA: Use C++ ctags parser
2016-01-18 03:34:02 +01:00
Colomban Wendling
a7ce20dc59 Merge pull request #826 from kugel-/doxygen-fixes2
Doxygen API fixes and cleanup.
2016-01-18 03:19:15 +01:00
Thomas Martitz
9f6f6cfb78 gir: keybindings: adhere to user_data naming convention
This helps g-ir-scanner recognizing the data parameter as context storage,
allowing object methods to be used as callback (via wrappers). It goes even
so far that g_object_unref is propery passed as destroy func to
keybindings_set_item_full() and plugin_set_key_group_full().
2016-01-17 14:13:45 +01:00
Colomban Wendling
1c4a9d8dd3 C++: Fix parsing of global scope qualifiers in base class lists
See also https://sourceforge.net/p/ctags/bugs/194/

I didn't use the exact upstream patch only altering the C++ code path,
because as far as I know no c.c language recognize two consecutive
colons separated by whitespace as a single token, so there's no point
in carrying on mistakes from the past.
2016-01-17 04:03:24 +01:00
Colomban Wendling
440a736018 C++, C#: Properly set scope on namespaces
Closes #871.
2016-01-17 03:30:06 +01:00
Colomban Wendling
6e0d4ac6ec Merge pull request #581 from techee/symbollist_sort
Make it possible to define default symbol_list_sort_mode
2016-01-13 17:43:03 +01:00
Thomas Martitz
740ecb00fb doxygen: fix doxygen warnings about filetypes_array references. 2016-01-12 07:15:54 +01:00
Jiří Techet
1ea072e125 Make it possible to define default symbol_list_sort_mode
Both sorting by name and appearance makes sense for most languages. Some
users may prefer sorting by appearance so make it configurable in
preferences (the possibility to override the settings for specific
filetypes is preserved).

Thanks to Colomban Wendling for lots of improvements of this patch.

Fixes #313.
2016-01-11 23:36:50 +01:00
Colomban Wendling
e7429d4cdb Merge branch 'gb-new'
Nothing to see here, is there :)
2016-01-11 02:31:01 +01:00
Colomban Wendling
4d4573c5d8 Merge pull request #855 from techee/changelog
Concatenate ChangeLog.pre-0-17 and ChangeLog.pre-1-22
2016-01-09 20:18:29 +01:00
Colomban Wendling
28f7c169fc Merge pull request #652 from b4n/kb/file-properties
Allow to set a keybinding for File->Properties
2016-01-09 20:07:23 +01:00
Colomban Wendling
8099fddd92 Remove leftover references to SVN
Closes #856.
2016-01-09 19:59:09 +01:00
Jiří Techet
5620c7df32 Concatenate ChangeLog.pre-0-17 and ChangeLog.pre-1-22
These files aren't updated (and probably read by anyone) any more and
it's better to have less "garbage" files in the root.
2016-01-06 21:52:46 +01:00
Colomban Wendling
4a2890667e vhdl: Fix a typo
This has no actual impact as the kind is not used anywhere anyway.

Part of #849.
2016-01-06 14:30:03 +01:00
Frank Lanitz
001fd5c52f Merge pull request #849 from BenWiederhake/master
Fix a huge amount of type inside overall Geany
2016-01-06 10:56:51 +01:00
Colomban Wendling
e083c8d1c9 reflow: Use plain ASCII space instead of GDK_space
`GDK_space` is not guaranteed to have the value of an ASCII space
(although it does in practice), and using a GDK constant does not make
sense inside a text manipulation function.
2016-01-04 22:30:32 +01:00
Colomban Wendling
ffde79e8ef reflow: Don't split right before a whitespace
Avoid splitting lines right before a whitespace when reflowing (e.g.
in case of several consecutive ones) not to move whitespaces at the
start of the next line, which, while they will be removed later on,
can lead to incorrect reflow width and even fully empty lines.
Prefer leave trailing spaces then, which is less of a problem.
2016-01-04 22:21:19 +01:00
Colomban Wendling
46ed77bf19 reflow: Fix infinite loop on some input with many consecutive spaces
Avoid triggering auto-indentation with consecutive whitespaces when
reflowing, as it can lead to infinite loop if auto-indent leads to
inserting full lines.

Fixes #848.
2016-01-04 21:58:42 +01:00
Ben Wiederhake
2df9f83bf2 Typos overlooked by codespell 2016-01-03 18:44:00 +01:00
Ben Wiederhake
29a6b9c003 Fix typos
All of these typos were found by codespell, so credits go the
the authors of this incredibly useful tool.

I manually confirmed and adapted all changes, which includes
reflowing over-long lines or filling up with spaces for alignment.

Some of these typos may need forwarding to their original authors.
codespell reported a lot words where I am unsure; I have not
included those corrections.
2016-01-03 18:33:25 +01:00
Ben Wiederhake
9941c2d044 Fix obvious typo 2016-01-03 18:01:10 +01:00
Thomas Martitz
ae0fac33f4 doxygen: undo export of some items from commit 302b40e
Some types were undocumented on purpose and shall not be exported just yet.
2015-12-21 20:07:56 +01:00
Devyn Collier Johnson
d1fcd9f226 Add *.asm51 and *.a51 extensions for 8051 assembly
The *.a51 extension is also used for Adobe Authorware files, but we are
unlikely to ever support those.

Closes #739
2015-12-19 17:31:06 -08:00
Colomban Wendling
8d643d6688 Fix missing progress bar during build runs
Restore progress bar pulsation while a build is running, as it was lost
by accident in 690cb922be902f023881d455ae0c0a87d1c62170.

Closes #765.
2015-12-19 17:08:01 -08:00
Matthew Brush
45f531cd4b Fix known memory leak in win32_show_folder_dialog() 2015-12-19 16:56:45 -08:00
Colomban Wendling
9365110c4c CUDA: Use C++ ctags parser
Closes #830.
2015-12-18 21:31:38 +01:00