2505 Commits

Author SHA1 Message Date
Nick Treleaven
00c722966c Rename GEANY_FILETYPES_ALL GEANY_FILETYPES_NONE.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/branches/custom-filetypes@2556 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-05-07 13:54:21 +00:00
Nick Treleaven
a5df9640c9 Add filetypes_array macro to allow use of filetypes[ft_id].
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/branches/custom-filetypes@2555 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-05-07 12:22:46 +00:00
Nick Treleaven
a0aa89cbe9 Make Open dialog file filter work for custom filetypes.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/branches/custom-filetypes@2554 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-05-07 12:13:58 +00:00
Nick Treleaven
67316db4c5 Remove GEANY_MAX_FILE_TYPES and replace most uses of it with
filetypes_array->len.
Highlighting and templates now use GEANY_MAX_BUILT_IN_FILETYPES.
Move print_filetypes() out of parse_command_line_options();


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/branches/custom-filetypes@2553 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-05-07 11:34:38 +00:00
Nick Treleaven
a4cf5607a6 Remove unused filetype::item field.
Create FullFileType private type that 'inherits' from filetype
(FullFileType* can be cast to filetype*). This is used in
filetypes_new() to hide filetype struct fields from the API.
Remove radio_items[] and use FullFileType::menu_item instead.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/branches/custom-filetypes@2552 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-05-06 17:04:06 +00:00
Nick Treleaven
f82d979dbd Add filetypes_array to GeanyData for plugins to access a dynamic
array of filetype pointers.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/branches/custom-filetypes@2547 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-05-01 17:25:18 +00:00
Nick Treleaven
21eb6bd989 Remove filetypes_find(), which will be replaced with a dynamic array
of filetype pointers (more flexible and backwards compatible with
existing code).


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/branches/custom-filetypes@2546 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-05-01 17:01:32 +00:00
Nick Treleaven
75a1cf7f03 Add filetypes_new() to create and initialize a new filetype.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/branches/custom-filetypes@2545 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-05-01 14:51:47 +00:00
Nick Treleaven
59fb39390a Add filetypes_find() that calls a predicate function for each
filetype in filetypes_hash until TRUE is returned.
Make filetypes_detect_from_extension() work for all filetypes
in filetypes_hash.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/branches/custom-filetypes@2544 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-05-01 14:30:20 +00:00
Nick Treleaven
d5e39530df Store filetype::name instead of unique ID when saving sessions.
Remove all filetype UID code.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/branches/custom-filetypes@2543 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-05-01 12:10:46 +00:00
Nick Treleaven
fb6a87a05b Refactor get_session_file_string() from
configuration_save_session_files().


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/branches/custom-filetypes@2542 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-04-29 12:00:13 +00:00
Nick Treleaven
7bffaa3b17 Refactor open_session_file() from configuration_open_files().
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/branches/custom-filetypes@2541 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-04-29 11:30:19 +00:00
Nick Treleaven
18789117f1 Refactor create_set_filetype_menu() from filetypes_init().
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/branches/custom-filetypes@2540 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-04-28 16:52:20 +00:00
Nick Treleaven
7ede716a9c Add GEANY_MAX_BUILT_IN_FILETYPES for accessing built_in_filetypes[].
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/branches/custom-filetypes@2539 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-04-28 16:15:08 +00:00
Nick Treleaven
5340f2b9c8 Remove filetypes array from API.
Replace filetypes_get_from_uid() with filetypes_lookup_by_name().
Use a hash table for filetypes, but keep the old filetypes array
available for now.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/branches/custom-filetypes@2538 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-04-28 14:41:09 +00:00
Nick Treleaven
676d7ca071 Create new branch from trunk to work on custom filetypes support.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/branches/custom-filetypes@2537 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-04-28 14:23:19 +00:00
Enrico Tröger
7f669ded1f Allow Ctrl-A (or whatever "Select All" has been set to) to select all text in the scribble text widget (closes #1952335).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2536 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-04-27 15:43:47 +00:00
Enrico Tröger
50e6868c25 Fix crash when trying to change the encoding of a file (introduced in r2529).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2535 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-04-27 15:05:40 +00:00
Enrico Tröger
b690b2567d Fix typo.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2534 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-04-27 14:45:36 +00:00
Enrico Tröger
76cf015d28 Don't check for CVS directory as we don't use CVS anymore and remove non-portable -path option of find.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2533 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-04-27 14:43:13 +00:00
Enrico Tröger
ade798f9f2 Add configure option --enable-gnu-regex to implicitly build the included GNU regex library (in case the host system doesn't provide a usable regex library).
Rename tagmanger/include/regex.h in tagmanager/include/gnuregex.h to avoid unintended inclusion in source files (this fixes the OpenSolaris crashes).
Don't use GNU regex specific regex_t::buffer element to build also without this extension (e.g. on OpenSolaris).


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2532 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-04-27 14:33:40 +00:00
Enrico Tröger
6ca83a8754 Set ExecutableName to "geany" to prevent possible crashes on Windows and maybe other systems.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2531 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-04-25 16:14:29 +00:00
Enrico Tröger
9cc12c9846 Replace "Prochain" with "Suivant" (patch by Roland Baudin, thanks).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2530 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-04-25 13:03:33 +00:00
Enrico Tröger
4cec2ade93 Refactor write_data_to_disk() and save_convert_to_encoding() from document_save_file().
Include missing error string in error message when writing the file failed.

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2529 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-04-25 12:49:38 +00:00
Nick Treleaven
57243c3859 Make utils_is_absolute_path() a NULL-safe version of
g_path_is_absolute().


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2528 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-04-25 11:50:48 +00:00
Nick Treleaven
3ce268801a Add/reorder a recent file item when closing a document.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2527 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-04-25 11:47:01 +00:00
Nick Treleaven
3afebc701c Move Close All functions to document.c.
Add document_account_for_unsaved().


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2526 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-04-24 14:33:12 +00:00
Enrico Tröger
cec6e18c61 Unify the embedded JavaScript styles with the styles of the JavaScript filetype for a more consistent styling of JavaScript in general.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2525 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-04-24 14:17:11 +00:00
Nick Treleaven
965a4f2bce Fix build because of wrong document_close_all() usage - oops.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2524 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-04-24 14:13:06 +00:00
Nick Treleaven
238066ce29 Make utils_get_file_list() use a case-insensitive search so that the
file browser lists files and directories in a more intuitive order.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2523 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-04-24 12:16:21 +00:00
Frank Lanitz
02d108240c Update of Swedish translation
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2522 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-04-23 21:01:51 +00:00
Nick Treleaven
dc398a3b59 Add document_close_all() and use it in project.c.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2521 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-04-23 17:07:52 +00:00
Nick Treleaven
af67ff3cd5 Make disk check timeout configurable in the prefs dialog Files tab.
Make a value of zero disable disk checks.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2520 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-04-23 16:53:40 +00:00
Nick Treleaven
a832015fff Move non-general compile-time constants into their relevant source
files.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2519 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-04-23 16:47:42 +00:00
Enrico Tröger
75e749ceb5 Add file filter text entry (patch by Robert McGinley, thanks).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2518 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-04-22 15:14:30 +00:00
Enrico Tröger
446f203b4f Add target "sign" to sign generated tarballs with gpg.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2517 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-04-22 15:04:50 +00:00
Enrico Tröger
1cf8daa1dc Fix typo.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2516 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-04-22 14:53:20 +00:00
Enrico Tröger
c87a82adec Make use of ngettext() for strings with plural forms.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2515 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-04-22 14:44:45 +00:00
Enrico Tröger
4fb3cb5031 Fix wrong regular expression.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2514 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-04-22 13:36:20 +00:00
Enrico Tröger
e7598d0839 Fix wrong usage of gtk_file_chooser_get_filename() in callback of Open File dialogs in the preferences dialog.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2513 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-04-22 13:15:54 +00:00
Enrico Tröger
c44e0869b7 Fix GLib warning when starting with a new config.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2512 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-04-22 13:05:31 +00:00
Nick Treleaven
278591115d Add const qualifier for filepos::file to indicate it is just a reference to the document's filename, not a copy.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2511 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-04-22 12:59:08 +00:00
Enrico Tröger
f28829a653 Fix wrong tooltip for "Show Increase and Decrease Indentation buttons" in the preferences dialog.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2510 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-04-20 11:51:28 +00:00
Enrico Tröger
5148d9986e Don't chmod created run script when using the Run command and execute the script with /bin/sh on Unix-like systems to be able to run files on FAT filesystems.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2509 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-04-20 11:43:07 +00:00
Enrico Tröger
8d9dbc4d08 Post-release version bump.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2508 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-04-19 10:39:27 +00:00
Enrico Tröger
f6e033f72f Tagging the 0.14 release.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/tags/Geany-0_14@2507 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-04-19 08:53:47 +00:00
Enrico Tröger
b4de85a3b3 New release: Geany 0.14 "Selit".
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2506 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-04-19 08:28:57 +00:00
Enrico Tröger
2698b343a0 Clean related navigation queue items when closing a document.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2505 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-04-19 08:14:00 +00:00
Enrico Tröger
e2a6426e0d Make property tags be recognised in the symbol list.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2504 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-04-19 07:56:56 +00:00
Enrico Tröger
8c1453f3f8 Fix typos.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2503 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-04-19 07:40:18 +00:00