803 Commits

Author SHA1 Message Date
Nick Treleaven
23d856ae93 Move treeviews_init_tag_list() and symbol list GtkTreeIters to
symbols.c.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1183 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-01-14 12:12:18 +00:00
Enrico Tröger
b54b45ea42 Applied patch from Jeff Pohlmeyer to add an option for disabling DnD in the editor widget.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1182 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-01-13 20:50:36 +00:00
Enrico Tröger
f0d4e65311 Added new filetypes Javascript and Lua.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1181 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-01-13 20:16:09 +00:00
Nick Treleaven
9a131ece20 Update the symbol list when starting a new document.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1180 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-01-13 15:25:45 +00:00
Nick Treleaven
6044ff1f50 Move utils_compare_symbol(), GeanySymbol, recreate_tag_list()
to symbols.c.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1179 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-01-13 13:25:05 +00:00
Nick Treleaven
ad78c7e1a0 Print an error message (instead of debug message) when a
command-line file cannot be loaded.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1178 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-01-13 12:42:12 +00:00
Nick Treleaven
64a6c47012 Fix g_strconcat leaks in utils_make_settings_dir().
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1176 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-01-12 16:55:05 +00:00
Nick Treleaven
4fa9eb2e8c Don't select the current document when reordering tabs (fixes
#1632708).


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1175 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-01-12 13:04:39 +00:00
Nick Treleaven
f7b31cac95 Use '::' context separator for C also (so C/C++ share the same
syntax, and C++ .h headers use correct syntax).
Add symbols_get_context_separator() and use for calltips and the
symbol list.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1174 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-01-12 12:33:17 +00:00
Nick Treleaven
ccab52b62d Fix commenting multiple lines (oops).
Set single undo action when toggling multiple lines.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1173 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-01-11 11:59:40 +00:00
Enrico Tröger
7c231b2361 Try to fix paste problems on Windows (should close #1628951).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1172 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-01-09 23:53:25 +00:00
Nick Treleaven
15fb502837 Prevent some possible buffer overflows.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1171 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-01-09 16:53:27 +00:00
Enrico Tröger
2ceedcdc7b Improved tool tip for terminal emulation.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1170 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-01-08 18:24:45 +00:00
Enrico Tröger
692d2aa731 Added keyboard shortcut for Save As.
Added missing documentation for some keyboard shortcuts.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1169 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-01-08 18:15:06 +00:00
Nick Treleaven
af369cf776 Fix memory leak when using utils_scan_unicode_bom().
Prevent invalid memory read in utils_scan_unicode_bom() when text
length is < 4.
Move utils_scan_unicode_bom(), utils_is_unicode_charset() to
encodings.c.
Read the BOM length in handle_bom().


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1167 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-01-07 16:22:41 +00:00
Enrico Tröger
92fa2b5d60 Fixed typo.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1166 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-01-07 14:04:13 +00:00
Enrico Tröger
7b11469786 Save template files in a subdirectory "templates" inside Geany's configuration directory.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1163 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-01-06 18:00:34 +00:00
Enrico Tröger
1151c48c54 Fixed missing colouring of tab menu label.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1162 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-01-06 17:16:43 +00:00
Enrico Tröger
66df9594ed Added template for BSD licence.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1161 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-01-06 15:38:44 +00:00
Enrico Tröger
b53385de1d Removed multiline template because it makes not much sense, instead just comment three lines using the general comment functionality.
Removed special templates for Pascal and some other filetypes using "#" as comment char. The comment characters for fileheader and GPL templates are now added dynamically according to the current filetype.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1160 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-01-06 15:03:53 +00:00
Nick Treleaven
5b3b1af12d Use load_text_file() in document_open_file() to read, verify and
handle encoding using FileData struct.
Refactored handle_[forced_]encoding with FileData* argument.
Update data length after removing BOM chars in handle_bom().


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1159 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-01-06 12:35:43 +00:00
Nick Treleaven
eb2c45e278 Ensure the VTE visual settings are applied when switching to VTE
when the Message Window is hidden.
Show the Message Window when switching to Scribble.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1158 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-01-06 11:55:01 +00:00
Nick Treleaven
3e31b904dc Make build_parse_make_dir() more efficient.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1156 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-01-04 11:49:14 +00:00
Nick Treleaven
7170df59b8 Added filetype_id typedef so that GEANY_FILETYPES_* can be shown
when debugging (also renamed some filetype_id variable names).


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1155 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-01-03 16:21:44 +00:00
Nick Treleaven
0e75efdd3c Parse pointers in function return type for C-like files.
Show scope in calltips.
Made tm_tag_destroy() static.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1153 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-01-03 12:41:10 +00:00
Enrico Tröger
0760d24a2e When opening a file, set the current selected entry in the open files list to the file's filename.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1151 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-12-31 15:47:37 +00:00
Nick Treleaven
8d6ae11cbf Applied patch from Josef Whiter to parse 'Entering directory' build
messages so that subsequent error messages are handled correctly
(thanks).
Assume gcc-style error messages when filetype is not set.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1149 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-12-30 16:16:59 +00:00
Nick Treleaven
a6f6c721d5 Don't use gtk_rc_get_style() in ui_update_tab_status() because it
can cause an invalid memory read on some systems.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1148 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-12-30 11:49:47 +00:00
Nick Treleaven
1650924026 Add calltip support for D constructors.
Add tm_workspace_find_scoped() (adapted from Anjuta 2.02
tm_workspace_find()).


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1147 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-12-26 15:49:35 +00:00
Nick Treleaven
d0347a85c8 Fix missed matches in tm_tags_find().
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1146 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-12-26 15:43:50 +00:00
Nick Treleaven
9bb937706c Improve accuracy of sci_scroll_to_line() when line wrapping and/or
folding is used.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1145 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-12-24 12:32:52 +00:00
Nick Treleaven
d5e934c3af Only call SCI_BRACEMATCH once in sci_cb_highlight_braces().
Separate find_calltip() from sci_cb_show_calltip().


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1144 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-12-24 12:07:35 +00:00
Nick Treleaven
9fa9a63787 Don't reparse the current function when fold level is higher than
the function fold level (when the line has only changed by 1).


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1143 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-12-22 15:59:01 +00:00
Enrico Tröger
1b309c195b Version bump and updated codename for the next release.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1142 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-12-21 22:21:09 +00:00
Enrico Tröger
63efdd312b Start column count from 0 in the statusbar display.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1140 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-12-21 20:47:31 +00:00
Enrico Tröger
48bddfce46 Fixed wrong paste behaviour under Windows with some applications.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1137 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-12-21 16:41:36 +00:00
Enrico Tröger
8aae342458 Fixed encoding of generated PDF file.
Deleted all jpg images and replaced them by png images.
Updated date in documentation and manpage.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1135 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-12-21 13:54:29 +00:00
Enrico Tröger
3312f6b3b2 Changed default values:
Confirm exit -> disabled by default
Use tab to indent -> disabled by default.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1132 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-12-20 22:52:10 +00:00
Nick Treleaven
458d2bb47e Remove unneeded static from current word strings.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1131 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-12-20 15:57:28 +00:00
Nick Treleaven
40e4ab0dda Stop Valgrind complaining about a vc->emulation leak.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1130 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-12-20 15:43:01 +00:00
Nick Treleaven
606fef2b13 Fix tag treeview not being freed (because of g_object_ref).
Separate recreate_tag_list() from ui_update_tag_list().


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1129 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-12-20 10:47:01 +00:00
Nick Treleaven
6624c10a1e Fix strv leak in configuration_open_files().
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1128 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-12-20 10:42:12 +00:00
Enrico Tröger
f238da6090 Updated codename (not really important).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1124 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-12-18 22:57:04 +00:00
Enrico Tröger
cce673cdc4 Completed list of special characters, implemented expanding and collapsing of categories at double click.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1123 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-12-18 22:55:27 +00:00
Nick Treleaven
779e1bca1f Scroll cursor to 50% of the view when reloading a file.
Rename sci_goto_pos() argument 'unfold'.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1120 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-12-18 15:58:00 +00:00
Nick Treleaven
055f70da67 Force a file changed check when attempting to open an already open
file.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1119 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-12-18 13:04:18 +00:00
Nick Treleaven
219dd8c728 Don't set the cursor to the start of the document when attempting to
open an already open file.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1118 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-12-18 12:46:35 +00:00
Nick Treleaven
f415b70a2f Always switch to the tab when showing the unsaved file dialog.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1117 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-12-18 12:34:29 +00:00
Nick Treleaven
cf28714548 Scroll cursor to 50% of the view for session files at startup.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1116 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-12-18 12:24:39 +00:00
Nick Treleaven
180069bc6c Open tabs left to right by default.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1115 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-12-18 12:10:58 +00:00