3798 Commits

Author SHA1 Message Date
Nick Treleaven
8a817e694b Make utils_build_path() return a copy for safety.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5721 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-04-13 12:59:20 +00:00
Nick Treleaven
0fc97a1177 Remove check for documents[i]->is_valid as foreach_document(i) already does this (oops).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5720 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-04-13 12:22:30 +00:00
Nick Treleaven
9733a9806f Use brackets for DOC_FILENAME() macro 'doc' argument.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5719 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-04-13 12:20:19 +00:00
Nick Treleaven
5e4c8e0ade Update dox for document_compare_by_display_name() with warning
about parameter addresses.



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5718 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-04-13 12:16:02 +00:00
Enrico Tröger
0ddc794ce0 fix function signature (oops)
replace sort_func by compare_func

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5716 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-04-12 17:43:00 +00:00
Enrico Tröger
d478a5cc01 Add missing parts from previous commit, oops
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5715 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-04-12 17:24:13 +00:00
Enrico Tröger
211a963773 Rename document_sort_by_display_name() into document_compare_by_display_name(), thanks again Nick.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5714 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-04-12 17:20:59 +00:00
Enrico Tröger
cb66df3d76 Fix wrong casting of array pointers, thanks Nick.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5713 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-04-12 17:17:54 +00:00
Nick Treleaven
01a04f72bf Remove unnecessary GEANY() macro usage.
Avoid using DOC_VALID() macro.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5712 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-04-11 16:29:01 +00:00
Colomban Wendling
a788a38240 Revert "Don't update parent WorkObjects when updating one in real-time"
This reverts commit 877cc1d97acd185cc7e0e88bb0b014fb74e16072.

This commit broke calltips, we need another fix for it.

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5711 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-04-11 15:54:43 +00:00
Nick Treleaven
8523592d11 Make utils_make_filename() return a copy for safety.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5709 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-04-11 14:26:51 +00:00
Nick Treleaven
45fe0eb088 Refactor with filetypes_get_filename().
Make filetypes_get_conf_extension() static.



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5708 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-04-11 14:21:52 +00:00
Nick Treleaven
de2b01da7b Store VTE path with the session (based on patch by Nicolas
Sierro, thanks).
There's still a bug with loading a project at startup; closing the
project doesn't restore old VTE path.



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5707 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-04-11 12:40:34 +00:00
Enrico Tröger
66c8b7faee Add ui_menu_add_document_items_sorted() and document_sort_by_display_name() to the plugin API.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5705 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-04-10 17:03:41 +00:00
Enrico Tröger
6dd81cb341 Fix mapping of SQL tags for Geany's symbol list (closes #3216474).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5704 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-04-10 14:52:57 +00:00
Enrico Tröger
d91810115a Add and use signal "document-reload" to the plugin API.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5703 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-04-10 13:53:05 +00:00
Enrico Tröger
f34622e8ad Ignore scrolling events in on_update_ui().
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5702 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-04-10 12:08:24 +00:00
Nick Treleaven
9cd027ac50 Remove old comment, reorder stash prefs (patch by Dimitar Zhekov, thanks).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5701 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-04-08 16:49:38 +00:00
Colomban Wendling
2d06cd6c5a Don't set font twice for line numbers and braces
No need to set the font for some specific styles that are set up anyway
when we set the font for all styles from 0 to STYLE_MAX.

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5700 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-04-08 01:35:58 +00:00
Colomban Wendling
b88a277a06 Add highlight for triple-quoted verbatims
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5697 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-04-08 00:13:37 +00:00
Nick Treleaven
20bab74fd5 Don't auto-enable case-sensitive option when enabling regex in
Find/Replace dialogs.



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5695 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-04-05 16:16:47 +00:00
Nick Treleaven
4a5c07a106 Remove TEMPLATES_GET_FILENAME() macro.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5694 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-04-05 15:47:31 +00:00
Nick Treleaven
e3b2ea1617 Make Project->Properties the last menu item so it's faster to use.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5689 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-04-04 17:05:44 +00:00
Colomban Wendling
92ab59a2bb Fix a leak and reword an error message
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5688 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-04-03 17:53:06 +00:00
Colomban Wendling
0e0b3687bb Fix ID of newly added commands in the Set Custom Commands dialog
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5687 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-04-03 17:52:49 +00:00
Enrico Tröger
779e00ec26 Reflect the existence of the entered command in Set Custom Commands dialog as well using the yes/no icon.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5686 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-04-03 17:25:27 +00:00
Enrico Tröger
c03d77d8a6 Remove unused variables
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5684 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-04-03 16:35:27 +00:00
Colomban Wendling
4ffcfbba6c Don't allow editing keybinding column of group rows
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5681 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-04-03 15:54:28 +00:00
Colomban Wendling
65800f76c9 Simplify a bit Set Custom Command dialog code
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5680 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-04-03 15:54:09 +00:00
Colomban Wendling
a009c2b48e Fix loading and updating menu accelerators for custom commands
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5679 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-04-03 15:53:48 +00:00
Colomban Wendling
c9aaf4a775 Improve the Set Custom Commands dialog
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5676 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-04-02 18:36:35 +00:00
Colomban Wendling
8365912850 Make Send selection to send the current line if there is no selection
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5675 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-04-01 20:52:31 +00:00
Nick Treleaven
da4edc441b Remove old filetype templates support - users can use custom file
templates instead.



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5674 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-04-01 16:27:38 +00:00
Nick Treleaven
89f9182c51 Tweak some build dialog labels:
Clear -> Reset.
Fix capitalization.



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5672 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-04-01 16:02:17 +00:00
Nick Treleaven
e8c68d7e11 Move Preferences dialog Toolbar tab under Interface tab.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5671 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-04-01 12:41:26 +00:00
Nick Treleaven
c3e5bd956c Use mimetype icon in File Properties dialog.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5669 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-04-01 11:56:09 +00:00
Nick Treleaven
c262398083 Rename Preferences dialog Interface subtab More -> Notebook tabs.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5668 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-04-01 11:31:29 +00:00
Colomban Wendling
b52dbb2719 Always try to honor the charset found in the document
Don't assume a file that is valid as UTF-8 is actually UTF-8 if we
have an information telling us otherwise in the document (a regex
match).

