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
Enrico Tröger
8257596aaf
Apply patch from Pierre Joye to improve new Win32 process spawning code (thanks).
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2290 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-02-27 16:08:07 +00:00
Enrico Tröger
b7bfb2743a
Replace all C++-style comments with usual C-like multi-line comments.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2287 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-02-27 13:17:29 +00:00
Enrico Tröger
ce12940621
Apply patch by Pierre Joye to add new process spawning implementation for Windows.
...
Make utils_spawn_* available to plugin API.
This makes the VCdiff plugin to work on Windows (thanks).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2279 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-02-24 10:27:32 +00:00
Enrico Tröger
d60378dd98
Add support for getting hostname on Windows.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2246 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-02-10 17:53:18 +00:00
Enrico Tröger
05bff8f53d
Fix crash on Windows when a project could not be opened. Remove prefix from win32_get_file_filters() and win32_get_filters(). Fix some encoding problems with filenames retrieved from the native Windows file dialogs.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2238 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-02-08 11:19:45 +00:00
Enrico Tröger
0f9433d088
Fix compile error on Windows. Don't use _waccess_s since it seems to be unavailable in MingW32.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2154 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-01-09 15:40:22 +00:00
Enrico Tröger
4d70dce5d4
Add utils_is_file_writeable().
...
Improve checks for write permission of files and directories.
Don't overwrite maybe existing project files when trying to create new project and checking for project file's write permission (thanks to Yura Siamashka for reporting and his patch).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2151 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-01-06 19:59:01 +00:00
Enrico Tröger
e3201062c6
Update copyright information and change format of email addresses in source files.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2150 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-01-06 18:11:57 +00:00
Enrico Tröger
8849ed8819
Create Geany's configuration directory in user's appdata path instead of the default home directory ( closes #1856305 ).
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2138 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-12-30 20:57:34 +00:00
Enrico Tröger
347c1da00c
Add debug console window when debug mode is enabled to get any text messages on Windows.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2137 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-12-30 15:54:00 +00:00
Nick Treleaven
39738f90ca
Make Open, Save As dialogs start in project base path (or default
...
path pref) when the current file has no filename.
Split up widget setup code for dialogs_show_open_file(),
dialogs_show_save_as().
Add initial_dir argument for win32_show_file_dialog().
Add utils_get_default_dir_utf8().
Rename utils_get_current_file_dir() to
utils_get_current_file_dir_utf8().
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2122 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-12-21 17:25:58 +00:00
Enrico Tröger
c5ad06494b
Fix wrong file filters in file dialogs opened in the preferences dialog.
...
Fix wrong debug display of filenames which could not be loaded from last session.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2096 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-12-09 16:59:21 +00:00
Enrico Tröger
0573e49653
Fix wrong file filters in project-related file dialogs on Windows.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2094 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-12-07 16:31:38 +00:00
Enrico Tröger
7cc8825ef1
Fix crashes on Windows when configuration directory could not be created. Fix problems when configuration directory path contains special characters.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2015 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-11-04 15:48:14 +00:00
Nick Treleaven
340c76f01c
Prevent prefs dialog being hidden after using the prefs file dialog.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2002 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-11-01 12:53:00 +00:00
Nick Treleaven
928e2f032e
Use G_N_ELEMENTS(arr) instead of sizeof(arr) / sizeof(arr[0]).
...
Correct prev_translators email address.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1878 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-09-12 16:25:19 +00:00
Nick Treleaven
274058eb7a
Neaten up the plugin API:
...
Make document_open_file() now wrap document_open_file_full(),
without the idx for reloading or pos arguments.
Replace str_replace() with string_replace_all() in the plugin API.
Add utils_string_replace_all(), taking a GString argument.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1868 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-09-11 15:21:11 +00:00
Enrico Tröger
7be0947ff1
Sort list of files to build on Windows. Add geanyobject.c to the list of files to build on Windows. Fix some warnings and build errors on Windows.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1850 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-09-03 18:19:27 +00:00