Enrico Tröger
4122c1b138
Add filetype ActionScript (patch by Chris Macksey, thanks).
...
Update type keywords only for real C-like languages.
Fix wrong sorting of Assembler and Ada filetypes.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3624 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-03-13 09:58:27 +00:00
Enrico Tröger
93b0278a52
Disable the default tab bar menu for the main notebook widget and use a custom menu instead which lists all open files as usual plus 'Close Other Documents' and 'Close All' menu items.
...
Remove GeanyDocumentPrivate::tabmenu_label.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3615 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-03-02 20:34:31 +00:00
Enrico Tröger
38185ff65d
Don't let the tagmanager automatically reparse files if they seem to be changed on disk (affects all files in the current session, not the current one). This should speed up file saving a little bit, especially with remote files.
...
Remove now unnecessary calls to tm_workspace_update().
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3598 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-02-24 18:27:01 +00:00
Enrico Tröger
8cd312e250
Small optimisations by moving out function calls of loop break conditions (patch by Frank, thanks).
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3571 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-02-10 21:11:25 +00:00
Enrico Tröger
d6c1d1e801
Add editor_get_word_at_pos() as a convenient function to retrieve the word at a given position.
...
Make document_get_status_color() returning a const GdkColor.
Add editor_get_word_at_pos() and document_get_status_color() to the plugin API.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3567 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-02-08 19:52:21 +00:00
Enrico Tröger
c4897ee665
Use the document's real path when the VTE setting 'Follow the path of the current file' is used to prevent unnecessary directory changes when symlinks are used (reported by Dominic Hopf).
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3532 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-02-01 18:03:19 +00:00
Enrico Tröger
b2eeefc919
Add some missing @since tags to the API documentation of various functions.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3531 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-01-30 18:53:23 +00:00
Enrico Tröger
8ef5804bbe
Add a hiden preference "allow_always_save" to make the Save buttons/menu items always sensitive and allow saving files even without changes.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3520 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-01-28 17:01:32 +00:00
Enrico Tröger
692cb1364c
Set the documents' mtime field properly for checking disk file changes.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3519 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-01-28 16:18:22 +00:00
Enrico Tröger
92dd6be549
Fix it, really, maybe. Sorry.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3518 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-01-27 21:12:46 +00:00
Enrico Tröger
ee35d4b1ee
Fix legacy file monitoring since I broke once more.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3515 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-01-27 19:10:12 +00:00
Enrico Tröger
f0a1081c38
Disable GIO based file monitoring for now since it doesn't work yet as stable as it should. Define USE_GIO_FILEMON to use.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3506 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-01-24 19:38:53 +00:00
Enrico Tröger
423550f00f
Use g_timeout_add_seconds() instead of g_timeout_add().
...
Add missing NULL check in monitor_file_changed_cb().
Reset the file status when saving a file failed.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3505 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-01-24 19:38:31 +00:00
Enrico Tröger
0582c61824
Replace remaining occurrences of '__func__' with 'G_STRFUNC'.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3496 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-01-21 22:49:21 +00:00
Enrico Tröger
46e200bb39
Use an unique "monitor" prefix for file monitoring functions.
...
Don't check disk status for files which are marked to be ignored.
Reset file disk status when manually reloading a file.
Various improvements to the GIO-based file disk checking code.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3495 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-01-21 15:50:48 +00:00
Enrico Tröger
866cc1e934
Reuse the locale-encoded filename in document_save_file().
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3494 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-01-21 15:50:12 +00:00
Enrico Tröger
e36a60c4f0
Skip disk changes detection for all remote files.
...
Don't try to detect a remote file when running on old GLib versions without GIO (< 2.16).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3490 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-01-19 19:30:18 +00:00
Enrico Tröger
de3d3b42fb
Add document_save_file_as and document_rename_file to the plugin API.
...
If GIO is available, use GFileMonitor to watch for file disk changes and indicate them immediately using an orange tab label colour.
Break plugin ABI for this and the last commits.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3484 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-01-18 18:19:58 +00:00
Enrico Tröger
c636728975
Fix several compiler warnings and build errors (patch by Daniel Richard G., thanks).
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3460 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-01-11 18:29:39 +00:00
Enrico Tröger
153544a80e
Add utils_is_remote_path().
...
Add private field 'is_remote' to GeanyDocument to indicate whether an opened file is locally accessed or via gvfs-fuse.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3457 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-01-09 18:22:07 +00:00
Enrico Tröger
2c90b52dcd
Plug a small memleak.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3456 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-01-09 18:21:44 +00:00
Enrico Tröger
39a6eb455e
Update copyright information.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3446 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-01-04 18:30:42 +00:00
Nick Treleaven
077270c647
Remove geanyobject.h includes.
...
Use GObject instead of unused GeanyObject argument.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3439 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-01-03 13:03:42 +00:00
Enrico Tröger
cc7b058653
Only stat() files after saving for the timestamp when file_prefs.disk_check_timeout is set (to greater 0).
...
Call realpath() on files only when opening or changing the filename but not on every save.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3412 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-12-21 20:09:08 +00:00
Enrico Tröger
9e25c43487
Move implementation of lookup_widget() into ui_lookup_widget().
...
Change uses of lookup_widget() to ui_lookup_widget().
Remove now unneeded support.c.
Use GLib gettext macros in support.h instead of own ones.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3402 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-12-18 21:21:53 +00:00
Enrico Tröger
aceb1aa703
Remove remaining uses of doc->editor and use GeanyEditor directly.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3401 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-12-18 19:23:32 +00:00
Enrico Tröger
44b7d27b50
Add "editor-notify" to the plugin API.
...
This signal is emitted whenever something in an editor widget changes, e.g. a character was typed.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3391 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-12-17 16:00:18 +00:00
Nick Treleaven
9fb349fcd2
Fix showing tooltips for notebook tab labels (oops).
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3343 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-12-08 12:59:13 +00:00
Enrico Tröger
72d6493932
Don't mark console messages as translatable.
...
Add two comments for translators.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3315 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-12-04 15:56:54 +00:00
Nick Treleaven
5763dfbe2d
Add document_index(), filetypes_index() array accessor functions to
...
the plugin API.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3310 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-12-03 18:03:54 +00:00
Nick Treleaven
ffffc759b1
Remove now-unnecessary checks for geany_object != NULL.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3266 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-11-21 17:33:35 +00:00
Enrico Tröger
81ffd05aa1
dd ui_widget_set_tooltip_text() as a convenience function to easily set tooltips for widgets. It uses gtk_widget_set_tooltip_text() on GTK >= 2.12 otherwise the old tooltips API.Use ui_widget_set_tooltip_text().
...
Use ui_widget_set_tooltip_text() in the plugins.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3250 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-11-18 20:14:42 +00:00
Enrico Tröger
ffc9c924b0
Fix empty tab labels for new files and cleanup.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3249 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-11-18 20:13:50 +00:00
Enrico Tröger
ac52e42417
Show the full filename of a document as tooltip on the tab labels.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3248 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-11-18 20:13:29 +00:00
Enrico Tröger
d1b5ace11c
Replace uses of g_strcasecmp() with our own implementation, utils_str_casecmp().
...
Add utils_str_casecmp() to the plugin API.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3210 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-11-11 19:18:51 +00:00
Enrico Tröger
99860e187a
Add support for updating tags from a memory buffer (code merged from Anjuta).
...
This still doesn't work and is currently disabled. It would only work for a few filetypes like C, Fortran and JavaScript.
The current implementation is still buggy, e.g. function signature parsing is broken.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3184 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-11-07 14:37:17 +00:00
Enrico Tröger
631eb07c27
Handle UTF16/32 encoded files without a BOM better and allow them to opened ( #2155573 , patch by Jason Oster, thanks).
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3156 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-10-26 14:16:09 +00:00
Enrico Tröger
25a9d1c0e9
Issue a warning message when closing document fails.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3150 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-10-25 18:55:51 +00:00
Nick Treleaven
0117b3e5b2
Apply patch from Jason Oster to auto-update the line margin width as
...
lines are added (thanks; #2129157 ).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3021 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-09-29 12:44:31 +00:00
Nick Treleaven
46cae47182
Use GeanyDocumentPrivate instead of using inheritance for non-public
...
fields (this was unnecessary and meant using ugly casts).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3010 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-09-26 17:28:50 +00:00
Enrico Tröger
83d6c2e8e2
Fix using direct Scintilla access in document.c and callbacks.
...
Add wrapper functions instead.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3000 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-09-25 18:29:53 +00:00
Enrico Tröger
a032d6a660
Unify the API in editor.c, all public functions now take a GeanyEditor* object.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2998 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-09-25 18:28:37 +00:00
Enrico Tröger
437fafd46e
Move document_apply_update_prefs() in editor.c.
...
Refactor get_indent_guides_from_lexer() from sciwrappers.c in editor_set_indentation_guides().
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2979 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-09-21 16:43:45 +00:00
Nick Treleaven
5dde790601
Add 'Tab key indents' pref, which replaces hidden pref
...
'use_tab_to_indent'; it's now on by default.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2971 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-09-18 12:43:41 +00:00
Nick Treleaven
d625394615
Apply patch (with minor changes) from Jason Oster to improve showing
...
brace indent guides on empty lines when appropriate (thanks,
#2105982 ).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2958 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-09-17 12:36:04 +00:00
Nick Treleaven
03f0700c23
Add plugin signal "document-close", sent just before a document is
...
closed.
(Merged from split-window-plugin branch).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2953 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-09-16 15:47:26 +00:00
Enrico Tröger
fdd6ce4f49
Partial update of the German translation.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2922 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-09-01 14:50:26 +00:00
Enrico Tröger
266cbed6ff
Add 'Stop scroll at last line' editor pref (patch by Timothy Boronczyk, thanks).
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2918 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-09-01 11:18:06 +00:00
Nick Treleaven
d43cd0ee2a
Add editor_destroy() to dispose of a GeanyEditor struct (in future
...
we may want to do more than just free it).
Fix editor.h dox description to be more informative for the API
(and move dox from editor.h to editor.c).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2901 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-08-25 15:44:51 +00:00
Nick Treleaven
8126ee2098
Detect 'Tabs and Spaces' indent mode on finding one or more hard
...
tabs before a soft tab at the start of several lines, and also when
the first indent symbol count is not mainly tabs or mainly spaces.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2900 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-08-19 14:55:56 +00:00