2662 Commits

Author SHA1 Message Date
Enrico Tröger
454a871de2 Use Python from CTags SVN.
Adapt variable parsing code from the old parser code.
Fix three bugs (see CTags bugs #1988026, 1988027 and 1988130).

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2660 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-06-08 14:04:01 +00:00
Enrico Tröger
46feb9df7d Fix two ambiguous encoding names for better compatibility with libiconv (closes #1986134).
Improve the regular expression for detecting encoding cookies to allow more variants (e.g. "encoding: utf-8").

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2659 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-06-08 12:18:20 +00:00
Frank Lanitz
dd03f5e708 Little update of a string
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2658 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-06-07 11:42:31 +00:00
Frank Lanitz
37b515377d Update of German translation
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2657 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-06-07 11:30:09 +00:00
Nick Treleaven
6cb19c0ae1 Revert use of SCN_PAINTED - this is called much more often than
SCN_UPDATEUI and slows down Geany.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2656 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-06-06 16:53:48 +00:00
Enrico Tröger
3f33385c76 Remove unused imports.
Remove hacks for Doxyfile.in and geany.desktop.in.
Move htmldoc and apidoc targets into shutdown().         


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2655 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-06-06 16:38:34 +00:00
Enrico Tröger
3a5345c3d4 Fix diff output when files were manually added with 'git add' in GIT repositories (patch by Yura Siamashka).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2654 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-06-06 14:53:40 +00:00
Enrico Tröger
ffbc70bb69 Rename geany.desktop.in.in in geany.desktop.in as we need to process it only once.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2653 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-06-06 14:27:08 +00:00
Enrico Tröger
3918e53219 Display current file position in the status bar when compiled with GEANY_DEBUG.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2652 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-06-06 14:17:16 +00:00
Nick Treleaven
4c6be39e95 Add comment for last commit:
Also fix the document last_check assignment so that the disk is only
polled every file_prefs.disk_check_timeout seconds (not sure how
this got missing - maybe it was my fault?).


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2651 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-06-06 12:37:10 +00:00
Nick Treleaven
17351f2534 Check that the current file is still on disk as well as checking the
modification time.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2650 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-06-06 12:31:05 +00:00
Enrico Tröger
d56ef68ae4 Remove check for unistd.h, assume it is available (already often used without checking).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2649 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-06-05 16:52:39 +00:00
Nick Treleaven
d4748f43dd Fix segfault after Save As (oops).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2648 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-06-05 16:42:28 +00:00
Nick Treleaven
6e91b0aba1 Update documentation for real_path, minor edit of file_name.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2647 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-06-05 16:07:39 +00:00
Enrico Tröger
ccb2b3ca78 Add alternative build system: Waf.
Use wafinit.sh to create a Makefile and configure files.

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2646 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-06-05 14:05:55 +00:00
Nick Treleaven
9268c9a1dc Replace 2 macros only used locally with const char pointers.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2645 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-06-05 12:43:10 +00:00
Nick Treleaven
4fb246b243 Only reorder recent files on closing documents that have existed on
disk.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2644 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-06-05 12:36:48 +00:00
Nick Treleaven
aff4cdbc69 Only save session documents that have existed on disk (don't save
documents with a filename set but have never been saved).


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2643 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-06-05 12:21:50 +00:00
Nick Treleaven
73d817275a Only set GeanyDocument::real_path when the file exists on disk -
after a successful save or open.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2642 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-06-05 12:14:51 +00:00
Enrico Tröger
7c591fbebd Change preprocessor checks for sys/time.h and remove unnecessary sys/stat.h check.
Remove useless or unused configure checks.
Install THANKS file by default.

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2641 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-06-04 15:43:52 +00:00
Enrico Tröger
85febd5fd7 Restore the previous state of main_status.quitting status when asking for reload a changed file instead of setting it to true. Oops.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2640 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-06-04 13:23:43 +00:00
Enrico Tröger
8a0bcccced When quitting, prevent inconsistent GUI elements when cancelling on an unsaved file.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2639 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-06-03 18:15:52 +00:00
Nick Treleaven
4d3ba6e7a2 Fix using wrong encoding for document filename when doing a
directory diff.
Replace find_by_filename() with p_document->find_by_filename() (now
it does the same job).


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2638 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-06-03 17:26:22 +00:00
Nick Treleaven
50b0a10654 Note: this breaks the plugin API for plugins using
document_find_by_filename().
Make document_find_by_filename() take only a utf8_filename argument,
and now match any documents that have a filename set but aren't saved
on disk.
Add document_find_by_realpath() to the plugin API.
Add filename argument for document_save_file_as().
Add GeanyDocument::real_path field, which if non-NULL indicates the
file once existed on disk (not just as an unsaved document filename).


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2637 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-06-03 17:22:04 +00:00
Enrico Tröger
45c62d7e3b Fix slightly wrong preprocessor checks.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2636 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-06-03 16:30:54 +00:00
Nick Treleaven
df328e491a Fix file header notice, copyright, Id string.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2635 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-06-02 16:30:27 +00:00
Nick Treleaven
b449de93d3 Cancel any autocompletion list when completing a snippet.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2634 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-06-02 16:05:03 +00:00
Nick Treleaven
1cbbb727c2 Fix possible document double-colourise after reloading a file.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2633 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-06-02 15:52:00 +00:00
Nick Treleaven
a86ccc6797 Reload a changed document immediately on user clicking reload
(waiting was not related to the now fixed reload-colourise problem).


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2632 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-06-02 15:50:56 +00:00
Nick Treleaven
37e0d1f3f1 Move GeanyDocument GUI elements and saved_encoding to private
Document struct which inherits from GeanyDocument. This is to hide
implementation fields from the plugin API, so that we can change
them if necessary.
Add DOCUMENT() macro to convert a GeanyDocument* to a Document*.
Also move UNDO_*, FileEncoding to documentprivate.h.
Move undo_action struct to document.c.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2631 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-06-02 15:31:59 +00:00
Nick Treleaven
e6b428a9a4 Handle non-Scintilla GUI updates after SCN_PAINTED instead of
SCN_UPDATEUI to hopefully appear more responsive to typing.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2630 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-05-30 14:45:17 +00:00
Nick Treleaven
6acddad7cb Allow line breaking after typing any character, not just wordchars.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2629 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-05-30 14:25:22 +00:00
Nick Treleaven
606f6b70d5 Add deprecated macro for doc_array.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2628 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-05-30 14:18:43 +00:00
Enrico Tröger
2baec0ea70 Remove code that should not have been comitted. Oops.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2627 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-05-29 18:07:18 +00:00
Enrico Tröger
6ca0d4c471 Remove underscore prefix from some struct names.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2626 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-05-29 18:02:20 +00:00
Enrico Tröger
d8897914a8 Fix build with GTK >= 2.10.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2625 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-05-29 17:31:27 +00:00
Nick Treleaven
be0d9e8ea7 Note: this breaks the plugin API.
Replace doc_array with documents_array, a pointer array. This is
necessary to avoid breaking the ABI every time a field is added to
GeanyDocument.
Remove deprecated pluginmacros.h documents macro, to avoid a
conflict.
Replace doc_list[] macro with documents[] macro, which returns a
GeanyDocument pointer.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2624 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-05-29 17:00:54 +00:00
Enrico Tröger
4198167584 Add again all GTK libraries to linker flags for each plugin.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2623 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-05-28 16:09:16 +00:00
Enrico Tröger
7583e5e3db Add media types for screen and print to have a clean version of the manual for printing.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2622 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-05-28 15:35:27 +00:00
Nick Treleaven
e00f73bc5d Note: this breaks the plugin API.
Remove plugin symbol configure().
Add plugin symbol plugin_configure() which is used to tell Geany a
widget to pack into the plugin preferences dialog, and connect a
response callback for when the dialog receives a user decision.
This allows Geany to in future implement a common preferences dialog
for all plugins, without breaking the plugin API/ABI.
Add Apply button for plugin preference dialogs (to indicate plugins
should handle the apply response as well as OK, as a multiple plugin
configuration dialog would want an apply button).


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2621 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-05-28 13:05:09 +00:00
Nick Treleaven
d5af5049b3 Use plugin_init() in comments.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2620 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-05-27 17:03:43 +00:00
Nick Treleaven
4f79ebb646 Make plugin_free() act like a destructor only, let
pm_dialog_response() call a separate function to only free non-active
plugins.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2619 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-05-27 15:10:08 +00:00
Nick Treleaven
c553028808 Fail to load a plugin if it has no plugin_init() function.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2618 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-05-27 14:47:38 +00:00
Nick Treleaven
a87b2e57b9 Fix plugins to compile with GEANY_DISABLE_DEPRECATED.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2617 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-05-26 17:24:11 +00:00
Nick Treleaven
df1a8e63a3 Add plugin_ prefix for plugin symbols version_check, init and
cleanup. Deprecate init and cleanup; update PLUGIN_VERSION_CHECK
macro.
Add a debug message and fail to load a plugin if it has no
plugin_version_check() function.
Check that plugin keybinding names have been set in plugin_init(),
otherwise print a debug message and ignore all of them.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2616 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-05-26 17:09:43 +00:00
Nick Treleaven
84bd788bc3 Fix compilation (oops).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2615 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-05-26 14:22:02 +00:00
Nick Treleaven
d3f67e813e Move all symbol lookups except plugin_set_info() into plugin_init().
Add debug message for missing init() function in a plugin.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2614 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-05-26 14:17:41 +00:00
Frank Lanitz
dee810735e Update of Russian translation.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2613 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-05-25 19:40:56 +00:00
Nick Treleaven
8c1c59eecf Deprecate PLUGIN_INFO() in favour of PLUGIN_SET_INFO().
Remove plugin symbol info(), which is replaced by plugin_set_info()
and a new symbol plugin_info. This is so the PluginInfo struct is
zero'd first by Geany, so plugins are still ABI compatible if we
want to add any more fields in the future.
Fail to load a plugin if plugin_info->name is not set.
Remove now unused string.h include from plugindata.h.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2612 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-05-23 17:08:58 +00:00
Nick Treleaven
c9bd4decea Increment plugin ABI, API versions for plugin_callbacks change.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2611 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-05-23 14:14:04 +00:00