263 Commits

Author SHA1 Message Date
Nick Treleaven
9add067c04 Remove the "Set build working directories" button from the project
properties dialog (patch by Jiří Techet, thanks).



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5194 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-08-24 12:07:28 +00:00
Nick Treleaven
2b11aa9a3e Remove buildcmd_* accessor functions.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5186 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-08-20 16:04:45 +00:00
Nick Treleaven
a4f51bd0bf Add TODO items to tidy code for easier understanding.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5185 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-08-20 15:56:39 +00:00
Nick Treleaven
7f572468e5 Replace GeanyBuildCommand::entries array with separate fields.
Similar to r5077 in the bs2 branch, but with less loop unrolling.



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5184 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-08-20 15:55:30 +00:00
Nick Treleaven
f528d36b58 Fix formatting in read_regex().
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5173 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-08-17 13:51:59 +00:00
Nick Treleaven
afd1ce1a60 Fix memory leak in read_regex().
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5171 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-08-16 17:02:45 +00:00
Nick Treleaven
3e282dea44 Fix saving non-project filetype error regex.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5170 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-08-16 16:54:59 +00:00
Lex Trotman
5be7577f1b Fix build menu translation problems.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5103 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-07-11 03:20:25 +00:00
Nick Treleaven
598e7c91e2 Show the Project Properties build tab when choosing 'Set Build
Commands' for now to prevent confusion with non-project commands.



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5094 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-07-07 12:04:28 +00:00
Nick Treleaven
ada3336bd8 Limit build error editor indicators to 50, but parse all errors in
the Compiler tab (fixes #3019823).



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5081 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-07-01 17:08:00 +00:00
Lex Trotman
3d361d3c55 Make default dialog entries use GTK_STATE_INSENSITIVE color not
a fixed color (Suggestion by Ditmar Zhekov)


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5064 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-06-24 06:39:24 +00:00
Nick Treleaven
6b4ba38e6d Add API signal "build-start" (patch by Jiří Techet, thanks).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5053 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-06-18 17:15:28 +00:00
Nick Treleaven
38ce52e968 Make default Build dialog entries grey, not light grey (too hard to
read on a white background).



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5029 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-06-17 12:12:37 +00:00
Nick Treleaven
3e87bf9ede * Merge unstable branch:
- src/build.c:
Make build config entries light grey until set.
- src/keybindings.c, src/about.c, THANKS:
Fix the wrong file being put on top of the stack when switching tabs
too quickly (patch from Jiří Techet, thanks).
- src/templates.c, data/templates/gpl, data/templates/function,
data/templates/changelog, data/templates/bsd,
data/templates/fileheader, wscript, Makefile.am:
Move general templates from source code into files.
Load general templates from system path instead of creating them in
the user's config dir.



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5025 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-06-16 15:22:19 +00:00
Lex Trotman
5c25d75ba8 Remove printf added for debugging
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/branches/unstable@5017 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-06-12 05:25:21 +00:00
Lex Trotman
d9e6534405 Make build config entries light grey until set.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/branches/unstable@5016 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-06-12 05:09:53 +00:00
Enrico Tröger
9742a3cef4 Explicitly try to localise build menu item labels with gettext to enforce getting default labels translated.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4985 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-06-03 11:09:20 +00:00
Enrico Tröger
84b27d23a3 Fix some labels which were marked as translatable but were not handled properly by gettext().
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4960 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-05-29 18:52:00 +00:00
Enrico Tröger
fb919cad99 Fix some labels which were marked as translatable but were not handled properly by gettext().
Add a missing const.

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4958 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-05-29 18:36:04 +00:00
Lex Trotman
15d6705252 Fix infinite loop reading build command output
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4949 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-05-23 08:27:20 +00:00
Enrico Tröger
853068491d Fix Run toolbar item sensitivity after the last document has been closed.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4943 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-05-22 19:39:27 +00:00
Nick Treleaven
16c632f579 Add Build prefix for TableFields, TableData.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4904 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-05-11 14:55:47 +00:00
Nick Treleaven
92c3140798 Make some ugly build.h global variables static.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4903 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-05-11 14:38:42 +00:00
Nick Treleaven
653a76b2f0 Fix marking some strings as translatable (cannot be done in the
ASSIGNIF macro).



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4877 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-05-06 12:03:11 +00:00
Nick Treleaven
a04d999014 Move debug-only variable cl into printfcmds().
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4871 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-05-03 15:43:07 +00:00
Nick Treleaven
8c7ccac2f4 Realign some macros.
Don't align local variable declarations.
Add blank line after variable declarations.



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4870 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-05-03 15:31:11 +00:00
Enrico Tröger
8c963d2829 Make string arguments const where appropriate (patch by Colomban Wendling, thanks).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4862 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-04-25 17:43:39 +00:00
Enrico Tröger
17553f0ee6 Fix disabled compiler message tracking if using indicators to show build errors is disabled (closes #2982834).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4808 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-04-07 21:09:56 +00:00
Lex Trotman
57aaf35b75 Fix using return value without checking return status, caused
incorrect sensitivity settings on build dialog.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4767 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-03-17 04:34:33 +00:00
Nick Treleaven
9191764491 Make Build Commands dialog show menu item labels as a button (to
help show that menu labels don't normally need to be edited &
display the mnemonic correctly). Clicking shows an input dialog to
set a new menu item label.
Split dialogs_show_input() into 2 functions: one simple, one for
a persistent dialog.
Fix possible double-destroy of input dialog when closed by user.



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4754 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-03-12 13:06:34 +00:00
Lex Trotman
ebe459f94f Fix crash due to NULL in project build preferences ( thanks to
Wolfgang Ocker )


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4749 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-03-10 00:55:21 +00:00
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