2715 Commits

Author SHA1 Message Date
Nick Treleaven
8dcfb7e336 Update for doc->editor->scintilla.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/branches/editor-struct@2764 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-07-08 11:26:09 +00:00
Nick Treleaven
bceab8d3e2 Note: this breaks the plugin API for editor-related document fields.
Split new GeanyEditor struct type from GeanyDocument fields.
Add GeanyDocument::editor field.
GeanyEditor::document allows access back to document fields.
GeanyEditor::scintilla replaces GeanyDocument::sci.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/branches/editor-struct@2763 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-07-08 10:50:13 +00:00
Nick Treleaven
a0355ae842 Create branch to split out a GeanyEditor struct type for use in editor.c with fields from GeanyDocument.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/branches/editor-struct@2762 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-07-08 10:42:29 +00:00
Nick Treleaven
18ced215d1 Remove deprecated macros and typedefs (except DOC_IDX_*), as some of
them are likely to cause naming conflicts and all plugins will need
updating since 0.14 anyway.
Add geany macro that simply expands to geany_data.
Deprecate app, main_widgets, prefs, project macros, as the geany
macro can be used instead.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2761 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-07-07 16:16:18 +00:00
Nick Treleaven
61bea15355 Rename plugin-symbols.c pluginsymbols.c.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2760 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-07-07 13:08:07 +00:00
Nick Treleaven
32cbcd33e3 Make line breaking work with multi-line comment completion and
'Newline strips trailing spaces' pref.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2759 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-07-07 11:38:15 +00:00
Nick Treleaven
d994c9f7e1 Fix infinite loop when parsing datatypes (fixes #2011356).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2758 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-07-07 11:09:23 +00:00
Frank Lanitz
378651ddfd Update of some in r2753 forgotten strings and marked a couple of strings as fuzzy, since translation is not 100% correct.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2757 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-07-06 18:27:10 +00:00
Enrico Tröger
cde98b9de3 Revert the change of rev2072: Fix syntax colouring bug when using '?>' in a PHP comment (closes #1838854 and #1848518).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2756 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-07-05 09:52:33 +00:00
Enrico Tröger
b14568d1f8 Rename signal "populate-edit-menu" into "update-editor-menu".
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2755 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-07-05 09:37:37 +00:00
Nick Treleaven
9f28c3a23c Group focus keybinding callbacks together.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2754 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-07-04 13:54:59 +00:00
Frank Lanitz
1ab2dddb3f Minor improvements of German translation
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2753 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-07-03 20:26:02 +00:00
Nick Treleaven
27c5665d01 Add 'Switch to Compiler' keybinding (useful when checking build
progress).


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2752 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-07-03 17:37:00 +00:00
Nick Treleaven
4b34a992c2 Ensure all opened documents are colourised before being drawn
(should happen anyway in document_set_filetype(), but just in case).


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2751 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-07-03 17:21:29 +00:00
Nick Treleaven
8f4106b066 Fix possible segfault for XML tag completion when no '<' brace could
be found.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2750 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-07-03 17:13:34 +00:00
Nick Treleaven
d832e4fe6c Avoid flickering the menu bar when 'Override Geany keybindings'
Terminal pref is set.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2749 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-07-03 17:04:12 +00:00
Enrico Tröger
fdbc255f79 Move the checks for HTML entity completion into an own function to increase readability.
Remove workaround for a wrong styling on last character and replace it with proper style reading (patch by Jason Oster, thanks).

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2748 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-07-03 15:20:44 +00:00
Nick Treleaven
1525e93a7d Fix memory leak in utils_find_open_xml_tag() when size < 3, and only
allocate string when '<' found.
Factor insert_closing_tag() from handle_xml(), fixing a memory leak
when ignoring tags like <br>.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2747 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-07-03 14:39:49 +00:00
Enrico Tröger
7ec5f44fd5 Remove geany.desktop.in from svn:ignore.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2746 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-07-03 14:01:47 +00:00
Enrico Tröger
6c3fe9b2cf Load "ignore_tags" file before generating global tags file.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2745 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-07-03 13:46:01 +00:00
Enrico Tröger
467fbd9ec2 Fix broken session file support with more than 99 files (closes #2007288).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2744 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-07-03 12:51:14 +00:00
Enrico Tröger
d8032f4248 Fix unnecessary 40 character limit for auto-closing XML tags (closes #2007278).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2743 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-07-03 12:32:55 +00:00
Nick Treleaven
70df7f6388 Add document_close() to the plugin API.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2742 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-07-02 13:40:06 +00:00
Nick Treleaven
89161c353d Fix behaviour of Home and End keys in non-editor widgets when they
are set as keybindings for Go to Line Start/End.
This uses a new ignore_keybinding variable because changing
KeyCallback to return gboolean would break plugin keybindings.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2741 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-07-02 11:58:01 +00:00
Nick Treleaven
2c5a71f054 Add function document_close().
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2740 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-07-01 14:20:16 +00:00
Enrico Tröger
2febc39ed5 Add Tools menu item to reload configuration data (at the moment: templates, filetype extensions/configs and snippets).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2739 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-06-30 16:29:12 +00:00
Enrico Tröger
1a1f244cc6 Move code to read snippets configuration to editor.c.
Split editor_snippets_free() from editor_finalize().

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2738 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-06-30 16:14:55 +00:00
Enrico Tröger
1a1361db57 In templates_free_templates() destroy also file template menu items.
Add reload argument to filetypes_load_config() to allow re-reading of the settings.

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2737 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-06-30 15:59:00 +00:00
Enrico Tröger
8422e9d2ba Update waf to its latest SVN rev which makes it 20 KB smaller.
Update waf script to reflect waf API changes.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2736 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-06-30 15:20:50 +00:00
Nick Treleaven
4dfcad1186 Fix stack corruption (cannot use stack GPtrArray as this is just a
base-class for private GRealPtrArray).


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2735 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-06-30 15:15:02 +00:00
Nick Treleaven
dc306e94b3 Use a dynamic pointer array for document sensitive widgets, so it's
easy to group widget names together in the source.
Make 'Close other documents' menu item document-sensitive.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2734 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-06-30 11:49:39 +00:00
Enrico Tröger
2d5d52a08d Add plugin signal "populate-edit-menu" to notify plugins when the editing menu is shown.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2733 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-06-28 15:46:07 +00:00
Enrico Tröger
b2c8cd062c Attempt to make editor_find_current_word() Unicode-safe. Note: this can be done better.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2732 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-06-28 15:42:10 +00:00
Enrico Tröger
0f22574e4b When opening files remotely using the socket, handle filename encoding better and try to auto-detect the used encoding as it might be different each time (hopefully closes #2003980).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2731 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-06-28 08:15:18 +00:00
Nick Treleaven
e49c35299a Add Go to Start/End of Line keybindings (#1996175).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2730 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-06-27 17:54:36 +00:00
Nick Treleaven
2ba80013bc Add 'Close Other Documents' File menu command (#1976724).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2729 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-06-27 17:30:14 +00:00
Nick Treleaven
9386d36f25 Add keybindings for Previous Message, Previous Error commands
(#1931125).


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2728 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-06-26 16:39:41 +00:00
Nick Treleaven
71e03b2cb0 Add Previous Error menu item.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2727 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-06-26 16:17:28 +00:00
Nick Treleaven
24aca5a740 Move struct _VteTerminal, VteFunctions from vte.h to vte.c.
Call vte_restart() in vte_keypress() as the code is the same.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2726 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-06-26 16:14:00 +00:00
Nick Treleaven
52985a7d5a Add Previous Message menu item.
Don't abbreviate Find Prev Selected.
Add ui_tree_view_find_previous().
Set Next Message menu item sensitivity when clicking on Search menu.
Thanks to Beau Barker (skip76) for an initial version of
ui_tree_view_find_previous() (see #1931125).


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2725 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-06-25 17:38:31 +00:00
Nick Treleaven
a2cd1c4916 Move 2 search prefs to new Search tab of Preferences dialog.
Add new search pref: 'Use the current file's directory for Find in
Files' (#1930435).
Add PrefEntry struct which is used for an array containing widget
names to lookup; currently only used for 3 search-related
GtkToggleButton prefs.
Add SettingEntry struct which is used for an array containing keyfile
key and group information; currently only used for 3 search-related
gboolean settings.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2724 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-06-25 11:56:58 +00:00
Nick Treleaven
3157ab8420 Split Preferences dialog Editor tab into a sub-notebook, with
Features, Completions and Display pages. This also reduces the
minimum height of the Preferences dialog.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2723 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-06-24 14:32:54 +00:00
Nick Treleaven
361dec09a2 Make keyboard shortcuts dialog non-modal (#1999384).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2722 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-06-24 12:25:23 +00:00
Nick Treleaven
b74b38c325 Fix Windows build.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2721 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-06-21 16:22:51 +00:00
Nick Treleaven
6e2ce22ec1 Move on_editor_expose_event(), create_new_sci() to editor.c.
Make on_editor_button_press_event() and on_editor_scroll_event()
static.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2720 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-06-20 17:10:51 +00:00
Nick Treleaven
a85c71ee9b Remove document_delay_colourise(), document_colourise_all().
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2719 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-06-20 14:19:57 +00:00
Nick Treleaven
5cd0520618 Use stack buffers for g_vsnprintf() instead of heap allocation.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2718 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-06-20 14:17:15 +00:00
Nick Treleaven
48204adc80 Don't colourise any documents until they need to be drawn. This
should make Save All faster for filetypes that support typename
highlighting, and makes the document_delay_colourise(),
document_colourise_all() functions redundant (they'll be removed in
the next commit).
Note: I'll move on_editor_expose_event() to editor.c.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2717 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-06-20 12:34:13 +00:00
Enrico Tröger
a296a2c388 Scroll by page only when Alt key is held to avoid possible conflicts.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2716 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-06-19 17:42:40 +00:00
Enrico Tröger
01dfd2641a Add "Copy All" to the popup menu of the Status, Compiler and Messages treeviews to copy all items to the clipboard.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2715 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-06-19 17:37:26 +00:00