3790 Commits

Author SHA1 Message Date
Enrico Tröger
938477a073 Fix X PRIMARY selection issue when Scintilla widget is unrealized/re-realized (Backport from Scintilla HG, original patch by Matthew Brush).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5692 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-04-04 18:03:35 +00:00
Colomban Wendling
c06d9af6d5 Update the ChangeLog for last commit (oops)
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5691 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-04-04 18:01:14 +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
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
a43d27d0a4 Replace escape character '\' by slash '/' in paths in the Windows Makefiles (patch by Matthew Brush, thanks).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5685 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-04-03 16:38:31 +00:00
Enrico Tröger
abdb3c4c20 Add Scintilla's version.txt file.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5683 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-04-03 16:21:50 +00:00
Enrico Tröger
c0b726a298 Update Scintilla to version 2.25.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5682 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-04-03 16:16:52 +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
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
0b79063580 Fix date in the ChangeLog (oops)
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5677 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-04-02 20:09:42 +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
17f12625ac Fix title capitalization.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5670 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-04-01 12:25:10 +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
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
07fed6de1e Don't hide directories matching hidden file extensions e.g. foo.o.
Refactor with check_object().



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5663 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-03-31 17:58:01 +00:00
Nick Treleaven
e6c579c624 Fix optimization for filter check when pattern is '*'.
Use foreach_strv() instead of foreach_c_array().



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5662 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-03-31 17:28:03 +00:00
Nick Treleaven
b41b021674 Fix applying default setting for hide_object_files (oops).
Fix warning when enabling plugin from the Plugin Manager.



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5661 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-03-31 15:34:55 +00:00
Nick Treleaven
d69f8f69f6 Make 'Hide object files' preference configurable with file
extensions.



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5660 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-03-31 15:01:24 +00:00
Nick Treleaven
953be445cb Remove confusing macro CHECK_READ_SETTING().
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5659 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-03-30 16:18:47 +00:00
Colomban Wendling
cbf238fff4 Reflow a few paragraphs in the ChangeLog not to go beyond 72th column
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5658 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-03-30 15:04:42 +00:00
Colomban Wendling
12db21f519 Properly use 0 as the invalid timeout source ID, rather than G_MAXUINT
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5657 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-03-30 14:59:25 +00:00
Nick Treleaven
a1f96c36ae Fix Instant Save preferences combo box filetype order.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5655 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-03-30 12:47:26 +00:00
Nick Treleaven
93d65a1daf Update styles when the filetype changes (based on patch by
Matthew Brush, thanks).



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5654 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-03-30 12:31:29 +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
8b737e707d Use new plugin_idle_add(), preventing an unlikely crash
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5651 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-03-29 23:20:29 +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
67da926029 Add #filenames subsection for filetype definition files explaining
the filename extensions and special cases.



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5644 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-03-29 13:51:50 +00:00
Nick Treleaven
f94f860f3f Add #reading-styles-from-another-filetype subsection, based on
patch by Matthew Brush (thanks).



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5643 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-03-29 13:26:39 +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
Colomban Wendling
2fcb9c6790 Revert r5636 "Remove widget reparenting in Split Window plugin"
It breaks the X PRIMARY selection on the normal Geany editor.

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5640 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-03-27 16:02:34 +00:00
Colomban Wendling
e5071473c1 Revert r5638 "Enable SplitWindow build on Windows again."
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5639 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-03-27 16:02:21 +00:00
Enrico Tröger
9b8b01a0b2 Enable SplitWindow build on Windows again.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5638 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-03-27 15:28:02 +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
Colomban Wendling
df172dfedd Remove widget reparenting in Split Window plugin
Instead of reparenting the documents notebook full of
ScintillaObjects, just ref it, remove it from the old parent, add
it to the new parent, and then unref it.  This fixes the display
issue on Windows and seems to have no issues on Linux.

Patch by Matthew Brush, thanks.
Closes #2725342.

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5636 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-03-27 15:02:07 +00:00
Colomban Wendling
9704e8f954 Don't unsplit when closing the document if we can show another one
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5634 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-03-27 00:18:31 +00:00
Colomban Wendling
35d5bb2c24 Fix confusing terminology in Split Window plugin menu labels
Patch by Matthew Brush, thanks. Closes #2796316.

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5633 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-03-27 00:18:18 +00:00
Colomban Wendling
fc910a2448 Enable code folding in splitview window (closes #3097780)
Based on a patch by Matthew Brush, thanks!

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5632 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-03-27 00:18:05 +00:00
Colomban Wendling
4c7ad1f113 Add possibility to detect the indentation width from the file content
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5631 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-03-26 17:25:24 +00:00
Colomban Wendling
fb16bf90d4 Fix the sidebar popup menu to popup for the correct selection
Fix the sidebar popup menu to properly use the currently selected item
rather than the previous one.

Also change the hack used for the selection to be updated in the input
handlers (key and mouse button) to call the GtkTreeView's handler
manually rather than doing the actual job in IDLE callbacks for the
TreeView's handler to have run.
This prevents from having several different handlers but removes the
need to work in IDLE time and then possible have a lag, as well as
simplifying the code.

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5630 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-03-26 03:12:50 +00:00