5771 Commits

Author SHA1 Message Date
Nick Treleaven
f31a84869d Minor code cleanup for document_update_type_keywords()
Fix correctly checking result of editor_lexer_get_type_keyword_idx().
Do not check IS_SCINTILLA unnecessarily (this is covered by DOC_VALID).
Do not use G_[UN]LIKELY macros as this complicates code without any
real benefit (unless in a tight loop).
2011-11-01 16:07:52 +00:00
Nick Treleaven
13597df9df Convert Unix path separators on Windows when opening documents
Unix path separators can occur e.g. when using MSYS.
Windows does not allow filenames to contain Unix path separators so
this should be safe.
2011-11-01 15:46:11 +00:00
Nick Treleaven
5f0e46e07e Fix finding paths in the document list on Windows
Finding paths in the tree was not case-insensitive either.
2011-11-01 13:27:00 +00:00
Nick Treleaven
fdd5537cc0 Use g_return_val_if_fail for some invalid NULL arguments 2011-10-31 17:22:39 +00:00
Nick Treleaven
42b3e7212a Fix document list path comparison on Windows
Use case-insensitive matching for project base path and home
directory in document filenames.
2011-10-31 17:08:24 +00:00
Nick Treleaven
b69198691a Add utils_filenamecmp(). 2011-10-31 17:08:23 +00:00
Colomban Wendling
af838cda7b Allow to expand or collapse all items from openfiles popup menu
This is useful if one have many open files from different directories
and wants to see the files from only one or another.
2011-10-30 23:11:04 +01:00
Colomban Wendling
274e01f555 Fix various coding style issues 2011-10-30 22:55:25 +01:00
Colomban Wendling
36ebb1f2b7 Use canonical macros for stock items rather than plain strings
This makes the code more readable, potentially more future-proof (if
the actual string changes) and better style (catches possible typos at
build-time).
2011-10-30 22:01:49 +01:00
Frank Lanitz
0337b19dcb Adding Wojciech Świderski to list of Polish translators 2011-10-30 12:55:09 +01:00
Frank Lanitz
e9973cc990 Just use pl as language code for Polish translation 2011-10-30 12:51:58 +01:00
Frank Lanitz
a4194c5a63 Move Jarosław to list of prev. Polish translators 2011-10-30 12:51:24 +01:00
Frank Lanitz
c763986388 Correct ChangeLog entry 2011-10-30 12:50:44 +01:00
Frank Lanitz
3cc02e6aa1 Update of Polish translation 2011-10-30 12:26:48 +01:00
Matthew Brush
a23e999b7b Bump GTK+ version to 2.16 2011-10-28 10:25:58 -07:00
Matthew Brush
c4980f8c1e classbuilder: Move caret to start of generated documents 2011-10-28 01:12:29 -07:00
Matthew Brush
65e20780e4 classbuilder: Use GTK/GNU code style for generated GTK+ code
Use two spaces instead of tabs, spaces between function and opening
argument bracket, and various minor changes.

Add dummy gpointer to private struct so the class can be compiled
without modification.
2011-10-28 00:31:26 -07:00
Frank Lanitz
d33f511fc4 Use evince as default viewer for TeX/LaTeX
On most systems Geany is running inside an GTK/GNOME environment.
As a matter of this fact we can assume evince is the default PDF-viewer.
2011-10-27 21:38:53 +02:00
Matthew Brush
f6e135435b Fixup various filedefs mappings 2011-10-23 13:44:52 -07:00
Enrico Trger
3fd7e9f68e Wait for user input in the debug console
This way, Geany's standard out and error can be read if started in verbose
mode until a key is pressed which makes debugging of command line
actions easier.
2011-10-23 16:32:22 +02:00
Enrico Tröger
c51129db6e When using the debug console, capture stdin as well.
This enables us to wait for input in the debug console window
and so keep it open if necessary until there is some input of
the user.
2011-10-23 16:29:17 +02:00
Enrico Tröger
deb2d4a7f9 Add a few notes about generating tags files on Windows 2011-10-23 16:24:39 +02:00
Matthew Brush
82146e953f Remove max length limit of 248 characters on search dialogs 2011-10-23 00:41:50 -07:00
Lex Trotman
03dd57f148 Fix escaping of session filepaths
Fixes bug #3425969.  Replace Geany escaping of session filepaths
with g_uri_escape_string (available now in 2.16) allowing any
punctuation characters in the path.
2011-10-23 13:41:10 +11:00
Colomban Wendling
a0367acd2d Merge branch 'scintilla-update' 2011-10-22 23:28:46 +02:00
Lex Trotman
cdb748c2c4 Add filetype extraction by regex
Adds the ability to set filetype on open by extracting it from the
file using a regex on the first few lines (default 2).
2011-10-22 22:55:57 +11:00
Colomban Wendling
24dd7330b2 Update code and comment styles for new Scintilla styles 2011-10-22 02:01:04 +02:00
Colomban Wendling
89ab83cfba Add Scintilla update to the NEWS 2011-10-22 02:01:04 +02:00
Colomban Wendling
5fc6764b9b Update highlighting styles for new Scintilla styles 2011-10-22 02:01:04 +02:00
Matthew Brush
b1b88286cf Simplify updating Scintilla keywords on reload config and tab switch.
Remove type keywords caching function since it doesn't really speed up
anything and we don't care if the keywords change since they can/should
still be reloaded.  This also prevents "leaking" a static GString once
when the application closes and saves a call to g_string_free() when the
type keywords have changed.

