314 Commits

Author SHA1 Message Date
Colomban Wendling
35cc441b74 Merge branch 'gtk3-support'
Conflicts:
	src/ui_utils.c
2013-03-10 17:20:25 +01:00
Lex
d34ca17868 Correct description of build_activate_menu_item()
Correct the documentation comment for build_activate_menu_item() for
plugin documentation.
2013-03-01 12:52:20 +11:00
Lex
3c2dc547cd Make the tools->terminal setting more flexible.
Previously was hard coded with options to suit xterm.  As this is
being replaced with different terminal programs some do not accept
the same options.  The new setting stores the whole command with
%c to substitute the script name.  Upgrades old settings if a new
one does not exist.
2013-02-17 11:38:53 +11:00
Colomban Wendling
8ece89096d Merge branch 'master' into gtk3-support 2013-01-29 15:29:10 +01:00
Nick Treleaven
a3664fae9e Fix spawning [synchronous] commands on Windows
Build command spawning failed sometimes when there were several
pages of errors. In these cases the process would block for 30s and
then abort. (Some hangs were also experienced).

This fix does cause a console window to be shown for the duration of
the spawned process. This seems acceptable compared with the old
broken behaviour, and can be useful to abort the build command by
closing the console window.

Note: If 'env' is passed, the old broken spawning is used.
2012-10-24 17:35:19 +01:00
Colomban Wendling
a763e307f7 Don't access GtkWidget fields directly
Since many accessor are new in GTK versions we don't depend on, add
a header that defines them to the direct access if they aren't
available.
2012-10-08 20:08:06 +02:00
Colomban Wendling
49f6ebbd0a Don't use gtk_widget_hide_all(), deprecated in 2.24 2012-09-13 16:34:18 +02:00
Colomban Wendling
ce742b45dd Remove spurious semicolons 2012-08-24 20:20:09 +02:00
Colomban Wendling
d80bc7ce56 Update FSF address
Closes #3557875.
2012-08-24 19:25:57 +02:00
Colomban Wendling
1c2c455b1d Update copyright information 2012-06-18 01:15:04 +02:00
Lex Trotman
fa118fb12a Add build command access to plugin interface
Add ability for plugins to read and edit the fields of the build commands.
2012-02-15 14:18:34 +11:00
Colomban Wendling
e686681385 Don't set error twice (oops) 2012-02-05 19:46:59 +01:00
Colomban Wendling
0a22e8a624 Improve error handling in build_create_shellscript() 2012-02-05 19:21:11 +01:00
Nick Treleaven
b287553e4a Use 'SETPTR' instead of 'setptr'
This makes it clearer we're using a macro.
2012-01-25 16:26:16 +00:00
Nick Treleaven
da8160ac98 Fix gcc 'ordered comparison of pointer' warnings 2011-12-30 16:13:40 +00:00
Colomban Wendling
0aea05d10d Fix various integer signedness and minor styling issues
Most noteworthy change is that all build commands IDs and groups are
now unsigned everywhere negative values aren't explicitly handled with
a special meaning.  This should not change anything in behavior, only
makes clear the index won't underflow.
2011-12-18 00:32:22 +01:00
Colomban Wendling
53a98c303f Clear error indicators upon build start even if no document is given 2011-12-18 00:32:22 +01:00
Lex Trotman
f67ed6b636 Fix potential NULL dereference
Found by codebrainz using clang static analyser.
2011-11-09 19:08:27 +11:00
Matthew Brush
c9cd6c096c Set a parent GtkWindow on build command label edit input dialogs
This prevents losing the label edit input dialog below the build command
dialog which can be confusing since it prevents the build command dialog
from accepting input even though it's on-top of the (potentially hidden)
label edit input dialog.
2011-11-07 00:23:57 -08:00
Colomban Wendling
3f31453ace Fix various integer sign and size issues 2011-11-06 01:12:42 +01:00
Nick Treleaven
de559ef5d4 Make document_save_file() show the Save As dialog when necessary
Previously an error message was shown if doc->file_name is NULL.

The Save As dialog is now shown if the document does not have an
absolute path. This is because the user should confirm where to save
the document in this case.

