96 Commits

Author SHA1 Message Date
Colomban Wendling
d06e9f4575 Remove $Id$ and $Date$ SVN keywords 2011-10-09 22:57:35 +02: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
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
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
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
15eb27b44a Remove last GLib >= 2.16 check
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5853 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-06-17 22:51:35 +00:00
Enrico Tröger
c03d77d8a6 Remove unused variables
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5684 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-04-03 16:35:27 +00:00
Enrico Tröger
6ac2623208 Update copyright information.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5528 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-01-19 19:39:09 +00:00
Enrico Tröger
fb3f890969 Remove old code.
Pass and use also parent and title arguments to win32_show_document_open_dialog().

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4914 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-05-15 11:57:40 +00:00
Enrico Tröger
1e9b5cf97c Don't use file filters for the native Windows Save As dialog.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4913 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-05-15 11:47:22 +00:00
Enrico Tröger
e95326ea20 Sort file filters for the native Windows file open dialog by name.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4912 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-05-15 11:35:26 +00:00
Enrico Tröger
187a9c1c38 (Re-)Implement a (still basic) native Windows Save As dialog when compiled with GEANY_USE_WIN32_DIALOG.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4897 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-05-10 21:52:43 +00:00
Enrico Tröger
f12ed2fabe Fix broken opening URLs e.g. when using the 'builtin' Run command.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4860 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-04-25 17:42:56 +00:00
Enrico Tröger
95d82159a8 Change the limit for the command line length when executing commands to a maximum of 32768 characters (closes #2979697).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4856 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-04-25 17:42:12 +00:00
Enrico Tröger
a01a4f68e3 Make CreateChildProcess() working with Unicode strings, e.g. directory names (closes 2972606).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4779 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-03-20 15:16:21 +00:00
Enrico Tröger
7ba4a81181 Update copyright information.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4518 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-01-01 22:55:18 +00:00
Enrico Tröger
ba94d0ce6f Rename win32_show_file_dialog() to win32_show_document_open_dialog() as it is specialised for opening documents.
Implement win32_show_file_dialog() as a generic file open dialog and use it with ui_path_box_new().


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4505 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-12-20 21:49:23 +00:00
Enrico Tröger
b7b4de41f4 Rename win32_show_project_folder_dialog() to win32_show_folder_dialog() as it is not related and not used by any project management related code.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4504 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-12-20 21:03:28 +00:00
Nick Treleaven
1986d915cc Run ./scripts/fix-alignment.pl -w src/*.[hc] plugins/*.[hc] (skipping generated files).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4199 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-09-16 14:13:38 +00:00
Enrico Tröger
bd0f98f3f5 Fix opening of local files in the browser on Windows.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4098 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-08-16 17:27:01 +00:00
Enrico Tröger
b1309fc6ce Expand system environment variables (%variableName%) on Windows when running Build commands.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4050 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-08-02 13:33:39 +00:00
Enrico Tröger
9a99df62a3 Fix some harmless compiler warnings.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4002 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-07-20 23:09:29 +00:00
Enrico Tröger
9a54f5f7b1 Fix broken 'builtin' Run command for HTML files on Windows.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3969 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-07-14 18:49:31 +00:00
Enrico Tröger
ca1e027925 Prevent possible crash on Windows when not setting an initial directory for native File Open/Save dialogs.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3871 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-06-17 18:18:46 +00:00
Enrico Tröger
1c472c52c2 Minor cleanup
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3820 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-05-27 18:54:16 +00:00
Enrico Tröger
89c442d38a Properly terminate the resulting strings when reading the stdout and stderr of any spawned commands on Windows.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3819 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-05-27 18:34:39 +00:00
Enrico Tröger
538f2f5d25 On Windows, fallback to the literal build command line if searching for the command in the system path failed (related to #2795923).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3818 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-05-27 18:00:05 +00:00
Enrico Tröger
f2c7d3e268 Use the wide character versions of native Windows File dialogs.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3813 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-05-26 19:27:23 +00:00
Enrico Tröger
76a9d232c2 Use g_win32_get_package_installation_directory_of_module() on Windows with newer GLib versions instead of deprecated API.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3654 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-03-26 20:10:47 +00:00
Enrico Tröger
ec531d2495 On Windows, change the working directory to the Geany installation path at startup to avoid unwanted directory locking(closes #2626124).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3596 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-02-24 18:26:16 +00:00
Enrico Tröger
39a6eb455e Update copyright information.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3446 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-01-04 18:30:42 +00:00
Enrico Tröger
d7caf0f9c0 Follow XDG Base Directory specification and use $XDG_CONFIG_HOME/geany (most often this is ~/.config/geany) as default configuration directory (closes #2166229).
The previous configuration will be moved to the new location if the new directory doesn't exist yet.
Move utils_make_settings_dir() into main.c.
Remove win32_get_appdata_folder() because g_get_user_config_dir() does the same.

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3219 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-11-13 14:37:47 +00:00
Enrico Tröger
ecafbecdd0 Fix wrong pointer usage.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3097 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-10-15 14:14:31 +00:00
Enrico Tröger
f73f4fd870 Fix logging of messages in the debug window on Windows.
When '--debug' option is given on Windows, set the G_SPAWN_WIN32_DEBUG flag for more debug info for spawned processes.

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2885 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-08-13 18:42:11 +00:00
Nick Treleaven
b74b38c325 Fix Windows build.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2721 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-06-21 16:22:51 +00:00
Enrico Tröger
d3439f8a17 Use document pointer instead of an index to the documents array everywhere in the core code.
Pass a document pointer to the callbacks of all "document-*" signals.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/branches/document-pointer@2692 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-06-15 13:35:48 +00:00
Nick Treleaven
50b0a10654 Note: this breaks the plugin API for plugins using
document_find_by_filename().
Make document_find_by_filename() take only a utf8_filename argument,
and now match any documents that have a filename set but aren't saved
on disk.
Add document_find_by_realpath() to the plugin API.
Add filename argument for document_save_file_as().
Add GeanyDocument::real_path field, which if non-NULL indicates the
file once existed on disk (not just as an unsaved document filename).


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2637 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-06-03 17:22:04 +00:00
Nick Treleaven
be0d9e8ea7 Note: this breaks the plugin API.
Replace doc_array with documents_array, a pointer array. This is
necessary to avoid breaking the ABI every time a field is added to
GeanyDocument.
Remove deprecated pluginmacros.h documents macro, to avoid a
conflict.
Replace doc_list[] macro with documents[] macro, which returns a
GeanyDocument pointer.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2624 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-05-29 17:00:54 +00:00
Nick Treleaven
398efbd373 Note: this commit breaks the plugin API.
Split widget fields out of GeanyApp into GeanyMainWidgets, so other
data items can be added without breaking the plugin ABI.
Add GeanyData::main_widgets, and macro.
Rename treeview_notebook sidebar_notebook in GeanyMainWidgets.
Move tools_menu from GeanyData to GeanyMainWidgets.
Move statusbar out of GeanyApp (shouldn't be used directly).
Move ignore_callback out of GeanyApp.
Rename sci_goto_line() argument unfold, like sci_goto_pos().
Make utils_goto_file_pos(), utils_goto_line(),
utils_switch_document() into static functions (they are UI-related,
so shouldn't be in utils.c).
Move utils_goto_pos() to editor.c, add mark argument.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2609 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-05-22 14:41:28 +00:00
Enrico Tröger
4faf2a7a61 Fix compilation error.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2589 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-05-15 15:58:28 +00:00
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
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
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
a905697007 Fix compiler warnings by correct type casting.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2456 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-04-08 15:00:06 +00:00
Enrico Tröger
35602e14ca Add support for resolving Windows shortcuts when opening files and open the shortcut's target.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2416 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-03-26 18:53:59 +00:00
Enrico Tröger
e895402cf0 Fix crash on Windows due to missing error message when a process spawning fails.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2385 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-03-21 18:29:25 +00:00
Nick Treleaven
c248368faf Only use filetype detection after Save As, not on every save when the
filetype is None (fixes #1891778).


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2377 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-03-21 14:02:59 +00:00
Enrico Tröger
1664609da0 Fix encoding problems with project file dialogs.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2354 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-03-17 14:56:08 +00:00
Enrico Tröger
7a47ee09ab Add win32_get_exit_status() to retrieve the exit code from a command on Windows.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2344 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-03-14 16:59:36 +00:00
Enrico Tröger
68827f6701 Fix crashes on Windows when error argument of utils_spawn_* is NULL.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2343 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-03-14 16:19:53 +00:00