91 Commits

Author SHA1 Message Date
Enrico Tröger
2d77d3013a Add support for relative project base path.
Improve and synchronize base path tooltips in project new and properties dialogs.
Fix minor GUI annoyances in project dialogs.	    


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1984 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-10-28 17:02:36 +00:00
Nick Treleaven
601dfd69f7 Make msgwin_status_add() only log a message, not display it on the
status bar.
Make ui_set_statusbar() take a log argument for whether to record the
message in the Status window.
(Plugin API functions already do this).


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1971 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-10-24 10:52:48 +00:00
Nick Treleaven
4ff90adf26 Fix displaying error indicators with Make after entering a
subdirectory.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1915 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-09-27 15:10:22 +00:00
Enrico Tröger
ac7e6acee5 Change quotes in some error messages to be more consistent (thanks Frank).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1863 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-09-09 16:13:30 +00:00
Nick Treleaven
ef1399e000 Rename MyApp -> GeanyApp.
Move most GeanyApp fields into:
GeanyPrefs for (most) Preferences dialog fields;
UIPrefs for non-Prefs dialog visual settings;
UIWidgets for less commonly used widgets such as menuitems and
dialogs;
GeanyStatus for various states the application can be in.
Move some GeanyApp fields into EditorPrefs (and one into each of
CommandLineOptions and SidebarTreeviews).
Add plugin API prefs field.
Move disabling build widgets on Windows to build_init().
Make build callbacks static.
Add treeviews_init() to prepare popup menus and open files treeview.
Replace treeviews_find_node() with treeviews_select_openfiles_item().
Make utils_isbrace() and utils_is_opening_brace() take an
'include_angles' argument (to separate from editor_prefs).
Make 'Goto matching brace' keybinding include <> angle brackets.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1815 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-08-23 11:34:06 +00:00
Nick Treleaven
9f46d083c5 Move #define PLAT_GTK to geany.h.
Move filetype typedef to geany.h.
Don't #include any src/*.h files from headers.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1800 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-08-15 15:37:21 +00:00
Enrico Tröger
b54eb0a180 Always use g_fopen() and g_stat() instead of fopen() and stat() to fix several problems with filenames containing special characters on Windows. Use GetFullPathName() instead of lrealpath() to get Tagmanager working on files containing special characters on Windows.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1714 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-07-17 12:04:46 +00:00
Nick Treleaven
3f69767f4b Hopefully fix gtk_widget_set_sensitive assertion failed warning on
Windows.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1632 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-06-19 17:11:46 +00:00
Nick Treleaven
8de4662f63 Use g_io_channel_win32_new_fd() as recommended in GLib docs for
utils_set_up_io_channel() on Windows. (Unlikely to change behaviour
though).


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1613 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-06-13 12:00:23 +00:00
Enrico Tröger
64fa4a6388 Hide Next Error menu item and unnecessary separator from build menu on Windows.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1607 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-06-10 19:28:50 +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
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