3941 Commits

Author SHA1 Message Date
Colomban Wendling
33f471c6f1 Fix "toggle case" when there is no selection
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5991 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-10-03 17:05:25 +00:00
Nick Treleaven
abefcc3375 Support visual reordering of keybinding groups without breaking the
plugin ABI.
Reorder Project group to follow main menu order.
Move Focus, Notebook tab groups last as they don't have 
corresponding menu items.
Use keybindings_get_core_group() for fixed group IDs instead of 
indexing keybinding_groups.
Make keybindings_lookup_item() only work with a GEANY_KEY_GROUP_ 
ID, not an index into keybinding_groups.



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5990 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-10-03 14:57:02 +00:00
Colomban Wendling
d6dfedf4a0 Post-release version bump
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5989 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-10-03 14:39:01 +00:00
Nick Treleaven
5b220d70a2 * Merge branches/unstable:
- tagmanager/php.c:
   Fix parsing keyword-qualified functions strictly, e.g. don't 
   parse 'staticfunction' or 'fatfunction'.
 - src/utils.c, src/utils.h, src/editor.c:
   Use GRegex for snippet indentation replacement - fixes wrong 
   behaviour with Mac line endings.
 - tagmanager/lregex.c, TODO:
   Use GRegex for CTags instead of POSIX regex - GRegex is more 
   powerful. This also fixes a (HTML) performance issue on Windows. 
   Geany will now print a debug warning when using the "b" CTags 
   regex flag option for non-extended syntax. This is not currently 
   used by Geany's parsers.
   Note: GNU regex can't be removed yet as it's still used elsewhere 
   by Geany.
 - src/build.c, doc/pluginsignals.c:
   When saving on build, prompt for a filename if necessary.
   Emit the "build-start" signal only if saving succeeds.
 - src/build.c:
   Use #ifdef SYNC_SPAWN instead of G_OS_WIN32 for easier testing with 
   glib's asynchronous spawning (which doesn't work on Windows).
 - src/win32.c, src/win32.h, src/dialogs.c:
   Use GTK unsaved file dialog on Windows too because the button names 
   should be specific.



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5987 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-10-03 14:35:11 +00:00
Nick Treleaven
19fe99b106 Fix parsing keyword-qualified functions strictly, e.g. don't
parse 'staticfunction' or 'fatfunction'.



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/branches/unstable@5986 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-10-03 14:14:33 +00:00
Colomban Wendling
e96cb6be9f Set release date
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5984 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-10-02 13:20:09 +00:00
Colomban Wendling
ee2ff42071 Add myself as an author in the docs
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5983 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-10-02 13:13:10 +00:00
Enrico Tröger
cd6b2f8540 Update documentation for new images.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5978 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-10-01 10:44:17 +00:00
Enrico Tröger
53419b001c Update documentation images.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5977 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-10-01 10:43:03 +00:00
Nick Treleaven
b079b19da0 Use GRegex for CTags instead of POSIX regex - GRegex is more
powerful. This also fixes a (HTML) performance issue on Windows. 
Geany will now print a debug warning when using the "b" CTags 
regex flag option for non-extended syntax. This is not currently 
used by Geany's parsers.
Note: GNU regex can't be removed yet as it's still used elsewhere 
by Geany.



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/branches/unstable@5976 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-09-30 14:43:18 +00:00
Nick Treleaven
9ca8db635a Use GRegex for snippet indentation replacement - fixes wrong
behaviour with Mac line endings.



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/branches/unstable@5973 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-09-30 11:10:22 +00:00
Nick Treleaven
c6b38b861e When saving on build, prompt for a filename if necessary.
Emit the "build-start" signal only if saving succeeds.



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/branches/unstable@5972 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-09-29 18:03:36 +00:00
Colomban Wendling
a89fcc2cc4 Fix utils_string_replace_all() to accept a NULL replacement again
Support of NULL as the replacement was lost in the code refactoring
introduced by revision 5730, and it broke a few plugins.

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5965 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-09-28 19:49:28 +00:00
Nick Treleaven
36a8459cbb Fix not indenting snippet contents for documents with non-\n line
endings.



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5959 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-09-26 16:31:32 +00:00
Nick Treleaven
0e89b9e2e8 Fix not converting \n to document line endings in snippets.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5958 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-09-26 16:18:36 +00:00
Frank Lanitz
3921732c9a Fix a wrong file reference inside ChangeLog
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5953 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-09-23 18:31:58 +00:00
Nick Treleaven
c2b8bc1c4f Fix \0 char in format string - save as dialog filter bug.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5946 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-09-22 15:53:14 +00:00
Nick Treleaven
1afb825ec8 Add configuration_add_various_pref_group().
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5944 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-09-22 11:52:58 +00:00
Nick Treleaven
4d3959ac2f Fix making various prefs tree sync with data values when showing
the prefs dialog (patch by Dimitar Zhekov, thanks).



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5942 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-09-21 15:50:36 +00:00
Nick Treleaven
a80bab9e3c Use GTK unsaved file dialog on Windows too because the button names
should be specific.



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/branches/unstable@5941 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-09-21 15:35:38 +00:00
Nick Treleaven
b4bdd530da Use #ifdef SYNC_SPAWN instead of G_OS_WIN32 for easier testing with
glib's asynchronous spawning (currently doesn't work on Windows).



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/branches/unstable@5940 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-09-21 13:47:37 +00:00
Nick Treleaven
4a56c9d19d Rename use_safe_file_saving various pref to use_atomic_file_saving
as it's not 'safe'. Use old pref if new one is missing for 
compatibility with Geany <= 0.20.



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5937 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-09-20 14:29:46 +00:00
Frank Lanitz
602e8ba6d1 Added Persian translation
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5928 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-09-17 07:59:11 +00:00
Frank Lanitz
8ccb4113cf Adding Giuliano Manzitti to THANKS-file.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5927 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-09-17 07:58:35 +00:00
Colomban Wendling
8b92d08908 Fix document sensitivity of a few menu items
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5925 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-09-16 21:44:11 +00:00
Nick Treleaven
534ad583ea Change various prefs label to /warn/ the user to read the manual.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5924 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-09-16 16:23:16 +00:00
Colomban Wendling
4151a973dd Ask the user if spawn fails in utils_open_browser()
Ask the user to configure a valid browser command if spawning it fails
rather than falling back to some arbitrary hardcoded defaults.

