3292 Commits

Author SHA1 Message Date
Enrico Tröger
7ccd9dd46b Partly revert last commit:
Unref the new files toolbar menu when freeing templates as it was done before but unref it *after* the menu has been removed from the GeanyMenuButtonAction.

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4652 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-02-07 18:19:25 +00:00
Enrico Tröger
55f670b777 When reloading configuration, process the current document at last so the symbol list will be updated correctly.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4644 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-02-06 17:25:58 +00:00
Enrico Tröger
4dfab4f7ee Unref the new files toolbar menu when setting a new menu to fix possible crashes when reloading configuration.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4643 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-02-06 17:24:43 +00:00
Enrico Tröger
bb84ffb515 Adjust style for secondary keywords to be less aggressive.
Add Python 2.5 builtins keywords.

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4642 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-02-06 16:14:41 +00:00
Enrico Tröger
3bcaedd28f Allow saving remote files using g_file_set_contents() as well (patch by Алексей Антипов, thanks).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4641 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-02-06 16:00:11 +00:00
Enrico Tröger
3c85d86c9e Explicitly read filetype configuration files before generating global tags to get settings for custom filetypes.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4637 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-02-01 21:44:10 +00:00
Nick Treleaven
6e14e8a667 Fix GLib warning when toggling 'no plugins available' item.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4632 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-02-01 17:45:18 +00:00
Enrico Tröger
eabcdd579f Use utils_spawn_sync() instead of g_spawn_sync().
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4631 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-01-31 22:08:58 +00:00
Enrico Tröger
6d1b1425bd Make the script a bit more robust with newer Python versions.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4597 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-01-31 14:23:04 +00:00
Frank Lanitz
3cec880ae8 Close meta tag for export date properly.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4594 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-01-31 12:07:39 +00:00
Enrico Tröger
da6897dfc3 Update RPM Spec file (patch by Dominic Hopf, thanks).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4584 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-01-28 19:43:25 +00:00
Nick Treleaven
6ac1bcd3ff Fix renaming sci_send_message(), sci_send_command() function pointers.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4583 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-01-28 17:40:42 +00:00
Nick Treleaven
9021717031 Use full function name for GeanyFunctions function pointers. This
avoids naming conflicts e.g. with C++'s 'new' keyword.
Remove deprecated header pluginmacros.h - use geanyfunctions.h instead.



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4552 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-01-25 15:53:54 +00:00
Enrico Tröger
54d1b3ae7e Rename fold_symbol_click() to editor_toggle_fold().
Use editor_toggle_fold() when the 'Toggle current fold' keybinding was used to respect the 'Fold/unfold all children' preference (closes #2935053).

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4542 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-01-24 16:30:29 +00:00
Enrico Tröger
93c3028d3a Replace the old icons with smiley icons from the Rodent icon theme.
Fix showing the same icon for two or more slots.
Minor cleanups.

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4541 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-01-24 16:18:11 +00:00
Enrico Tröger
d461084743 Add new special template wildcard "{command:...}" to use the output of a command in templates.
Adjust template functions to mostly work with GeanyDocuments.
Minor cleanups in the template code.

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4539 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-01-24 14:52:46 +00:00
Enrico Tröger
fa49065678 Add utils_copy_environment() and make use of it.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4538 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-01-24 14:18:00 +00:00
Nick Treleaven
56eb9267bb Fix GLib warning & beep if trying to insert multiline comment for a
filetype that doesn't support it.



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4537 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-01-22 16:41:04 +00:00
Nick Treleaven
686b375954 Prevent possible segfault in get_build_group().
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4536 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-01-22 16:23:12 +00:00
Nick Treleaven
cfa2b8b532 Show 'Replaced X matches in Y documents' message when using Replace in
Session.



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4533 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-01-18 17:05:13 +00:00
Nick Treleaven
920f5a55b8 Add gcc commands to build a plugin to the HowTo.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4531 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-01-18 16:55:49 +00:00
Enrico Tröger
b0510e97f7 Remove po/LINGUAS from the repository.
Generate it automatically if needed by reading available message catalogs from the po directory.
Also respect the LINGUAS environment variable properly.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4529 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-01-17 18:37:34 +00:00
Enrico Tröger
cc19e09d83 Add new signal: "geany-startup-complete" which is sent once all initialization and startup tasks has been done.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4527 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-01-17 15:17:30 +00:00
Enrico Tröger
9f8d16340f Add a little test program which can load and test Geany plugins to verify it is loadable at runtime and all necessary symbols are defined.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4526 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-01-17 14:52:28 +00:00
Frank Lanitz
aecf1d05d3 Remove automatic environment closing functions for LaTeX. Will be done by geanyLaTeX plugin in future
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4524 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-01-16 19:39:23 +00:00
Enrico Tröger
6165ef9203 Refactor templates_replace_all() into templates_replace_valist() to save some code duplication.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4522 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-01-12 21:10:46 +00:00
Frank Lanitz
383841ce01 Add editor_insert_text_block() to plugin API
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4521 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-01-12 18:44:38 +00:00
Enrico Tröger
de50230c68 Add keybinding to open the last closed tab (closes #2912692).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4519 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-01-01 23:20:21 +00:00
Enrico Tröger
7ba4a81181 Update copyright information.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4518 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-01-01 22:55:18 +00:00
Enrico Tröger
1090159b54 Add a checkbox in the preferences dialog to explicitly toggle the visibility of the sidebar (closes #2923340).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4517 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-12-31 15:48:39 +00:00
Enrico Tröger
4021505786 Add sci_find_text() to the plugin API.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4516 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-12-31 15:47:56 +00:00
Enrico Tröger
c07d448d30 Rename configure.in to configure.ac.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4515 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-12-31 15:47:25 +00:00
Enrico Tröger
d0cc72132d Remember the window position of the Find, Replace and Find in Files dialogs (closes #2877988).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4514 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-12-29 18:45:49 +00:00
Enrico Tröger
9f9ceb1953 Add new style to change foreground and background colours for calltips (patch by Dimitar Zhekov, thanks, closes #2919229).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4513 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-12-29 18:45:21 +00:00
Enrico Tröger
ce22ffc61e Show the Find/Goto dialogs if the corresponding toolbar buttons are clicked but their text fields are not part of the toolbar (#2920807).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4512 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-12-29 18:40:55 +00:00
Enrico Tröger
6505997e2d Add the default comment character sequence for reStructuredText.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4511 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-12-29 18:40:39 +00:00
Enrico Tröger
0745fa1144 Rewrite and extend the Python tags parsing script to use Python's inspect module to read symbols from Python modules including scope information.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4510 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-12-29 18:37:47 +00:00
Enrico Tröger
87a2c53dc7 Fix sensitivity of the Edit->Plugin Preferences menu item if plugins are loaded which do not provide a configuration dialog.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4509 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-12-29 18:35:30 +00:00
Enrico Tröger
09afb37dad Add editor_get_eol_char_name(), editor_get_eol_char_len() and editor_get_eol_char() to the plugin API.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4508 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-12-29 18:23:54 +00:00
Frank Lanitz
3aead1e225 Fix a minor typo inside plugin API reference.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4507 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-12-26 14:13:35 +00:00
Enrico Tröger
ba94d0ce6f Rename win32_show_file_dialog() to win32_show_document_open_dialog() as it is specialised for opening documents.
Implement win32_show_file_dialog() as a generic file open dialog and use it with ui_path_box_new().


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4505 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-12-20 21:49:23 +00:00
Enrico Tröger
b7b4de41f4 Rename win32_show_project_folder_dialog() to win32_show_folder_dialog() as it is not related and not used by any project management related code.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4504 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-12-20 21:03:28 +00:00
Enrico Tröger
baccf0391e Set the correct parent window for the toolbar editor dialog (closes #2913334).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4503 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-12-20 20:49:28 +00:00
Frank Lanitz
c0a243c43d Remove LaTeX tags from SVN. Can be found at http://download.geany.org/contrib/tags/ if needed.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4502 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-12-20 20:46:29 +00:00
Enrico Tröger
554ccd4f60 Mark the document only as changed if it is not closed afterwards.
Prevent possible segfaults if the document was closed when it is missing from the filesystem.

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4501 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-12-20 20:29:45 +00:00
Enrico Tröger
6fdf1cdfb2 Add preferences for hiding single tabs from the messages window (no GUI preferences yet, still to be implemented).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4500 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-12-20 20:07:52 +00:00
Enrico Tröger
93f66de4e2 Add MessageWindow::scribble and use it instead of searching the widget pointer everytime.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4499 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-12-20 20:07:04 +00:00
Enrico Tröger
16f67dc702 When closing a document after it was deleted from the filesystem, don't ask whether it should be saved first.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4498 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-12-20 15:50:53 +00:00
Enrico Tröger
366ebbe90f Fix LaTeX environment auto completion with CR/LF line endings.
Add some sanity checks.

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4496 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-12-20 15:38:14 +00:00
Enrico Tröger
0be8ea8b8c Make dialogs_show_prompt() more flexible to take up to three button/response code pairs to be shown.
Add a close button to the dialog when asking to Re-Save a deleted file (closes #2916954, based on a patch by Dominik Stadler, thanks).

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4495 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-12-20 15:37:40 +00:00