Enrico Tröger
a600f6bb7f
Put geany.exe into a 'bin' subdirectory as well as the included
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2890 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-08-17 14:19:34 +00:00
Nick Treleaven
57ff84b183
Make Ctrl-click on a word perform Go to Tag Definition (this
...
shouldn't conflict with column editing as this uses
Ctrl-Shift-click).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2889 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-08-14 16:39:51 +00:00
Nick Treleaven
16d8dad107
Rename api_version GEANY_API_VERSION.
...
Rename abi_version GEANY_ABI_VERSION.
Use enums for each of these so they can be used to initialize a
global variable, and add dox.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2888 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-08-14 15:50:40 +00:00
Nick Treleaven
a25c8ec38b
Don't look up "scroll_arrow_hlength" and "scroll_arrow_vlength"
...
GtkWidget properties on GTK < 2.10.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2887 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-08-14 15:48:11 +00:00
Enrico Tröger
b185501584
Don't force debug mode when compiling with GEANY_DEBUG (this affects only the messages on stdout and stderr). Messages are logged always in the debug window.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2886 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-08-13 18:44:09 +00:00
Enrico Tröger
f73f4fd870
Fix logging of messages in the debug window on Windows.
...
When '--debug' option is given on Windows, set the G_SPAWN_WIN32_DEBUG flag for more debug info for spawned processes.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2885 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-08-13 18:42:11 +00:00
Enrico Tröger
e78b6a9b68
Replace fprintf() with g_critical().
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2884 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-08-13 18:40:34 +00:00
Enrico Tröger
3a8a600790
Expect GTK 2.10 libs to link against by default and remove GTK210 flag. If anyone wants to build on Windows against GTK 2.6 or 2.8 use 'make GTK280=1'.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2883 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-08-13 18:38:40 +00:00
Enrico Tröger
af7e8526c8
Add middle-click document closing to the Tips and Tricks appendix.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2882 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-08-13 18:36:56 +00:00
Nick Treleaven
45b65ee7fd
Regenerate geany.html (oops).
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2881 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-08-13 16:50:09 +00:00
Nick Treleaven
7b1c98cf68
Add Tips and Tricks appendix.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2880 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-08-13 16:35:49 +00:00
Enrico Tröger
05d05dc7cc
Add log.c to the list of translatable files.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2879 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-08-11 18:25:25 +00:00
Enrico Tröger
de7019ba6b
Remove trailing spaces.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2878 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-08-11 18:20:19 +00:00
Enrico Tröger
53ddbf0bbf
Fix bad wording ( closes #2038807 ).
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2877 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-08-11 18:18:33 +00:00
Enrico Tröger
459ba625ed
Move geany_debug() into log.c.
...
Use GLib log/print handlers to log messages/warnings into a string for later usage.
Add a debug messages window, accessible through the help menu to easily view debug messages/warnings.
This might replace the extra console window on Windows.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2876 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-08-11 18:16:35 +00:00
Nick Treleaven
6c6934d839
Change 'Tab width' label to 'Hard tab width' for clarity.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2875 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-08-11 16:57:40 +00:00
Nick Treleaven
530761a6fb
Rename GeanyIndentPrefs::tab_width to hard_tab_width, and update
...
keyfile key name.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2874 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-08-11 16:53:03 +00:00
Nick Treleaven
c0ee8ae6e6
Fix using correct hard tab width for HTML export, not just LaTeX.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2873 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-08-11 16:44:19 +00:00
Nick Treleaven
ca9fbbc777
Break is_comment() into comment and string detection, each called in
...
is_code_style().
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2872 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-08-11 16:31:36 +00:00
Nick Treleaven
2c883b720d
Fix auto-multiline comment completion for CSS.
...
Fix doc-comment keyword styles confusing auto-multiline comment
completion.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2871 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-08-11 16:14:39 +00:00
Nick Treleaven
29b778fb0a
Add SCE_[CD]_COMMENTDOCKEYWORD(ERROR) comment detection to
...
is_comment().
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2870 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-08-11 12:02:59 +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
Nick Treleaven
22dfc32135
Don't set plugin keybinding accels for menu items in
...
keybindings_set_item(), so user keycombos can override them.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2868 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-08-08 15:15:50 +00:00
Nick Treleaven
b74eb47577
Add sci_get_tab_width() to the API, and use it to get the correct
...
display tab width in the Export plugin.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2866 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-08-08 14:46:31 +00:00
Nick Treleaven
664a1d77f0
Fix using correct display tab width when the Tabs & Spaces indent
...
type is set.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2865 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-08-08 14:33:23 +00:00
Enrico Tröger
19247c47b8
Fix compilation with GTK >= 2.10.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2864 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-08-08 07:47:06 +00:00
Nick Treleaven
309b853b57
Merge changes from the custom-tab-width branch ( closes #1662173 ).
...
Thanks to Joerg Desch for explaining how it needs to work.
Note: this breaks the plugin API for indentation editor_prefs.
Add separate Width indent pref (as well as the Tab Width pref).
Add 'Tabs & Spaces' Indent Type radio option pref.
Add 'Tabs and Spaces' Document menu indent option.
Note: Tabs & Spaces cannot be detected (yet) when opening files;
default file templates still only use tabs.
Set 'Detect from file' indent type setting insensitive when Tabs &
Spaces is set.
Don't change per-document auto-indent setting after changing default
auto-indentation type.
- API changes:
Add GeanyIndentPrefs struct from some GeanyEditorPrefs fields.
Replace GeanyIndentPrefs::use_tabs with GeanyIndentType field 'type'.
Add editor_get_indent_prefs() to the API, which should be used to
get the right settings for a document/editor instead of reading
any struct fields. This could also support project/filetype
indentation prefs quite easily.
- Core code changes:
Move toggle_prefs to a function toggle_items_foreach(), which takes
a PREF_DISPLAY or PREF_UPDATE argument. This means the PrefEntry
array can contain runtime fields, so can read pointer contents.
Add pref_item_callbacks array of functions to call;
toggle_items_foreach(), spin_items_foreach(), radio_items_foreach(),
combo_items_foreach().
Update keyfile.c to use foreach-style functions for SettingEntry
arrays, like the new PrefEntry code in prefs.c.
Add get_indent_size_after_line() to replace get_indent() for
clarity, and to fix Tabs & Spaces auto-indentation > basic.
Remove opening-brace indent code from get_indent() as it's now in
get_brace_indent().
Change editor_close_block() to use sci_get_line_indentation() for
clarity.
Make editor_close_block() static.
Add editor_init().
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2863 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-08-07 16:36:06 +00:00
Nick Treleaven
ec1e9de8dc
Fix using editor_get_indent_prefs().
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/branches/custom-tab-width@2862 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-08-07 15:32:56 +00:00
Nick Treleaven
a6eac00cc1
Add editor_get_indent_prefs() to the API.
...
Make editor_get_indent_prefs() return default prefs if editor is
NULL.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/branches/custom-tab-width@2861 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-08-07 15:30:52 +00:00
Nick Treleaven
2bc72a08c3
Remove opening-brace indent code from get_indent() as it's now in
...
get_brace_indent().
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/branches/custom-tab-width@2860 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-08-07 12:03:56 +00:00
Nick Treleaven
51badbd829
Set 'Detect from file' indent type setting insensitive when Tabs &
...
Spaces is set.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/branches/custom-tab-width@2859 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-08-07 11:49:06 +00:00
Nick Treleaven
6140e5089d
Add get_indent_size_after_line() to replace get_indent() for
...
clarity, and to fix Tabs & Spaces auto-indentation > basic.
Change editor_close_block() to use sci_get_line_indentation() for
clarity.
Make editor_close_block() static.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/branches/custom-tab-width@2857 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-08-05 14:46:27 +00:00
Enrico Tröger
b25c2d6248
Fix wrong parsing of keywords if they are not followed by a space ( closes #2037728 ).
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2856 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-08-05 08:54:02 +00:00
Enrico Tröger
b96999dec9
Revert the recent VTE realisation changes as they don't make things better.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2855 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-08-05 08:52:59 +00:00
Nick Treleaven
9cfcf0602b
Implemented 'distinguish between tab width vs. indent width'.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/branches/custom-tab-width@2854 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-08-04 14:10:16 +00:00
Nick Treleaven
d3fbdf278b
Fix build; currently auto-indentation doesn't support inserting tabs
...
and spaces, only spaces. Also Tabs & Spaces cannot be detected yet
when opening files. Default file templates still only use tabs.
Add editor_get_indent_prefs() which should be used to get the right
settings for a document/editor instead of reading any default prefs.
This could also support project/filetype indentation prefs quite
easily.
Don't change per-document auto-indent setting after changing default
auto-indentation type.
Remove ui_radio_menu_item_*(), not good to use as they depended on
the order of widget creation, so don't work well with Glade. Use
RadioPrefEntry array instead.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/branches/custom-tab-width@2853 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-08-04 14:07:49 +00:00
Enrico Tröger
080c93b8c0
Ignore the scroll arrows when checking for a double click in the notebook tab bar ( closes #2033059 ).
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2852 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-08-04 08:53:21 +00:00
Enrico Tröger
d505996b18
Realize the VTE widget manually (still for #1844985 ).
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2851 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-08-04 08:52:06 +00:00
Enrico Tröger
ee3db9554a
Add some keywords for filetype SQL (patch by Felipe Pena, thanks).
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2850 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-08-01 15:56:37 +00:00
Enrico Tröger
58f349944e
Initialise the VTE pid var with 0 just for safety.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2849 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-08-01 15:55:20 +00:00
Enrico Tröger
bbfd7a1ee8
Revert r2843 because it messed it Ctrl-C/SIGINT in the VTE.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2848 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-08-01 15:54:21 +00:00
Enrico Tröger
d71d520be6
Add missing pack flag.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2847 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-08-01 15:53:12 +00:00
Enrico Tröger
7cd303af3f
Add four new PHP 5.3 keywords (patch by Felipe Pena, thanks).
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2846 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-08-01 15:52:42 +00:00
Enrico Tröger
47aa40ebc5
Add a list of contributors to the About dialog.
...
Update the THANKS file.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2845 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-08-01 15:51:30 +00:00
Nick Treleaven
1d55dae69f
Add 'Tabs and Spaces' Document menu indent option.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/branches/custom-tab-width@2844 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-07-31 14:47:03 +00:00
Enrico Tröger
c98c4d099a
Make Copy & Paste clipboard keybindings also work for the VTE ( closes #2029675 ).
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2843 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-07-30 18:22:51 +00:00
Enrico Tröger
df6115215e
Fix freeze when changing terminal preferences (introduced in last commit).
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2842 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-07-30 18:21:34 +00:00
Enrico Tröger
f5d72e6c8c
Start the shell in the VTE first when the VTE is actually realized to avoid strange display bugs on some systems ( closes #1844985 ).
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2841 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-07-30 18:20:58 +00:00
Enrico Tröger
4936861c6a
Oops, compile fix.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2840 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-07-30 18:19:57 +00:00
Enrico Tröger
961b040d8e
Fix signature of focus_sci().
...
Double clicking on free space in the tab bar opens a new file (#2003291 ).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2839 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-07-30 18:19:19 +00:00