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
Enrico Tröger
b54eb0a180
Always use g_fopen() and g_stat() instead of fopen() and stat() to fix several problems with filenames containing special characters on Windows. Use GetFullPathName() instead of lrealpath() to get Tagmanager working on files containing special characters on Windows.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1714 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-07-17 12:04:46 +00:00
Enrico Tröger
10822e5b75
Fix creation of wrong hex colours when inserting colours from the colour chooser dialog.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1713 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-07-17 09:14:13 +00:00
Enrico Tröger
6069531e78
Fix focus problem when using the Find dialog.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1663 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-07-04 17:08:53 +00:00
Enrico Tröger
17e8b418b9
Fix crash when trying to open the Save As dialog on Windows.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1657 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-07-02 18:37:17 +00:00
Enrico Tröger
541bd309a6
Change signature of sci_replace_sel() to take a const gchar*.
...
Move code to insert a colour to document.c
Let the code also work on Windows (untested).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1649 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-06-27 19:36:43 +00:00
Nick Treleaven
7cb6832039
Speed up loading multiple C-like files when existing documents are
...
open (by ensuring documents are only colourised once).
Add document_open_files(), document_colourise_new().
Add some missing function parameter names to document.h.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1369 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-03-06 16:57:09 +00:00
Enrico Tröger
af5af49159
Added new file filter for Open File dialog to only show supported source files (for native Win32 dialog).
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1357 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-03-02 09:53:21 +00:00
Nick Treleaven
806dd5be1d
Add descriptions for all .c source files below the file header.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1329 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-02-24 11:41:56 +00:00
Enrico Tröger
64f34f1f59
Added Windows dialogs for Project new and Project open actions.
...
Fixed some mem leaks in the Windows code.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1307 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-02-19 18:58:32 +00:00
Enrico Tröger
7b61ad934d
Updated copyright information.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1188 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-01-14 17:36:42 +00:00
Nick Treleaven
20637b939b
Don't close any tabs when quitting until all unsaved changes have
...
been accounted for; switch to each unsaved file before showing the
unsaved dialog.
Remove limit of ~256 chars for session filenames.
Make dialogs_show_unsaved_file() fail if the Save As dialog was
cancelled.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@972 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-11-07 11:24:22 +00:00
Enrico Tröger
e3f6f0a890
Added warning message dialog, united dialogs_show_info() and dialogs_show_error() to dialogs_show_msgbox().
...
Added warning message when opening files that cannot be handled correctly and set them to read-only mode.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@930 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-10-25 14:38:48 +00:00
Nick Treleaven
93ba5ba45f
Removed the GEANY_MAX_OPEN_FILES limit, using a dynamic array.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@875 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-10-09 16:08:53 +00:00
Enrico Tröger
8dede470b1
Made socket code for detecting running instances working under Windows.
...
Fixed compile warnings under Windows.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@810 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-09-11 07:41:37 +00:00
Enrico Tröger
c61bf3cab4
Fixed wrong count of function arguments.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@692 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-08-09 18:33:13 +00:00
Enrico Tröger
d561c70125
Let the colour chooser pick the colour under the cursor(Win32 code). Added some sanity checks.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@643 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-07-27 23:17:31 +00:00
Enrico Tröger
4e122c97b7
Removed macro GEANY_WIN32, use G_OS_WIN32 instead.
...
Introduced global variables for PACKAGE_DATA_DIR and PACKAGE_LOCALE_DIR, removed macro DOCDIR (these changes are important for the Windows port).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@639 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-07-26 17:02:16 +00:00
Nick Treleaven
c6abec61b0
Don't add .c extension for All files filter. Only set open tool dialog path if it exists
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@635 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-07-26 14:27:24 +00:00