This avoid spawning an unexpected browser when the configured one is
wrong, and gives the user a chance to correctly fix the preference.

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5918 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-09-15 02:01:38 +00:00
Nick Treleaven
233f36a603 Fix uninitialized font size & other fields.
Remove unhooked font dialog apply button.



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5916 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-09-14 12:01:29 +00:00
Colomban Wendling
6c616e4bff Fix a few typos in the docs
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5913 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-09-12 23:11:49 +00:00
Colomban Wendling
d31baeab56 Add missing MIME type to a few filetypes
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5912 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-09-12 23:04:53 +00:00
Colomban Wendling
e5e5d43dbb Add Markdown extensions from Shared MIME-Info database
Closes #3405321.

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5911 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-09-12 22:49:03 +00:00
Colomban Wendling
aace32fb69 Fix updating symbol list for overloaded C++ symbols
When searching for an old entry to reuse when updating an existing
symbol list, take into account the symbol's argument list not to
always match the same entry for overloaded symbols.

Closes #3406644.

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5910 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-09-12 16:58:31 +00:00
Colomban Wendling
490867eb4e Plug a few memory leaks
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5908 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-09-02 21:45:20 +00:00
Colomban Wendling
64d632ba29 Fix check for enabling MIME type based icons
gtk_icon_theme_lookup_by_gicon() requires GTK >= 2.14, and since
GTK 2.14 requires the GIcon API, drop the GLib check.

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5907 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-09-02 21:45:02 +00:00
Colomban Wendling
57bca3ba25 Fix foreach_ptr_array() not to crash on arrays with 0 elements
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5906 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-09-02 21:44:44 +00:00
Colomban Wendling
e3bf851784 Add menu items to detect indentation settings from document's content
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5904 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-08-25 20:15:02 +00:00
Colomban Wendling
3440b6770f Add and use editor_set_indent_width() to only set indentation width
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5903 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-08-25 20:14:40 +00:00
Colomban Wendling
18388077e6 Add support for filetype-specific indentation settings
Closes #3339420 and #3390435.

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5902 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-08-25 20:14:17 +00:00
Colomban Wendling
4685112df3 Support for non-ASCII characters in word completion
Closes #3386129.

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5901 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-08-25 20:12:56 +00:00
Colomban Wendling
fc6dc88772 Fix search for the current word if it isn't composed of only GEANY_WORDCHARS
Use Scintilla's definition of a "word" when fetching the current word
to perform a search.  This is needed when we perform a whole-word
search for Scintilla to find the matches.

Closes #3386129.

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5895 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-08-21 17:15:19 +00:00
Colomban Wendling
a63a3a3570 Fix tags for one-letter Haskell symbols
The tokens were not properly terminated when they were 1 character long,
leading them to contain parts of the previous token.

Closes #3289160.

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5894 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-08-19 22:15:59 +00:00
Colomban Wendling
5ee037bfc0 Don't make tags for /dev/null in diff files but for the new file instead
Based on a patch by Yang Hong, thanks.

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5893 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-08-19 13:12:53 +00:00
Frank Lanitz
d501e1ccda Extend list of primary keywords for Cython.
Patch by Alexander Eberspächer. Thanks.

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5892 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-08-19 10:07:26 +00:00
Frank Lanitz
a2ef453ea3 Update of wording to fix some grammatical issues etc. on plugin howto.
Patch provided by Matthew Brush. Thanks.

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5891 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-08-19 06:55:34 +00:00
Colomban Wendling
9d2975b8fa Fix generating global tags (geany -g) when the configdir doesn't exist
When creating temporary files for generating global tag files, use
the system directory for temporary files rather than the configuration
directory, so it works even if the configuration directory doesn't
already exist.

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5890 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-08-19 00:07:41 +00:00
Colomban Wendling
02dcab4b14 Add Cython filetype
Patch by Matthew Brush, thanks.

Also remove the Cython keywords from Python filetype.

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5889 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-08-18 23:01:45 +00:00
Frank Lanitz
4db82ba7fa Update API version used inside plugin howto to a more recent version (API v211).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5888 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-08-15 19:26:36 +00:00
Colomban Wendling
24583dc507 Focus the editor upon double click on the message and compiler windows
Also improve the code a bit by using a boolean to know whether to focus
the editor rather than always pass the key value and check it against
enter-or-return in the callee side.

Patch by Dimitar Zhekov, thanks!

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5887 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-08-13 20:44:39 +00:00
Colomban Wendling
5bad25e2ab Only include config.h when building Geany
config.h is not distributed, and we includ it from geany.h.  Even
though it was only included it HAVE_CONFIG_H was defined, an Autotools
based build system is likely to define it, and it becomes a problem if
that very build system uses another header name than config.h.

Closes #3384026

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5882 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-08-03 15:20:26 +00:00
Frank Lanitz
9aaeea1fd6 Adding a hint to main_locale_init() to plugin HowTo
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5879 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-07-31 17:37:12 +00:00