Also fix check for locale encoding.

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5667 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-03-31 23:28:10 +00:00
Colomban Wendling
907a79263d Better handle badly-written encoding names
Make encoding name comparison more permissive, finding names that are
very likely to refer to the same encoding.
For example, "utf8" now matches "UTF-8", and "iso8859_1" matches
"ISO-8859-1".

This makes encodings_get_idx_from_charset() and
encodings_get_from_charset() more permissive, and allow to normalize
an encoding name.
It is used to better handle user-provided encodings (e.g. one found by
a regex search) by normalizing it to the Geany name.

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5666 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-03-31 23:27:58 +00:00
Colomban Wendling
b32bb7943f Align fill() calls in init_encodings() for better readability
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5665 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-03-31 23:27:45 +00:00
Colomban Wendling
dfe0512ec9 Update regex for encoding detection to match quoted names
This allows encoding="utf8", adding support for XML encoding detection.

Closes #3183506.

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5664 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-03-31 23:27:33 +00:00
Nick Treleaven
bbe0472a0d Use STYLE_MAX instead of 127 for editor_set_font(). This fixes a
crash in the Split Window plugin when changing filetype (patch by
Matthew Brush, thanks; fixes #3255968).



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5653 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-03-30 12:20:18 +00:00
Colomban Wendling
417adeb302 Fix a few Doxygen warnings
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5652 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-03-29 23:52:03 +00:00
Colomban Wendling
ef9360c78b Add plugin_{idle_add,timeout_add,timeout_add_seconds}() to the plugin API
These functions does the same as the corresponding GLib functions but
makes sure that the added GSource will be removed when the plugin is
unloaded, preventing possible crashes.

These are only convenience functions for the plugin author not to have to
care about the case the plugin gets unloaded, he can still manually
manage hes GSources if he wants to.

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5650 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-03-29 23:20:14 +00:00
Nick Treleaven
22038400cc Add filetypes_get_sorted_by_name() to API.
Fix --ft-names sorting to print in name order, not title order.



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5649 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-03-29 18:06:26 +00:00
Nick Treleaven
acc3e96e5f Fix undocumented parameter.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5648 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-03-29 17:55:26 +00:00
Nick Treleaven
39674589f4 Fix sign comparison warnings.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5647 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-03-29 16:48:37 +00:00
Colomban Wendling
8640d845d0 Don't update parent WorkObjects when updating one in real-time
Updating the parent may lead to performance issues if an object have
too many parents since they are updated recursively.

Parent objects are still updated when saving the file.

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5642 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-03-28 20:36:06 +00:00
Enrico Tröger
b235ae2f7e Add new keybinding 'Remove Markers and Error Indicators'.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5641 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-03-27 16:05:00 +00:00
Enrico Tröger
5521c67983 Initialize GLib's Gthread system early at startup in case any plugins need it.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5637 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-03-27 15:04:58 +00:00