5537 Commits

Author SHA1 Message Date
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
Nick Treleaven
3aa483d82f Update path when saving a new document for the first time if the
follow path option is enabled.



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5706 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-04-11 12:07:19 +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
7a3530b3c6 Copy C styling rather than redefining the styles
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5699 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-04-08 00:14:06 +00:00
Colomban Wendling
c3828e448c Highlight triple-quoted verbatims in Vala, Genie and Scala filtypes
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5698 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-04-08 00:13:53 +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
Colomban Wendling
d6278f3381 Make hightlighting of triple-quoted verbatim an option
Backport from Scintilla HG (3602:5536ed81a85b).

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5696 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-04-08 00:13:24 +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
Enrico Tröger
8e6ed9905c Reset cursors when Scintilla widget is realized (Backport from Scintilla HG, original patch by Matthew Brush).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5693 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-04-04 18:06:09 +00:00
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
Colomban Wendling
b7e0ebfea1 Fix font rendering in the Scintilla when using Cairo
Always get the Pango context through GTK+ API rather than creating it
from a Cairo context to always get a context set up for the screen.

This fixes font size issues when using Cairo rendering.

Patch imported from upstream Mercurial (3596/070c7eb483bf).

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5690 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-04-04 17:58:07 +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
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
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
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
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
Frank Lanitz
3223eca450 Update of German translation
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5678 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-04-03 11:52:27 +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
e5cb685ccc add item: filetype-independent run command & keybinding.
Update & edit 2 items.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5673 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-04-01 16:10:51 +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
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
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