1861 Commits

Author SHA1 Message Date
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
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
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
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
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
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
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
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
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
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
Nick Treleaven
811a09946e Move 'Switching between documents' from prefs Interface section into
new Documents section.
Remove repeated title text of preference dialog tab sections.
Edit preferences descriptions for clarity.
Comment out some unexplained General preferences.
Fix some prefs typos, add some links and expand some descriptions.
Correct some wrong preferences descriptions (e.g. Back/Forward
buttons).


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2501 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-04-18 17:04:16 +00:00
Frank Lanitz
b77a8f93f2 Update of Japanese translation
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2498 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-04-18 11:37:37 +00:00
Enrico Tröger
3daa3011e4 Improve Makefile parser for better parsing of targets (from CTags' patches tracker, for reference this is patch v3).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2497 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-04-17 18:06:31 +00:00
Enrico Tröger
d9690cbe77 Add navqueue_goto_line() to plugin API.
Make navqueue_goto_line() store document filename instead of tagmanager filename (patch by Yura Siamashka, thanks).
This makes it also possible to add navigation history items for files without a tagmanager filename.

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2496 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-04-17 17:48:12 +00:00
Frank Lanitz
896875b0e1 Added Romanian translation
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2494 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-04-16 19:02:54 +00:00
Nick Treleaven
f37439c56f When quitting, remember plugin filenames that couldn't be loaded at
startup as well as active plugins.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2493 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-04-16 16:22:28 +00:00
Nick Treleaven
baa27abbe9 Remove active_plugins from GeanyApp.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2492 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-04-16 15:44:29 +00:00
Nick Treleaven
a6ddfc2221 Move plugin keyfile pref saving and loading to plugins.c.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2491 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-04-16 15:09:52 +00:00
Nick Treleaven
7e244e784a Fix geany_debug() warnings with Close All.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2490 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-04-16 12:00:27 +00:00
Nick Treleaven
730fc1a35c Refactor handle_cl_filename() from open_cl_files().
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2489 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-04-16 11:41:36 +00:00
Nick Treleaven
dc6e52f41c Make pressing escape in the sidebar focus the editor.
Group toolbar GtkEntry escape key checks into a common callback.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2488 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-04-16 11:34:34 +00:00
Enrico Tröger
2652667577 Add DEBUG flag to all Windows makefiles to make it possible to build with debug symbols and without optimizations also on Windows (using make DEBUG=1).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2487 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-04-15 15:11:05 +00:00
Enrico Tröger
df57629bca Update for 0.14.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2485 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-04-15 14:44:48 +00:00
Enrico Tröger
a22e1653ad Remove "documentation: preferences" item as it has been mostly done by Robert McGinley.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2477 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-04-13 17:38:29 +00:00