256 Commits

Author SHA1 Message Date
Enrico Tröger
59bf5cd136 Fix broken help menu item on Windows. Add additional directory separator to generated READMEs.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1608 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-06-10 20:09:22 +00:00
Nick Treleaven
4193196248 Move MyApp::pref_editor_* to editor.h, using editor_prefs struct.
Move INDENT_* enums to editor.h.
Move utils_get_whitespace() to editor.c.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1587 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-05-29 16:30:54 +00:00
Enrico Tröger
3ea503f62c Use current locale as default encoding for new files.
Don't keep comments in configuration file to work around a bug in newer GLib versions.
If config file doesn't exist, try to load a global one from $prefix/share/geany/.
Don't create an empty geany.conf as write test, use access() instead.		   


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1579 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-05-26 15:09:06 +00:00
Nick Treleaven
6066c2816f Fix bug when directory doesn't exist in utils_get_file_list().
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1528 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-05-11 17:31:06 +00:00
Nick Treleaven
fc92459681 Wrap notebook pages when switching tabs.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1527 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-05-11 16:43:13 +00:00
Nick Treleaven
163890a33e Move search_get_file_list() to utils.c.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1520 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-05-11 11:42:00 +00:00
Nick Treleaven
6ebf6aa2f5 Add G_GNUC_NULL_TERMINATED to ensure variable arglists are NULL
terminated (for GLib >= 2.8).


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1475 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-04-23 15:52:44 +00:00
Enrico Tröger
e331c40a54 Use g_stat() instead of stat() to prevent file read errors on Win32.
Prevent unnecessary filename encoding conversions on Win32.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1456 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-04-16 15:58:34 +00:00
Enrico Tröger
b187533760 Use Ctrl+Shift+Space always for showing calltips because Alt+Space is used often by window managers (not only under Windows).
Added keybinding for inserting alternative whitespace characters.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1422 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-03-25 20:51:45 +00:00
Nick Treleaven
9c771f709c Fix segfault (oops).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1387 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-03-12 16:30:15 +00:00
Nick Treleaven
a81ab1c4cf Update the status bar after setting the document file type, if it
has changed.
Update the status bar after colourising open files, so the current
tag is accurate.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1386 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-03-12 16:24:52 +00:00
Nick Treleaven
82836d4c7d Make New Project dialog create parent directories of the chosen base
path if necessary.
Prevent warnings when setting open dialog directory to a path whose
parent directory doesn't exist.
Add create_parent_dirs argument for utils_mkdir().


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1382 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-03-10 17:26:03 +00:00
Enrico Tröger
90b01daf35 Fixed several compiler warnings (mainly shadowing local variables and unreachable code).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1376 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-03-09 13:52:26 +00:00
Nick Treleaven
3a44ffa8f8 Fix memory leak with utils_remove_ext_from_filename().
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1363 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-03-03 13:34:15 +00:00
Enrico Tröger
926437688f Set IO channels for custom commands to blocking mode (thanks to Jeff Pohlmeyer).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1353 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-03-01 21:45:43 +00:00
Enrico Tröger
a8dae8ecb6 Applied patch from Jeff Pohlmeyer to improve the custom command execution code(thanks).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1347 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-03-01 10:54:37 +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
Nick Treleaven
d39c458655 Add *.rej as a Diff filename pattern.
Add utils_strv_new() to duplicate a va_list of strings.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1263 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-02-08 16:26:45 +00:00
Enrico Tröger
3f360fcdd9 Improved the auto scrolling of documents (actually done by Nick).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1237 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-01-31 15:53:11 +00:00
Enrico Tröger
55f054d234 Added properties dialog (still far away from state ready).
Added file_patterns field.
Added utils_mkdir().


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1200 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-01-17 23:44:08 +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
Enrico Tröger
2b0740a5fa Added sci_set_use_tabs().
Fixed mem leak in sci_cb_auto_forif().
Moved free_pointers() to utils.c.
Applied patch from Jeff Pohlmeyer to add an option for using spaces or tabulators when inserting some whitespace.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1186 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-01-14 17:09:17 +00:00
Nick Treleaven
6044ff1f50 Move utils_compare_symbol(), GeanySymbol, recreate_tag_list()
to symbols.c.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1179 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-01-13 13:25:05 +00:00
Nick Treleaven
64a6c47012 Fix g_strconcat leaks in utils_make_settings_dir().
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1176 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-01-12 16:55:05 +00:00
Nick Treleaven
15fb502837 Prevent some possible buffer overflows.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1171 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-01-09 16:53:27 +00:00
Nick Treleaven
af369cf776 Fix memory leak when using utils_scan_unicode_bom().
Prevent invalid memory read in utils_scan_unicode_bom() when text
length is < 4.
Move utils_scan_unicode_bom(), utils_is_unicode_charset() to
encodings.c.
Read the BOM length in handle_bom().


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1167 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-01-07 16:22:41 +00:00
Enrico Tröger
7b11469786 Save template files in a subdirectory "templates" inside Geany's configuration directory.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1163 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-01-06 18:00:34 +00:00
Nick Treleaven
d5e934c3af Only call SCI_BRACEMATCH once in sci_cb_highlight_braces().
Separate find_calltip() from sci_cb_show_calltip().


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1144 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-12-24 12:07:35 +00:00
Nick Treleaven
9fa9a63787 Don't reparse the current function when fold level is higher than
the function fold level (when the line has only changed by 1).


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1143 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-12-22 15:59:01 +00:00
Nick Treleaven
055f70da67 Force a file changed check when attempting to open an already open
file.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1119 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-12-18 13:04:18 +00:00
Nick Treleaven
7dc865dd1f Fix memory leak in utils_check_disk_status().
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1104 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-12-16 17:00:41 +00:00
Enrico Tröger
37c230845a Revert the last change to utils_str_equal() and use it again because g_str_equal() is not NULL-safe.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1059 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-12-07 16:09:45 +00:00
Enrico Tröger
c461da68f1 Removed utils_str_equal() and use g_str_equal() from GLib because it does exactly the same.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1056 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-12-06 20:44:32 +00:00
Nick Treleaven
bd1137d9e9 Rename utils_strcmp() utils_str_equal() (to avoid return value
confusion with strcmp()).


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@978 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-11-08 16:21:46 +00:00
Nick Treleaven
67ce2f51b0 Move utils_get_tag_list() to symbols.c, make utils_find_tm_tag()
static.
Move symbols_get_global_keywords() to get_global_typenames() in
highlighting.c.
Add symbols_find_tags_as_string(), symbols_get_tag_list(),
symbols_get_macro_list(), symbols_find_in_workspace() from various
tag-related existing code.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@976 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-11-08 11:42:05 +00:00
Nick Treleaven
7b1ca9594f Scroll matching selection to 1/3 of the view when searching.
Add sci_scroll_to_line(); remove sci_goto_line_scroll().
Show 'not found' message on status bar also when enter is pressed in
the search bar.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@964 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-11-03 15:09:13 +00:00
Nick Treleaven
ab192d7336 Prevent end of line char showing for current function.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@955 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-11-01 16:39:52 +00:00
Nick Treleaven
27894a58ab Limit parse depth to 500 chars when parsing C-like function name.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@937 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-10-27 14:21:48 +00:00
Enrico Tröger
60bb784493 Moved utils_convert_to_utf8() and utils_convert_to_utf8_from_charset() to encodings.c.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@931 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-10-25 14:48:07 +00:00
Nick Treleaven
72f287fe0f Move geany_debug prototype to geany.h so that all files can use it
without a dependency on main.h.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@912 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-10-21 11:16:54 +00:00
Enrico Tröger
10c0780d4d Use "::" as context separator only for C++, otherwise use ".".
Detect module declarations in D and put them in the symbol list.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@903 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-10-18 20:11:05 +00:00
Enrico Tröger
90fe91b7d7 Fixed compiler warning.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@894 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-10-13 23:04:04 +00:00
Nick Treleaven
0ecb15ad7d Fix infinite loop from parsing current function name.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@893 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-10-13 12:40:37 +00:00
Enrico Tröger
3f9c00e2ba Improved function name parsing to fix some invalid parsed function names.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@891 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-10-12 22:21:29 +00:00
Nick Treleaven
37f6349e31 Fix parsing the current function name for Java.
When the document is unedited, get the current function name from
the previous function tag parsed by tagmanager.
Don't update the current function if the cursor is 1 line from the
previous call and the fold level is unchanged.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@890 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-10-12 16:27:31 +00:00
Enrico Tröger
cef263b7c7 Fixed missing time stamp in status messages on Windows.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@836 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-09-26 16:54:20 +00:00
Enrico Tröger
c20171288d Enabled socket code on Windows.
Re-enabled the gtk_window_present() call for Windows to pop up the main window.
Enabled notification if file on disk has changed under Windows, it seems to work (closes #1557689).


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@835 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-09-26 16:29:44 +00:00
Nick Treleaven
d186f909bd Improve utils_get_current_time_string().
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@820 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-09-17 20:40:15 +00:00
Enrico Tröger
09d7f30aec Convert tag names to UTF-8 before showing them in the sidebar.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@794 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-09-06 17:31:53 +00:00
Nick Treleaven
a63fc1e40e Moved UI related utils from utils.c to ui_utils.c
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@790 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-09-05 14:24:47 +00:00