Rename document_update_highlighting() to document_update_type_keywords()
since no re-highlighting is needed when updating Scintilla keywords.
Scintilla highlights the new keywords automatically so this saves a call
to queue_colourise().

Remove update_type_keywords() function since this is now all handled
in the document_update_type_keywords() function.  This function had a
comment about updating all documents when sci is NULL but it was never
used in this way since it was only called on document_load_config() which
always operates on a single document and the sci should not be NULL.
2011-10-19 21:39:17 -07:00
Nick Treleaven
6c8e80271e Refactor without stash_foreach_various_pref
Function was only used once.
2011-10-19 13:09:13 +01:00
Matthew Brush
1a14e4869f Update Scintilla keywords and highlighting when changing document tabs 2011-10-19 01:29:10 -07:00
Ondřej Žára
bb745e8f3b Add 'prototype' keyword for JavaScript 2011-10-19 01:10:42 -07:00
Colomban Wendling
cbc5600a1a Update to Scintilla 2.29 2011-10-19 03:40:46 +02:00
Colomban Wendling
c56788b7a7 Fix a few style mappings 2011-10-19 03:38:26 +02:00
Colomban Wendling
a3e5044d4f Plug a few memory leaks
These leaks actually were not "real" leaks since the memory will anyway
be kept until quit.  Fixing those only makes the code "cleaner" and
will prevent them to "hide" some other (real) ones at debug times.
2011-10-19 03:19:30 +02:00
Enrico Tröger
90cf307265 Adjust error line parsing for newer Python versions
The format of the error message output of the py_compile module has changed in
Python 2.6. The code now tries to detect the format and parse it accordingly.
2011-10-18 23:53:44 +02:00
Nick Treleaven
cf88abfe4d Speed up & simplify stash tree display/update
Store a pointer to the stash pref for each row, so display/update is just
O(n) instead of O(n^2) time.

This changes the order prefs are updated in, but this doesn't matter.
2011-10-17 18:03:56 +01:00
Nick Treleaven
d6fc1f74f1 Use GPtrArray and g_slice to allocate prefs.
This allows us to return StashPref pointers - before with GArray the
address could change on future appends.
2011-10-17 16:12:41 +01:00
Matthew Brush
dc9ba7d074 Improve highlighting for PHP and JS 2011-10-15 14:28:22 -07:00
Nick Treleaven
55646df83d Windows: Fix detecting a changed file on opening from command-line.
The file timestamp can actually be in advance of the current time in
this case.
2011-10-13 16:56:40 +01:00
Nick Treleaven
e9021f2174 Windows: Fix wrongly shown debug message 'GetExitCodeProcess failed' 2011-10-13 16:33:15 +01:00
Nick Treleaven
c2ce2403f4 Windows: Fix 'Create process failed' message to show correct error
This helps when trying to run build commands that don't exist;
the status bar message for that is now:
Process failed (The system cannot find the file specified.)
2011-10-13 16:18:40 +01:00
Nick Treleaven
fd6c538795 Merge branch 'master' of github.com:geany/geany 2011-10-13 13:29:47 +01:00
Nick Treleaven
02da53d711 Fix focusing editor after startup on Windows 2011-10-13 13:26:57 +01:00
Matthew Brush
4fb9629f5b Detect HTML embedded filetypes from the current line
When using the commenting features (ex. toggle line commentation),
detect the the type of comments for the filetype of the line with
the caret rather than using the filetype of the current document.

Filetype is determined by the Scintilla state/style at the
beginning of the line where the caret is.

This does not fix the existing bug where using the commenting
features on lines with things like `<script>` will result in an
HTML-style comment to be wrapped around it and also where using
the commenting feature on a line with something like `<?php`
will not only wrap it in an HTML-style comment but it also won't
be able to uncomment the line.

This closes bug ID 2863829[1] and 3127598[2].

[1] https://sourceforge.net/tracker/?func=detail&aid=2863829&group_id=153444&atid=787791
[2] https://sourceforge.net/tracker/?func=detail&aid=3127598&group_id=153444&atid=787791
2011-10-12 23:35:06 -07:00
Nick Treleaven
2662c6b8ca Merge branch 'master' of github.com:geany/geany 2011-10-12 17:53:56 +01:00
Nick Treleaven
ea9c37abca Ignore generated files from makefile.win32 2011-10-12 17:42:57 +01:00
Joshua Hoff
cbadf177f4 simplify "append toolbar to menu" packing code 2011-10-12 18:09:59 +02:00
Lex Trotman
f9265535a3 Mention trailing whitespace in style 2011-10-12 17:45:24 +11:00