232 Commits

Author SHA1 Message Date
Nick Treleaven
686b375954 Prevent possible segfault in get_build_group().
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4536 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-01-22 16:23:12 +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
83516e6f6e Fix a compiler warning about an uninitialised variable.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4374 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-10-26 22:20:49 +00:00
Enrico Tröger
519af90fd3 Again very minor formatting
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4373 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-10-26 22:15:27 +00:00
Enrico Tröger
8e2dae2516 Very minor formatting
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4372 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-10-26 22:14:08 +00:00
Nick Treleaven
29b8a57133 Move function doc-comments to build.c so they stay in sync. Note:
these functions are still not in the API.



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4367 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-10-26 14:59:47 +00:00
Lex Trotman
8c70e03ed8 Make non-project execute configuration save to filetypes not geany.conf.
Fix closing of project failing to remove build commands dialog entry.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4352 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-10-22 09:19:30 +00:00
Lex Trotman
a231fa36d8 Include code for project filetype execute commands and fix bug in
saving project filetypes list.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4351 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-10-22 00:46:54 +00:00
Nick Treleaven
fdb87f98cc Rerun ./scripts/fix-alignment.pl.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4337 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-10-19 11:50:36 +00:00
Lex Trotman
24ed3cd619 Fix crash opening project when Geany started with no geany.conf.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4325 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-10-16 00:53:00 +00:00
Nick Treleaven
cf35a8a495 Revert r4301 - utils_free_pointers() taking 4 arguments.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4321 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-10-15 16:15:28 +00:00
Lex Trotman
563cca15c0 Fix sensitivity settings for compile and build toolbar items
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4307 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-10-12 23:54:47 +00:00
Nick Treleaven
f36c9024a3 Make utils_free_pointers() take 4 arguments, add to API.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4301 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-10-12 16:03:10 +00:00
Lex Trotman
d94e2085fa Ensure that old style build config is not loaded if it does not exist.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4296 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-10-12 08:25:04 +00:00
Nick Treleaven
ed72eeefce Show build 'Compilation failed' message in blue also, to distinguish it from build output.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4259 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-09-28 16:24:58 +00:00
Enrico Tröger
f8b18257ee Fix compiler warnings about uninitialised variables.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4222 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-09-21 20:31:39 +00:00
Nick Treleaven
dcd66f09a0 Add & use ui_label_set_markup(), ui_label_new_bold().
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4219 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-09-21 16:21:03 +00:00
Nick Treleaven
67c743fe72 Fix none filetype Build Commands dialog label.
Make group labels bold.



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4218 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-09-21 13:24:39 +00:00
Nick Treleaven
d769afa138 Add padding for Build Commands dialog separators.
Add colons for regex field labels; fix 1 capitalisation.



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4217 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-09-21 13:08:36 +00:00
Nick Treleaven
cd97d9b446 Split Build Commands dialog notes label and edit text.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4216 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-09-21 12:58:05 +00:00
Nick Treleaven
77b060e1cc Expand command entry width when expanding Build Commands dialog.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4215 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-09-21 12:47:20 +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
Nick Treleaven
6d5844ae69 Fix pointer alignment & 4 if statement alignments.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4181 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-09-13 15:33:04 +00:00
Lex Trotman
0d0f910a07 Fix erroneous free of returned string in prepare_run_script.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4176 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-09-11 00:06:00 +00:00
Nick Treleaven
e314175fde Fix wrong replacement of tabs in some alignments.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4166 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-09-07 14:37:30 +00:00
Enrico Tröger
81c56818ac Remove the FOREACH_GEANYBUILDCMD_ENTRY() macro.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4161 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-09-06 16:50:47 +00:00
Enrico Tröger
245ebd1234 Use NZV() macro instead of strlen() to check for empty strings.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4160 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-09-06 16:50:34 +00:00
Enrico Tröger
210fa0018a Adjust coding style (no code changes).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4159 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-09-06 16:50:20 +00:00
Nick Treleaven
388891afbf Fix 2 free's of possibly uninitialized pointers.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4149 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-09-03 12:14:58 +00:00
Lex Trotman
a1ca1ed099 Ensure uses of filename are protected against nulls when running
a build command and give status message if not.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4147 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-09-03 04:32:05 +00:00
Lex Trotman
8af51d54f5 Only write filetype config files when build command or regex is
actually changed.  Removed commented code in src/filetypes.c.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4146 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-09-03 03:40:21 +00:00
Enrico Tröger
55b68b76fa Fix compiler warnings.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4138 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-08-29 18:44:14 +00:00
Lex Trotman
6c36e98cdf Change fix to usage of project base dir
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4133 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-08-27 03:49:19 +00:00
Lex Trotman
898201f0bb Fix usage of project base dir
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4132 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-08-27 02:07:44 +00:00
Lex Trotman
2fe9afdf47 Fix compile accelerator & load old project file
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4131 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-08-27 01:08:30 +00:00
Nick Treleaven
931f14d2ae Use build_ prefix for 3 functions in build.h; add a static modifier.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4130 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-08-26 17:25:28 +00:00
Nick Treleaven
50471cf5f4 Fix invalid memory read (#2844632, patch by Lex Trotman, thanks).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4129 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-08-26 15:32:17 +00:00
Nick Treleaven
43620e7ce4 Remove GeanyKeyGroup struct from the API - plugins should not set
these fields.
Make keybindings_set_item() duplicate the name and label fields
(needed by GeanyLua) and return a keybinding pointer.
Add keybindings_get_item() to the API (in case it's useful).
Move some keybinding code out of plugin source files.



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4123 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-08-25 16:55:56 +00:00
Nick Treleaven
6eaeaec2c0 Fix using CamelCase for typenames.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4122 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-08-25 16:03:24 +00:00
Lex Trotman
081e9e768f Merged trunk to build-system
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/branches/build-system@4101 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-08-17 04:27:07 +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
Lex Trotman
8a4b302d7f Make build API symbols prefixed GEANY_
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/branches/build-system@4043 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-07-30 02:04:08 +00:00
Lex Trotman
cdd5240978 Remove unused project structure fields and erroneous usage
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/branches/build-system@4040 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-07-29 02:28:26 +00:00
Nick Treleaven
18240ed397 Fix gcc 'warning: comparison between signed and unsigned'.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/branches/build-system@4036 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-07-28 11:44:21 +00:00
Lex Trotman
6108436176 Fix warnings, build API and execute toolbutton
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/branches/build-system@4033 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-07-28 01:38:41 +00:00
Nick Treleaven
e3b1c92aa8 Fix some gcc warnings with '-Wall -W -ansi' enabled.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/branches/build-system@4030 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-07-27 16:37:23 +00:00
Lex Trotman
2f207ca919 Fixed crashes and warnings in project open and close
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/branches/build-system@4026 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-07-25 05:24:48 +00:00
Lex Trotman
525abca091 Fix build warnings
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/branches/build-system@4023 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-07-24 11:00:24 +00:00
Lex Trotman
28d96a3909 Merge with trunk
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/branches/build-system@4020 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-07-24 00:59:12 +00:00
Nick Treleaven
d563da620c Rename utils_str_replace() utils_str_replace_all(), setting a
'gchar **haystack' argument instead of returning a new string.



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4014 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-07-23 16:01:45 +00:00