4310 Commits

Author SHA1 Message Date
Nick Treleaven
cc984f9d7c Take multiple files if -w argument is supplied.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4172 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-09-10 16:11:13 +00:00
Frank Lanitz
44f3f11068 Change language string for Slovenian translation
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4171 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-09-07 18:33:31 +00:00
Frank Lanitz
19e9745153 Update of Swedish translation
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4170 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-09-07 18:32:13 +00:00
Nick Treleaven
07778efda8 Fix Gtk warning when trying to update documents popup menu item
sensitivity before they exist.



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4169 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-09-07 15:42:21 +00:00
Nick Treleaven
a34ffb0ccc Space commas.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4168 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-09-07 15:31:46 +00:00
Nick Treleaven
874fd449fa Fix parsing #defines.
Ignore & operator like *,- as they could be unary and so are too hard to match correctly.
Space +,> and conditional ternary operator correctly.
Fix parsing lines starting with an indent and closing bracket.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4167 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-09-07 15:13:50 +00:00
Nick Treleaven
e314175fde Fix wrong replacement of tabs in some alignments.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4166 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-09-07 14:37:30 +00:00
Nick Treleaven
3eae7e813a Minor edit of plugin manager string ;-)
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4165 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-09-07 12:10:57 +00:00
Nick Treleaven
a7e5fb3332 Fix multi-byte character constant comparison.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4164 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-09-07 11:50:06 +00:00
Enrico Tröger
6a73751aba Add new filetype: Txt2Tags (patch by Eric Forgeot, thanks).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4163 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-09-06 20:57:42 +00:00
Enrico Tröger
316f77f1f8 Add new plugin signal: "document-before-save".
Add get_line_end_position(), set_target_start(), set_target_end(), replace_target() to the plugin API (patch by Eugene Arshinov, thanks).
Add new plugin signal: "document-filetype-set" (closes #2852286).

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4162 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-09-06 16:51:11 +00:00
Enrico Tröger
81c56818ac Remove the FOREACH_GEANYBUILDCMD_ENTRY() macro.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4161 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-09-06 16:50:47 +00:00
Enrico Tröger
245ebd1234 Use NZV() macro instead of strlen() to check for empty strings.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4160 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-09-06 16:50:34 +00:00
Enrico Tröger
210fa0018a Adjust coding style (no code changes).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4159 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-09-06 16:50:20 +00:00
Enrico Tröger
2c7c2b91fc Fix crash when opening documents.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4158 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-09-06 16:50:04 +00:00
Enrico Tröger
7290200bfa Fix a compiler warning.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4157 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-09-06 16:49:51 +00:00
Enrico Tröger
dfe641a774 Remove trailing spaces (patch by André Hentschel, thanks).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4156 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-09-06 16:49:38 +00:00
Enrico Tröger
65b319ff6b Use "max-width" to set the document width of the generated HTML documentation to let the text be auto-wrapped.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4155 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-09-06 16:49:22 +00:00
Enrico Tröger
b0cd7b918b Improve the opening string in the plugin manager dialog.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4154 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-09-06 16:49:09 +00:00
Nick Treleaven
2f727daf20 Add/expand some comment info.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4153 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-09-04 16:07:23 +00:00
Nick Treleaven
aa1cee4b25 Add script to reformat C source code to Geany's style - work in progress.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4152 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-09-04 16:00:15 +00:00
Nick Treleaven
ccb873dafa Apply patch from Thomas Martitz to improve sidebar type-ahead code:
Use gtk_notebook_set_current_page() instead of
document_open_file_full() when choosing an item from the documents
list.
Avoid using goto in document_open_file_full().



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4151 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-09-04 11:34:12 +00:00
Nick Treleaven
fcb805a6ec Minor edits: list FSF, use $0 for scriptname.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4150 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-09-04 11:21:29 +00:00
Nick Treleaven
388891afbf Fix 2 free's of possibly uninitialized pointers.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4149 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-09-03 12:14:58 +00:00
Nick Treleaven
a4eec38feb Enable type-ahead find for sidebar symbols and documents tabs
(patch by Thomas Martitz, thanks).



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4148 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-09-03 12:04:27 +00:00
Lex Trotman
a1ca1ed099 Ensure uses of filename are protected against nulls when running
a build command and give status message if not.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4147 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-09-03 04:32:05 +00:00
Lex Trotman
8af51d54f5 Only write filetype config files when build command or regex is
actually changed.  Removed commented code in src/filetypes.c.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4146 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-09-03 03:40:21 +00:00
Nick Treleaven
0e94d03bf7 Remove plugin from plugin manager dialog on unloading if it no
longer exists or is incompatible.



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4145 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-09-01 17:20:34 +00:00
Frank Lanitz
11ebc97084 Update of Slovenian translation
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4144 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-09-01 08:26:00 +00:00
Nick Treleaven
20c42f845a Merge custom-filetypes branch:
Support adding custom filetype files e.g. filetypes.Foo.conf.
- Code:
Allow GeanyFiletype::extension to be NULL.
Add note about using GeanyFiletype pointer instead of filetype_id
for filetypes.c function arguments.
Replace styleset_none() with styleset_default().



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4143 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-08-31 16:11:46 +00:00
Nick Treleaven
89a708bd11 Merge trunk changes.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/branches/custom-filetypes@4142 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-08-31 15:46:19 +00:00
Nick Treleaven
d584365470 Add warning if only one of the plugin_key_group[_info] symbols is
defined for a plugin.



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4141 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-08-31 15:25:35 +00:00
Enrico Tröger
6e90f40a2d Show the sidebar if either the documents or the symbols list are enabled (related to #1876107).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4140 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-08-30 12:09:54 +00:00
Enrico Tröger
f114ba9900 Fix removing leading double slashes in filenames which are used for network resources on Windows (closes #2844085).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4139 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-08-29 19:06:19 +00:00
Enrico Tröger
55b68b76fa Fix compiler warnings.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4138 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-08-29 18:44:14 +00:00
Nick Treleaven
6bd8f44454 Remove --generate-data-files argument & code - just edit
filetype_extensions.conf by hand (filetype order was broken
anyway).
Add *.H extension for C++ (useful for non-Windows systems).



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4137 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-08-27 16:31:53 +00:00
Nick Treleaven
f195153a20 Mention Files link at top for header files; demoplugin.c.
Minor edits; remove 'far from being complete'.



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4136 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-08-27 16:13:20 +00:00
Nick Treleaven
5bda02fd5e Define G_GNUC_WARN_UNUSED_RESULT if GLib < 2.10.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4135 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-08-27 14:02:56 +00:00
Nick Treleaven
b0c53b1dc6 Fix Make keybindings (patch by Lex Trotman, thanks).
Fix recent ChangeLog entries.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4134 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-08-27 13:50:12 +00:00
Lex Trotman
6c36e98cdf Change fix to usage of project base dir
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4133 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-08-27 03:49:19 +00:00
Lex Trotman
898201f0bb Fix usage of project base dir
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4132 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-08-27 02:07:44 +00:00
Lex Trotman
2fe9afdf47 Fix compile accelerator & load old project file
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4131 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-08-27 01:08:30 +00:00
Nick Treleaven
931f14d2ae Use build_ prefix for 3 functions in build.h; add a static modifier.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4130 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-08-26 17:25:28 +00:00
Nick Treleaven
50471cf5f4 Fix invalid memory read (#2844632, patch by Lex Trotman, thanks).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4129 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-08-26 15:32:17 +00:00
Nick Treleaven
1ec744da6c Use GEANY_PRIVATE to hide some fields from plugins.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4128 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-08-26 14:56:05 +00:00
Nick Treleaven
2955303eef Add section 'Plugin API/ABI design'.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4127 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-08-26 14:46:45 +00:00
Nick Treleaven
5a6ee46699 Add warning about not using undocumented features.
Add reference to HACKING for plugin API development.



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4126 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-08-26 14:42:25 +00:00
Enrico Tröger
43cd2946f4 Don't parse comments after import statements and other tags (closes #2838938, patch by Huandari Lopez, thanks).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4125 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-08-25 21:33:04 +00:00
Enrico Tröger
09b0b033ff Improve parsing of PHP functions by requiring a valid modifier or whitespace before the 'function' keyword to ignore some false positives like function tags inside comments (patch by Harold Aling, thanks).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4124 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-08-25 21:23:14 +00:00
Nick Treleaven
43620e7ce4 Remove GeanyKeyGroup struct from the API - plugins should not set
these fields.
Make keybindings_set_item() duplicate the name and label fields
(needed by GeanyLua) and return a keybinding pointer.
Add keybindings_get_item() to the API (in case it's useful).
Move some keybinding code out of plugin source files.



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4123 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-08-25 16:55:56 +00:00