Although this changes plugin API behaviour, it seems the best way to
ensure the Save As dialog is always shown when needed so the user
knows where the document has been saved.
2011-11-02 15:17:17 +00:00
Colomban Wendling
36ebb1f2b7 Use canonical macros for stock items rather than plain strings
This makes the code more readable, potentially more future-proof (if
the actual string changes) and better style (catches possible typos at
build-time).
2011-10-30 22:01:49 +01:00
Matthew Brush
bd5fba7eb5 Remove extra whitespace at end of lines in all source files.
* Processed with rstrip-whitespace.py script added to scripts/ directory.
* Script run on all .c and .h files in src/ and plugins/ directories.
* Also remove more than one newline at the end of files.
2011-10-11 21:52:58 -07:00
Colomban Wendling
d06e9f4575 Remove $Id$ and $Date$ SVN keywords 2011-10-09 22:57:35 +02:00
Nick Treleaven
abefcc3375 Support visual reordering of keybinding groups without breaking the
plugin ABI.
Reorder Project group to follow main menu order.
Move Focus, Notebook tab groups last as they don't have 
corresponding menu items.
Use keybindings_get_core_group() for fixed group IDs instead of 
indexing keybinding_groups.
Make keybindings_lookup_item() only work with a GEANY_KEY_GROUP_ 
ID, not an index into keybinding_groups.



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5990 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-10-03 14:57:02 +00:00
Nick Treleaven
5b220d70a2 * Merge branches/unstable:
- tagmanager/php.c:
   Fix parsing keyword-qualified functions strictly, e.g. don't 
   parse 'staticfunction' or 'fatfunction'.
 - src/utils.c, src/utils.h, src/editor.c:
   Use GRegex for snippet indentation replacement - fixes wrong 
   behaviour with Mac line endings.
 - tagmanager/lregex.c, TODO:
   Use GRegex for CTags instead of POSIX regex - GRegex is more 
   powerful. This also fixes a (HTML) performance issue on Windows. 
   Geany will now print a debug warning when using the "b" CTags 
   regex flag option for non-extended syntax. This is not currently 
   used by Geany's parsers.
   Note: GNU regex can't be removed yet as it's still used elsewhere 
   by Geany.
 - src/build.c, doc/pluginsignals.c:
   When saving on build, prompt for a filename if necessary.
   Emit the "build-start" signal only if saving succeeds.
 - src/build.c:
   Use #ifdef SYNC_SPAWN instead of G_OS_WIN32 for easier testing with 
   glib's asynchronous spawning (which doesn't work on Windows).
 - src/win32.c, src/win32.h, src/dialogs.c:
   Use GTK unsaved file dialog on Windows too because the button names 
   should be specific.



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5987 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-10-03 14:35:11 +00:00
Nick Treleaven
c6b38b861e When saving on build, prompt for a filename if necessary.
Emit the "build-start" signal only if saving succeeds.



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/branches/unstable@5972 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-09-29 18:03:36 +00:00
Nick Treleaven
478f91a129 Move build_menu_prefs to keyfile.c, it's only used there.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5947 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-09-22 15:55:10 +00:00
Nick Treleaven
b4bdd530da Use #ifdef SYNC_SPAWN instead of G_OS_WIN32 for easier testing with
glib's asynchronous spawning (currently doesn't work on Windows).



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/branches/unstable@5940 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-09-21 13:47:37 +00:00
Colomban Wendling
44e5687e0b Allow editing of formerly hidden preferences in the preferences dialog
Patch by Dimitar Zhekov, thanks! (closes P#3313315)

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5871 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-07-28 17:59:22 +00:00
Colomban Wendling
5d606ce351 Deprecate ui_widget_set_tooltip_text() in favor of gtk_widget_set_tooltip_text()
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5840 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-06-13 18:41:50 +00:00
Enrico Tröger
9f676783f6 Remove unused variables (patch by Eugene Arshinov, thanks).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5812 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-05-22 09:58:06 +00:00
Nick Treleaven
b36ebf0a6b Save filetype build commands straight after editing them instead of
at shutdown (patch by Dimitar Zhekov, thanks).



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5758 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-05-03 16:08:23 +00:00
Nick Treleaven
89f9182c51 Tweak some build dialog labels:
Clear -> Reset.
Fix capitalization.



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5672 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-04-01 16:02:17 +00:00
Colomban Wendling
ba645513f8 Don't use non-C89 initializers
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5600 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-03-17 16:14:56 +00:00
Enrico Tröger
6ac2623208 Update copyright information.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5528 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-01-19 19:39:09 +00:00
Nick Treleaven
e507c9b352 Remove unused variables.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5481 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-12-09 15:34:28 +00:00
Nick Treleaven
4ba5b4c217 Use italic for note labels in the Build Commands dialog.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5480 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-12-09 13:14:50 +00:00
Nick Treleaven
df2e2c9e33 Reduce Set Build Commands dialog column 1 width by using '#' label.
Fix memory leak.



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5479 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-12-09 13:03:42 +00:00
Nick Treleaven
3637847355 Replace doc-comments with '/* *' comments to show there's no build
API for plugins.



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5478 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-12-08 17:13:10 +00:00
Nick Treleaven
650b5ae84a Fix some more wrong uses of vte_info.load_vte instead of
vte_info.have_vte.



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5471 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-12-07 13:16:57 +00:00
Nick Treleaven
554f1b0526 Don't change default build command entry color when cancelling
label editing.
Make dialogs_show_input() return NULL when cancelled.



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5416 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-11-18 17:51:15 +00:00
Nick Treleaven
63df228c08 Remove unnecessary gpointer casts.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5415 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-11-18 16:25:11 +00:00
Nick Treleaven
e24d4fbfa0 Re-focus Set Build Commands/Project dialogs after editing a build
command label.
Add 'parent' argument to some dialogs_show_input*() functions because
the dialog parent may not always be the main window.



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5414 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-11-18 16:15:10 +00:00
Nick Treleaven
c8c19697f9 Change 'Non-Filetype Commands' to 'Independent Commands' in the Set
Build Commands dialog.



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5411 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-11-17 15:33:24 +00:00
Nick Treleaven
568f1853d2 Remove unnecessary uses of FILETYPE_ID() macro with
GeanyDocument::file_type.



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5323 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-10-25 17:24:47 +00:00
Nick Treleaven
a6ca20ebbc Use up/down icons for Previous/Next Error.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5210 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-09-09 11:19:27 +00:00
Frank Lanitz
6edf2111c2 Removed not needed NULL check
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5209 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-09-09 01:08:31 +00:00
Frank Lanitz
7313c3cbbf Fix a memory leak. Based on input by Daniel Marjamäki. Thanks for the catch.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5208 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-09-09 00:42:19 +00:00
Nick Treleaven
97ea7fa620 Make TODO item clearer: Use intermediate pointers for common subexpressions.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5202 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-08-26 12:05:50 +00:00