Lex Trotman
906416ac34
Get toolbar code from trunk
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/branches/build-system@3985 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-07-18 11:10:06 +00:00
Lex Trotman
11f9dd05ad
Fix substitutes and leaks in build commands
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/branches/build-system@3984 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-07-17 07:59:19 +00:00
Lex Trotman
3bc23327f5
Fix many warnings, remove make cmd preference
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/branches/build-system@3982 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-07-17 00:23:38 +00:00
Lex Trotman
3456b7cc4a
Implement Working directory fields
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/branches/build-system@3972 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-07-16 05:52:58 +00:00
Lex Trotman
6ec0ff6723
Implement multiple execute commands & minor fixes
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/branches/build-system@3970 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-07-15 06:55:12 +00:00
Lex Trotman
bc8f9f771e
added dialog support for error regexes
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/branches/build-system@3959 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-07-14 07:15:31 +00:00
Lex Trotman
8837c077b3
Fixed filetype priorities with project menu items
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/branches/build-system@3952 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-07-11 12:46:17 +00:00
Lex Trotman
e345d180d2
Fixed load/save filetypes build config, implemented Build Commands Dialog clear button
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/branches/build-system@3947 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-07-10 09:00:37 +00:00
Lex Trotman
1726e57092
Configurable Build Menu Alpha
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/branches/build-system@3941 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-07-09 06:49:42 +00:00
Enrico Tröger
1766302cd3
Fix warnings when the toolbar does not contain the Run button.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3908 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-07-04 09:17:12 +00:00
Enrico Tröger
749cc9e2ce
Fix LaTeX view commands on Windows (part of #2807688 ).
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3879 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-06-20 16:52:44 +00:00
Enrico Tröger
8b5b6287e1
Instantly reload (i.e. rebuild) the toolbar when ui_toolbar.xml is saved within Geany.
...
Refactor some related code.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3874 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-06-20 16:51:32 +00:00
Enrico Tröger
09f5851d79
Fix crashes when parsing the output of a compiler which reports errors on line 0.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3834 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-06-01 21:51:33 +00:00
Enrico Tröger
60797701e5
Remove quote_executable() as it is not used anymore.
...
When creating the geany_run_script.bat use the "%0" variable expansion and quote it for the "del" command (closes #2797172 ).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3817 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-05-27 17:21:51 +00:00
Enrico Tröger
b0b8c0c91c
Fix quoting the build command string on Windows ( closes #2791769 ). This broke when we made build commands run synchronously on Windows, now we don't need to special quote the commands anymore.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3806 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-05-19 21:06:04 +00:00
Enrico Tröger
e908e38a89
Limit the amount of highlighted build error messages in the Compiler window to 50 for performance reasons.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3725 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-04-21 20:54:50 +00:00
Enrico Tröger
46f16e6b93
Skip empty lines when parsing build output.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3724 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-04-21 20:54:30 +00:00
Enrico Tröger
63809f5e16
Make build commands on Windows run synchronously to avoid problems with reading build commands' output.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3723 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-04-21 20:54:19 +00:00
Enrico Tröger
a95a59a42f
Remove all G_LIKELY macros inside g_return_if_fail() statements as this is redundant.
...
Remove many other G_LIKELY/G_UNLIKELY macros which doesn't make much sense to keep the code more readable.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3708 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-04-15 22:47:33 +00:00
Enrico Tröger
a9dc990049
Start using G_LIKELY/G_UNLIKELY macros to gain a little more performance when building the code with gcc.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3687 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-04-05 21:07:40 +00:00
Enrico Tröger
ee99a3e841
Remove checks for the .pdf or .dvi files when viewing a LaTeX file (as we did for all other files in SVN r3382).
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3682 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-04-03 14:48:20 +00:00
Enrico Tröger
a9bf063c7b
Delete the geany_run_script.sh immediately after execution to prevent leaking old copies when the script was quit unexpectedly ( closes #2710482 , patch by Martin Olsson, thanks).
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3651 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-03-25 18:52:17 +00:00
Enrico Tröger
a404e821a2
Reset current build directory to the base directory after reading a "Leaving directory" message when parsing Make output ( closes #2694479 , patch by Andrea Mazzoleni, thanks).
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3638 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-03-19 18:03:38 +00:00
Enrico Tröger
1ec2a9e323
Update build menu items after changing anything in the 'Set Includes and Arguments' dialog.
...
Disable Compile/Run buttons/menu items when Compile/Run commands are set but empty.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3634 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-03-19 17:49:52 +00:00
Enrico Tröger
4ffd7f2ed9
Add a clear icon to the used text entries all over the place (will be available with GTK >= 2.16).
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3570 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-02-10 21:10:50 +00:00
Enrico Tröger
2758ac24b7
If the VTE has a dirty command line, print the resulting warning also to the debug messages.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3528 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-01-30 15:39:08 +00:00
Enrico Tröger
5752ee9863
Rename utils_start_browser() in utils_open_browser() and add it to the plugin API.
...
Add plugin symbol plugin_help() which is called by Geany when the plugin should show its documentation (if any). This symbol is optional, plugins can omit it if not needed.
Add a Help button next to the Configure button in the plugin manager dialog to easily open a plugin's documentation if available.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3524 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-01-28 19:30:18 +00:00
Enrico Tröger
644a9cfbff
Add a progressbar widget to the statusbar and use it to show progress when building with the Make commands, when printing and when using Find in Files.
...
Add progressbar convenience functions and ui_entry_add_clear_icon() to the plugin API.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3517 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-01-27 20:19:43 +00:00
Enrico Tröger
ef1c5b566c
Add missing NULL checks.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3486 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-01-18 18:54:59 +00:00
Enrico Tröger
ebb4363ef1
Disable the Build menu item in the Build toolbar button explicitly for LaTeX files.
...
Update the tooltip for the Build toolbar button according to the last used action.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3485 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-01-18 18:20:23 +00:00
Enrico Tröger
204b62d000
Add 'Build' toolbar button with a submenu for Make actions.
...
Make use of ui_image_menu_item_new() for some menu items.
Remove tooltips from menu items.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3479 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-01-17 17:59:20 +00:00
Enrico Tröger
8362d6be15
Don't remove leading whitespace from compiler output for compilers like gfortran which use space for indentation in error messages.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3450 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-01-06 15:16:55 +00:00
Enrico Tröger
39a6eb455e
Update copyright information.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3446 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-01-04 18:30:42 +00:00
Enrico Tröger
9e25c43487
Move implementation of lookup_widget() into ui_lookup_widget().
...
Change uses of lookup_widget() to ui_lookup_widget().
Remove now unneeded support.c.
Use GLib gettext macros in support.h instead of own ones.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3402 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-12-18 21:21:53 +00:00
Enrico Tröger
9d84753cdf
Remove checks for the executable when executing a file.
...
The executed interpreter or the shell should handle file not found error and print appropriate messages.
This makes it a bit more flexible, e.g. allowing to use gcj for Java files.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3382 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-12-15 21:21:19 +00:00
Enrico Tröger
8ed9710f48
Rewrite of the whole toolbar code. Now it is based on GtkActions and all elements can be added/removed/reordered using a simple XML file.
...
Add GeanyMenubuttonAction and GeanyEntryAction as GtkAction subclasses to have menu buttons and text entries in the toolbar.
Change the Goto line toolbar item back to a plain text entry again.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3328 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-12-06 11:10:06 +00:00
Nick Treleaven
921f010ffc
Rename msgwin_compiler_add -> msgwin_compiler_add_string.
...
Rename msgwin_msg_add -> msgwin_msg_add_string.
Rename msgwin_compiler_add_fmt -> msgwin_compiler_add.
Rename msgwin_msg_add_fmt -> msgwin_msg_add.
This fixes 2 geanyfunctions.h macros, and is more consistent with
msgwin_status_add().
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3326 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-12-05 17:30:06 +00:00
Enrico Tröger
7ff7cbce72
Fix broken LaTeX view commands ( closes #2315014 ).
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3257 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-11-19 18:41:37 +00:00
Nick Treleaven
a2ceb60e3a
Make utils_free_pointers() take an arg_count argument to prevent
...
memory leaks.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3245 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-11-18 17:14:00 +00:00
Enrico Tröger
18095fca79
Note: this breaks the plugin API for Editor and Scintilla functions.
...
Rename all functions in editor.c and sciwrappers.c which are related to indicators for more consistency.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3238 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-11-16 17:54:28 +00:00
Enrico Tröger
6bc86c4462
Replace gtk_widget_(un)ref() with g_object(un)ref(), patch by Colomban Wendling, thanks.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3143 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-10-22 15:36:45 +00:00
Enrico Tröger
9b05011c20
Remove inexact and unnecessary warning if a Run command has failed.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3026 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-09-30 20:30:38 +00:00
Enrico Tröger
ab7a522ca9
Rename all toolbar widgets for consistent names.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2924 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-09-08 14:22:39 +00:00
Nick Treleaven
a134c529c2
Rename KeyCallback GeanyKeyCallback.
...
Rename KeyBinding GeanyKeyBinding.
Rename KeyBindingGroup GeanyKeyGroup.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2869 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-08-08 18:05:53 +00:00
Enrico Tröger
8d67117d47
Rename "delete_event" to "delete-event".
...
Remove some unnecessary GObject casts in g_signal_connect() calls.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2788 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-07-18 13:40:48 +00:00
Nick Treleaven
3bdd42ba4b
Change plugin API EditorFuncs to use GeanyEditor pointers.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/branches/editor-struct@2770 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-07-11 14:49:09 +00:00
Nick Treleaven
9386d36f25
Add keybindings for Previous Message, Previous Error commands
...
(#1931125 ).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2728 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-06-26 16:39:41 +00:00
Nick Treleaven
71e03b2cb0
Add Previous Error menu item.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2727 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-06-26 16:17:28 +00:00
Nick Treleaven
652d073d62
Merge the document-pointer branch.
...
Note: this breaks the plugin API for document functions,
document signal callbacks, msgwin_msg_add() and navqueue_goto_line().
Make all DocumentFuncs use a GeanyDocument* instead of an integer
index, so there's no need to access the documents array or use
DOC_IDX_VALID() - usually just check for non-NULL.
Pass a document pointer to the callbacks of all document-* signals.
Add GeanyDocument::index field for use with the documents array.
Remove DocumentFuncs::get_cur_idx() - use get_current() instead.
Replace DocumentFuncs::get_n_idx() with get_from_page().
Rename DocumentFuncs::find_by_realpath() to find_by_real_path().
Replace DocumentFuncs::remove() with remove_page().
Add 'changed' argument for DocumentFuncs::set_text_changed().
Make NavQueueFuncs and MsgWinFuncs use a GeanyDocument* instead of an
integer index.
Add DOC_VALID() macro.
Add deprecated DOC_IDX() macro to get the document index from a
possibly NULL pointer; deprecate macro DOC_IDX_VALID. These macros
can make porting outside plugins easier; of course, it is better to
rewrite the code to use document pointers.
Use document pointer instead of an index to the documents array
everywhere in the core code.
Rename utils_check_disk_status() in document_check_disk_status() and
move it into document.c.
Adjust plugins to work with these changes.
Add dox for document_set_filetype().
Rename debugging function doc() doc_at() to avoid conflicts.
Update plugin signals dox.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2705 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-06-18 17:03:08 +00:00
Nick Treleaven
56e77de794
Bring back GeanyDocument::is_valid field as it is clearer and more
...
descriptive than using doc->index != -1.
Add deprecated macros DOC_IDX_VALID and DOC_IDX in plugindata.h,
which can make porting outside plugins easier; of course, it is
better to rewrite the code to use document pointers.
Use is_valid instead of the DOC_VALID macro when iterating over
documents_array, as there are never NULL pointers in it.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/branches/document-pointer@2704 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-06-18 14:18:26 +00:00