45 Commits

Author SHA1 Message Date
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
Enrico Tröger
ee196b6782 Removed title argument from win32_message_dialog because it is defined by the dialog type.
Added simple wrapper function win32_open_browser().


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@628 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-07-25 12:44:42 +00:00
Enrico Tröger
30340b5b5a Don't include windows.h in geany.h.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@625 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-07-25 08:27:12 +00:00
Enrico Tröger
7569b71749 -Convert Unicode strings to wide characters to avoid weird display.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@622 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-07-24 23:56:50 +00:00
Enrico Tröger
7ec96dec29 Changed call of document_open().
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@618 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-07-24 18:07:14 +00:00
Nick Treleaven
42a206085e Apply fonts in Preferences when they are set and only if they have changed. Rename utils_set_font to utils_set_editor_font. Remove an old comment in document_open_file.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@503 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-06-29 16:55:29 +00:00
Enrico Tröger
ae4b9e248a moved my_strtod() from win32.c to utils.c, use it always, not only on Win32 systems
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@305 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-05-05 16:07:40 +00:00
Enrico Tröger
257b71ebd2 several improvements
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@209 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-02-22 00:41:57 +00:00
Enrico Tröger
59a7979f32 added my_strtod(), as replacement for Win32 strtod()
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@99 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-01-03 12:33:27 +00:00
Enrico Tröger
5deab2b6e5 improved usage of config.h and cleaned some header files from unneeded includes.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@89 ea778897-0a13-0410-b9d1-a72fbfd435f5
2005-12-29 19:50:50 +00:00
Enrico Tröger
8cb2cf0997 Initial import
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4 ea778897-0a13-0410-b9d1-a72fbfd435f5
2005-11-22 12:26:26 +00:00