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
Nick Treleaven
89b3f4c314
Remove unused argument. Rename document_find_next() document_search_bar_find().
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@910 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-10-21 11:00:37 +00:00
Nick Treleaven
df64d0a535
Added 6pt border, changed padding for all dialogs in dialogs.c;
...
also allow ESC to close cancellable dialogs.
Updated unsaved, LaTeX Set Arguments dialogs.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@906 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-10-19 16:26:29 +00:00
Nick Treleaven
e821acb863
Move build menu related functions and callbacks to build.c.
...
Renamed ui_update_build_menu -> build_menu_update.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@902 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-10-18 19:35:42 +00:00
Nick Treleaven
078742fc5c
Move build_info struct to build.c and merge with build_options.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@898 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-10-16 14:41:57 +00:00
Nick Treleaven
3a721f02d1
Don't overwrite Make Custom string when using Make Object.
...
Move app->build_make_custopt to build_options struct in build.c.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@897 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-10-16 14:15:04 +00:00
Nick Treleaven
8520ef16e2
Prevent a segfault if the Terminal tool is not set.
...
Use cmd.exe as default Terminal tool on Windows.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@831 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-09-22 12:05:18 +00:00
Nick Treleaven
a4d058894e
Don't print the g_spawn argv strings in build_run_cmd() on the status bar.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@818 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-09-15 15:09:13 +00:00
Enrico Tröger
9d2893c495
Implemented Run command (from the build menu) under Windows, the other commands will follow somewhen.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@811 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-09-11 11:13:36 +00:00
Nick Treleaven
d242e5091d
Show messages window on build failure.
...
Show build success message on status bar if messages window hidden.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@803 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-09-08 13:40:30 +00:00
Nick Treleaven
d3eb239d81
Show parsable errors in red; stderr and compile failure in dark red
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@800 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-09-08 10:20:15 +00:00
Enrico Tröger
d79e82f633
Moved prototype for geany_debug() to main.h.
...
Moved declaration of document struct to document.h.
Keep selection when commenting and uncommenting code.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@750 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-08-20 15:47:18 +00:00
Nick Treleaven
7ebb187b26
Store build information instead of using app->cur_idx; Assume C-like warning messages when running make when the current file is a Makefile; Moved some msgwin setup and cleanup code to msgwindow.c; Moved utils_parse_compiler_error_line to msgwindow.c
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@714 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-08-14 15:02:52 +00:00
Enrico Tröger
0dcbacec1f
Use utf8/locale encoding wrappers.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@711 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-08-13 09:07:10 +00:00
Enrico Tröger
f3d72d6e33
Search terminal program in PATH ( closes #1527203 ).
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@609 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-07-23 08:34:51 +00:00
Nick Treleaven
aff3e4f9dc
Don't include geany.h
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@595 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-07-20 21:16:12 +00:00
Nick Treleaven
1c8d62ed5d
Added basic Find in files search functionality.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@551 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-07-13 14:30:44 +00:00
Enrico Tröger
6cc29173be
Added new filetype D(patch by Christop Berg, thanks).
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@544 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-07-09 14:41:53 +00:00