Nick Treleaven
a849585ac1
Add support for %e, %f in project run command.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1570 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-05-25 12:03:35 +00:00
Nick Treleaven
3af3268247
Use get_build_executable() in prepare_run_script().
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1568 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-05-24 16:12:12 +00:00
Enrico Tröger
b5f8992a5d
Added many widget names to different dialogs for use with custom styles. Menu items still don't work.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1535 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-05-15 15:16:16 +00:00
Nick Treleaven
f23abfa7cd
Allow run for any file (with a path) when a valid project run command
...
is set.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1497 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-05-01 12:27:56 +00:00
Nick Treleaven
266c9db969
Disable the Build Includes run command field when there is a project
...
open with a valid run command set.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1494 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-04-30 16:16:49 +00:00
Nick Treleaven
1b79a856b0
When linking (or using Make Custom), remove error indicators in all
...
documents (should fix #1705374 ).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1473 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-04-23 12:55:37 +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
Nick Treleaven
6575d4f953
Move dialogs_show_includes_arguments_*() to build.c.
...
Move on_includes_arguments_*dialog_response() to build.c.
Make several build functions static.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1418 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-03-24 12:40:20 +00:00
Nick Treleaven
467b31c874
Switch to Compiler window when using Next Error command.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1383 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-03-12 12:13:45 +00:00
Nick Treleaven
f38edbfc2c
Use exact executable name in run command error message. Edit tooltip.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1367 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-03-05 12:44:02 +00:00
Nick Treleaven
0f409ab8a4
Add project run command support. Run command is a custom command-line
...
and can include arguments.
Make 'Choose project filename' dialog use a Save button.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1366 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-03-05 12:13:09 +00:00
Nick Treleaven
a521b9b290
Use UTF-8 for missing executable error message.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1365 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-03-03 17:02:57 +00:00
Nick Treleaven
b05dbb0419
Fix memory leak, remove unused build_create_shellscript() argument.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1364 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-03-03 16:54:04 +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
Nick Treleaven
d98e77ca4d
Moved all code for checking and creating the geany run script
...
temporary file from build_run_cmd() to prepare_run_script().
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1362 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-03-03 13:14:41 +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
Nick Treleaven
c660ffc051
Run Make All and Make Custom from the project base directory, if set.
...
Add project_get_make_dir().
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1348 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-03-01 11:38:14 +00:00
Nick Treleaven
7b30ec88de
Make build_spawn_cmd() take a command string instead of joining an
...
array of strings.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1346 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-02-28 17:24:22 +00:00
Nick Treleaven
955f8488cb
Prevent undefined behaviour when using the Stop command that can kill
...
X when Geany is run from the KDE or Xfce menu (not from a terminal).
Should close #1668017 .
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1333 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-02-25 13:08:01 +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
a80d25e911
Add missing NULL terminator (oops).
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1247 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-02-03 17:49:03 +00:00
Nick Treleaven
c934b19755
Allow Make for files with no extension - prevent Build when the
...
output filename would be the same as the source file.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1245 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-02-03 17:01:44 +00:00
Enrico Tröger
8481a9a8c5
Prevent compiling or executing of files without a filename extension( closes #1642029 ).
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1239 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-02-01 14:42:25 +00:00
Enrico Tröger
e0e15d8ff7
Applied patch from Jeff Pohlmeyer to avoid parsing of compiler errors by the va_list system.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1217 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-01-21 18:22:14 +00:00
Enrico Tröger
c7b0fdeb8b
Use "rm" to delete the run script because unlink is not available on all systems.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1206 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-01-19 15:45:43 +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
3e31b904dc
Make build_parse_make_dir() more efficient.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1156 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-01-04 11:49:14 +00:00
Nick Treleaven
7170df59b8
Added filetype_id typedef so that GEANY_FILETYPES_* can be shown
...
when debugging (also renamed some filetype_id variable names).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1155 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-01-03 16:21:44 +00:00
Nick Treleaven
8d6ae11cbf
Applied patch from Josef Whiter to parse 'Entering directory' build
...
messages so that subsequent error messages are handled correctly
(thanks).
Assume gcc-style error messages when filetype is not set.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1149 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-12-30 16:16:59 +00:00
Nick Treleaven
b71c227f55
Add 'Hide Message Window' popup menu item for each window in the
...
message window area.
Add msgwin_menu_add_common_items().
Move remaining message window setup code to msgwin_init().
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1090 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-12-13 16:41:25 +00:00
Nick Treleaven
f41444243b
Use GNOME HIG Header style capitalization for all menu items.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1084 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-12-12 12:12:20 +00:00
Enrico Tröger
33425f1a5d
Added option to execute programs in the VTE instead of executing them in a terminal emulation window ( closes #1594456 ).
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1078 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-12-10 21:29:04 +00:00
Nick Treleaven
a0da812c93
Add keybindings for Next Message and Next Error commands.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1077 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-12-09 17:03:03 +00:00
Nick Treleaven
cb18b1aa79
Fix building on win32; also fix some warnings.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1073 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-12-09 13:06:50 +00:00
Nick Treleaven
978de6fe6f
Add Next Message and Next Error menu items.
...
Don't select the last build message on completing a build.
Change build_get_menu_items(-1) to return current build menu.
Add Copy popup menu item for Status and Messages windows.
Move on_message_treeview_clear_activate(),
on_compiler_treeview_copy_activate() to msgwindow.c.
Create the Recent files submenu item manually because Glade 2.10
removes empty menus.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1068 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-12-08 15:50:10 +00:00
Enrico Tröger
2a596e1f17
Made the created run script for command execution a bit more portable to other shells than bash (thanks to Nacho Cabanes for reporting).
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1066 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-12-08 09:56:31 +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
e458304ce3
Make all filetypes except LaTeX use the same build menu, disabling
...
any items that don't apply for the current document.
Move BuildMenuItems struct type to build.h.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1038 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-11-30 15:42:52 +00:00
Nick Treleaven
e39cf19730
Make stop button only apply for killing running programs.
...
Disable build commands when building is in progress.
Make build_menu_update() detect how to call set_stop_button().
Make build_menu_update() also update the LaTeX build menu.
Make build keybindings only active when the equivalent menu item
is also active.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1036 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-11-29 10:29:34 +00:00
Nick Treleaven
6bd89dc3ee
Show build result on status bar if Compiler window is not selected.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1034 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-11-27 11:32:45 +00:00
Nick Treleaven
01988714b3
Make ui_set_statusbar() use printf-style arguments & assume the
...
message should not be overridden.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1032 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-11-25 16:33:38 +00:00
Enrico Tröger
f0ffdced4f
Fixed compile error under Win32. Ignore pressed Stop button under Win32 (at least for the moment, not yet implemented).
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1009 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-11-17 17:49:16 +00:00
Nick Treleaven
7146b60c31
Remove the stop button in build_exit_cb() when using Make commands.
...
Fix set_stop_button() when using Make when the current file has no
filetype.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1000 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-11-15 17:07:15 +00:00
Enrico Tröger
3ae8ce6ebe
Added missing inclusion of signal.h.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@993 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-11-14 01:27:12 +00:00
Enrico Tröger
59470aa381
Extended the build_info struct with useful information of the current running command.
...
Added stop button(using the Run button) to cancel the execution of a command like Run, Compile or Build.
Fixed a typo in an error message.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@986 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-11-11 18:51:33 +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
Enrico Tröger
3e9cbc0e01
Fixed compiler warnings under Windows.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@926 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-10-24 18:02:38 +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