Nick Treleaven
81715a4c7e
Remove commented out old code.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2818 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-07-25 11:28:30 +00:00
Nick Treleaven
edda704326
Revert editor popup menu Current Word submenu changes. See
...
http://lists.uvena.de/geany-devel/2008-July/000101.html .
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2817 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-07-25 11:23:52 +00:00
Enrico Tröger
5a9f1500b9
Fix wrong checks when determining whether a style is a PHP style (style SCE_HPHP_COMPLEX_VARIABLE was ignored, closes #2027235 ).
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2816 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-07-25 09:51:08 +00:00
Enrico Tröger
5cc91efe47
Update waf to its latest SVN rev and exclude some unused modules which makes it another 20 KB smaller.
...
Update waf script to reflect waf API changes(module Install removed).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2815 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-07-25 09:49:54 +00:00
Enrico Tröger
56de0f6641
Add missing "error" and heredoc styles to filetype Shellscript (related to #2026853 ).
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2814 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-07-25 09:48:55 +00:00
Nick Treleaven
d35e66493c
Change VTE restart command to not call vte_terminal_fork_command() -
...
this should prevent the hang reported in #1990323 with VTE 0.16.14.
Note that with VTE 0.16.14 the reset sometimes leaves a blank
terminal, but pressing enter makes it then behave as normal.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2813 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-07-24 17:26:11 +00:00
Nick Treleaven
82399858ee
Add more dox explaining how to use documents_array (moved from
...
document.h, to minimise rebuilding after adding dox).
Remove some mentions of document indexes in document.c comments.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2812 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-07-24 15:17:55 +00:00
Nick Treleaven
553e5c63d9
Add dox for GeanyApp, GeanyProject.
...
Move GeanyProject typedef to project.h, as it is rarely used without
including project.h.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2811 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-07-24 14:37:36 +00:00
Nick Treleaven
1580203f8a
Rename document_new_file() argument to utf8_filename.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2810 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-07-24 12:12:47 +00:00
Nick Treleaven
f180f2f9fd
Add dox for all UIUtilsFuncs.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2809 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-07-24 12:01:30 +00:00
Nick Treleaven
d34ff4285d
Rename p_filetypes->detect_from_filename() to detect_from_file() in
...
the plugin API.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2808 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-07-24 11:23:12 +00:00
Nick Treleaven
4de845a2c6
Only compile filetypes_detect_from_file() if HAVE_PLUGINS is defined.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2807 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-07-24 11:20:48 +00:00
Nick Treleaven
fd10df646f
Add dox for GeanyMainWidgets.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2806 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-07-23 14:52:19 +00:00
Nick Treleaven
5f18cee90f
Add dox for FiletypeFuncs and some of GeanyFiletype.
...
Rename filetypes_detect_from_file() to
filetypes_detect_from_document().
Rename filetypes_detect_from_filename() to
filetypes_detect_from_file() because it also detects shebang lines.
Remove function prototype comments for filetypes.h (see filetypes.c
or API dox instead).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2805 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-07-23 14:44:27 +00:00
Nick Treleaven
185b56c030
Add doxygen file header for generating MainFuncs API documentation.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2804 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-07-23 13:48:13 +00:00
Nick Treleaven
4faeb8f46f
Move utils_reload_configuration() to main.c.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2803 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-07-23 11:46:02 +00:00
Enrico Tröger
5c2e1a1a4d
Fix space-only indentation when auto-generating HTML tables (patch by Colomban Wendling, thanks, closes #2023160 ).
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2800 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-07-22 13:42:23 +00:00
Enrico Tröger
2c9c9b1998
Backport latest HTML/PHP lexer fixes from Scintilla CVS ( #2024387 ).
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2799 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-07-22 13:06:11 +00:00
Nick Treleaven
8a30de5c67
Rename above pref 'Open new documents...'.
...
Group encodings prefs together in the Files tab.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2798 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-07-21 17:25:18 +00:00
Nick Treleaven
d0a473bf6b
Fix compilation with -ansi.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2797 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-07-21 14:39:47 +00:00
Nick Treleaven
c5fb6b34bc
Add new Files pref 'Allow new documents from the command-line'.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2796 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-07-21 14:28:46 +00:00
Nick Treleaven
7939b900ae
Fix filename encoding for new files at startup from the command-line.
...
Make socket open command support filename:line:column syntax.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2795 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-07-21 14:12:15 +00:00
Enrico Tröger
8f38a69121
Move code to reload configuration files into utils_reload_configuration() and add it to the plugin API.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2794 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-07-20 18:07:53 +00:00
Enrico Tröger
d0ec5f6134
Add menu item accelerators first after default and user keybindings have been read to avoid that menu item accelerators of user keybindings can't be overridden anymore ( closes #2021703 ).
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2793 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-07-20 17:12:34 +00:00
Enrico Tröger
bdc4e37cc8
Handle tooltip requests for items in the open files tree view properly by using gtk_tree_view_get_tooltip_context().
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2792 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-07-18 15:05:56 +00:00
Nick Treleaven
9b8d1f5bdb
Add tab width vs. indent width item.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2791 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-07-18 14:15:52 +00:00
Enrico Tröger
617cdee77c
Encourage single header includes as it is necessary with GTK 2.14+.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2790 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-07-18 13:56:56 +00:00
Enrico Tröger
4f54b68b8e
Remove unnecessary finalize(() function.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2789 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-07-18 13:45:23 +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
9469f020c8
Move editor popup menu current word items to submenu.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2787 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-07-17 17:17:51 +00:00
Nick Treleaven
3d24008b34
Add Find Document Usage popup menu command & keybinding.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2786 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-07-17 16:42:03 +00:00
Nick Treleaven
a569c69e33
Move widget array lookups from main.c to ui_utils.c.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2785 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-07-17 16:28:16 +00:00
Enrico Tröger
3c3edd3e03
Fix compiler warning because of missing cast, oops.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2784 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-07-15 18:51:19 +00:00
Enrico Tröger
ff43ad1fa7
Enforce focus grabbing when creating new documents ( closes #2018427 ).
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2783 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-07-15 18:46:17 +00:00
Enrico Tröger
72da6f3c55
Add missing keywords: 'elemental', 'pure' and 'procedure' which also fix broken folding (patch by Henrik Holst, thanks).
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2782 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-07-15 18:36:37 +00:00
Nick Treleaven
71d5e59566
Prevent warning when trying to load an active plugin at startup that
...
doesn't exist on disk any more.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2781 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-07-15 17:16:28 +00:00
Nick Treleaven
43484b8a51
Show '..' item when the current folder is empty ( fixes #2015121 ).
...
Replace is_top_level_directory() code by checking g_path_skip_root().
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2780 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-07-15 14:50:06 +00:00
Nick Treleaven
000e8fcc9b
Merge the editor-struct branch:
...
Note: this breaks the plugin API for editor-related document fields
and functions.
Split new GeanyEditor struct type from GeanyDocument fields sci,
line_wrapping, auto_indent, scroll_percent, use_tabs, line_breaking.
GeanyEditor::document allows access back to document fields.
Add GeanyDocument::editor field; this is only valid when the
document is valid, and NULL otherwise. This means any checks for
doc->editor->scintilla != NULL will segfault for invalid
documents - check against doc->is_valid or doc->editor != NULL
instead.
Change plugin API EditorFuncs to use GeanyEditor pointers.
Make editor_set_font() take a pango-style font string, and use a
GeanyEditor pointer.
Use GeanyEditor* instead of GeanyDocument* in editor.c (most global
editor functions still need conversion though, but this may be done
gradually or as required).
Move utils_get_current_function() to symbols.c.
Move utils_replace_filename() to document.c.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2779 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-07-15 14:29:41 +00:00
Frank Lanitz
bf620116f2
Update of German translation
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2778 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-07-14 23:43:21 +00:00
Enrico Tröger
ed016dc093
Split filetype Fortran into Fortran 77 and Fortran 90.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2777 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-07-14 18:27:20 +00:00
Nick Treleaven
7db4bfe493
Rename GeanyEditor::scintilla to GeanyEditor::sci.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/branches/editor-struct@2776 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-07-14 11:13:54 +00:00
Enrico Tröger
ccd2186f6a
Add preferences for year, date and datetime format of the corresponding template wildcards to make them more flexible.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2775 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-07-13 11:51:00 +00:00
Enrico Tröger
bb95dfdece
Use templates_replace_all() also for snippet completion.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2774 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-07-13 10:56:21 +00:00
Enrico Tröger
d3adc32c19
Add support to use template wildcards in snippets.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2773 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-07-13 10:52:38 +00:00
Enrico Tröger
4ef9af9c6f
Fix some formatting issues.
...
Add 'static' keyword to generated finalize() function in GTK classes.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2772 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-07-12 11:46:59 +00:00
Nick Treleaven
82d63e09b0
Make editor_set_font() take a pango-style font string, and use a
...
GeanyEditor pointer.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/branches/editor-struct@2771 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-07-11 17:09:01 +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
ad6b64647d
Fix segfault in update_type_keywords().
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/branches/editor-struct@2769 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-07-11 14:25:26 +00:00
Nick Treleaven
0ae04ea2f9
Create the doc->editor field in editor_create(). This means any
...
checks for doc->editor->scintilla != NULL will segfault for invalid
documents - check against doc->is_valid or doc->editor != NULL
instead.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/branches/editor-struct@2768 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-07-11 14:11:53 +00:00
Nick Treleaven
e204cc44fb
Remove deprecated struct field macros (this fixes building Geany
...
when GEANY_DISABLE_DEPRECATED is not set, fixes #2014586 ).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2767 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-07-10 14:12:09 +00:00