2288 Commits

Author SHA1 Message Date
Nick Treleaven
35b3b5895a Make Shift+Mouse wheel scroll the editor view horizontally
(#2410732).
Add function sci_scroll_columns().



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3363 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-12-11 17:18:06 +00:00
Enrico Tröger
030f9c5c77 Move ui_auto_separator_add_ref() and related code back to ui_utils.c since it's no toolbar specific code (oops).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3362 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-12-11 16:56:28 +00:00
Enrico Tröger
5d97590d21 Fix plugin toolbar icon placement. Now they are always inserted before the Quit button if it is the last toolbar element or at the end otherwise.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3361 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-12-11 16:51:46 +00:00
Nick Treleaven
89fce6dd26 Add an interface pref for whether to hide additional widgets when
double-clicking on document notebook tabs (off by default).



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3359 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-12-11 16:29:54 +00:00
Nick Treleaven
a6992526e8 Add foreach_ptr_array() macro to utils.h.
Merge toggle button prefs code into keyfile.c Stash code.
Add toggle button support to Stash code.



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3356 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-12-11 12:49:26 +00:00
Enrico Tröger
428b93da88 Add new toolbar elements: Close All and Preferences.
The icon for Close All was kindly provided by Tyler Mulligan, thanks.
Remove GeanyStockItem and add ui_new_pixbuf_from_stock() as a replacement.

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3354 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-12-09 20:31:38 +00:00
Enrico Tröger
88707e86a2 Remove the list of available actions and instead refer to the documentation for an up to date list.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3353 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-12-09 20:30:23 +00:00
Enrico Tröger
7c5fd2c6ec Various improvements for parsing Vala files (mainly fix handling of function attributes, fix nested types handling, add some missing keywords, patch by Colomban Wendling, thanks).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3352 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-12-09 19:00:45 +00:00
Nick Treleaven
f0d4bcee11 Don't expand Prefs dialog Editor->Completions tab frames.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3351 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-12-09 13:35:16 +00:00
Nick Treleaven
5c5dfe9df5 Move Stash data types to stash.c, so Stash functions could be used
by plugins without breaking the ABI when appending fields. Also the
user code is neater and has type checking.



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3349 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-12-09 13:16:52 +00:00
Enrico Tröger
73aa9138da Move stock image name macro and image enum to ui_utils.h.
Remove old, unused images.

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3347 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-12-08 21:58:11 +00:00
Enrico Tröger
14a90d6079 Little reformatting.
Beautify the Waf output when generating geanyfunctions.h.

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3346 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-12-08 21:24:13 +00:00
Nick Treleaven
d204b0532e Fix GLib warning when user enters out of range line number in
toolbar.



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3344 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-12-08 17:05:15 +00:00
Nick Treleaven
9fb349fcd2 Fix showing tooltips for notebook tab labels (oops).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3343 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-12-08 12:59:13 +00:00
Enrico Tröger
cc04ba744b Update 'geanyfunctions.h' when using Waf.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3342 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-12-07 19:12:43 +00:00
Enrico Tröger
5394a14f4f When using the focus path entry and file list keyboard shortcuts, make sure the filebrowser tab is the current notebook tab in the sidebar (closes #2402290).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3341 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-12-07 19:12:27 +00:00
Enrico Tröger
7c6ff4d5bb Add Line number and Markers margin settings to the prefs dialog.
Add View->Editor submenu and group there the Line numbers, Markers margin, Show white space, Show line endings and Show indentation guides settings.

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3340 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-12-07 19:12:08 +00:00
Enrico Tröger
3c35ed1d55 Some cleanup in vte.c.
Add a setting for the VTE to enable/disable a blinking cursor.
This is useful for future VTE versions where the cursor blinks by default which might be not be desirable.

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3339 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-12-07 19:11:36 +00:00
Enrico Tröger
7f3de8507f Fix pressing escape in the sidebar and toolbar focus the editor.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3338 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-12-07 19:11:13 +00:00
Enrico Tröger
482b931785 Add 'ui_toolbar.xml' to EXTRA_DIST, include it in the Windows installer and install it also when using Waf.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3336 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-12-06 18:58:03 +00:00
Enrico Tröger
c87a31878e Make use of ui_widget_modify_font_from_string() at various places.
Set the message window font also for the scribble.

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3335 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-12-06 18:04:46 +00:00
Enrico Tröger
ae9e166786 Remove on_go_to_line1_activate() and directly use on_go_to_line_activate() instead.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3334 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-12-06 17:48:36 +00:00
Enrico Tröger
6d0ea6c38e Fix broken recent files menus.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3333 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-12-06 16:57:52 +00:00
Enrico Tröger
40f131fad0 Install toolbar.h.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3332 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-12-06 15:26:59 +00:00
Enrico Tröger
da3af0302f If the requested file in ui_add_config_file_menu_item() doesn't exist in the user's config directory, try reading it from the global data directory and use the contents for the new file.
Add a menu item to 'Tools->Configuration files' for the toolbar UI definition. 

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3331 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-12-06 12:28:21 +00:00
Enrico Tröger
b5c392d309 Add new stock icon GEANY_STOCK_SAVE_ALL.
Remove code to manually update the size of the 'Save All' toolbar icon and use the GEANY_STOCK_SAVE_ALL stock icon instead.

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3329 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-12-06 11:45:48 +00:00
Enrico Tröger
8ed9710f48 Rewrite of the whole toolbar code. Now it is based on GtkActions and all elements can be added/removed/reordered using a simple XML file.
Add GeanyMenubuttonAction and GeanyEntryAction as GtkAction subclasses to have menu buttons and text entries in the toolbar.
Change the Goto line toolbar item back to a plain text entry again.

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3328 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-12-06 11:10:06 +00:00
Enrico Tröger
2342390b2c A patch to Scintilla 1.77 containing our changes to Scintilla (these are mainly commentation character changes and the column mode editing patch).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3327 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-12-06 10:03:16 +00:00
Nick Treleaven
921f010ffc Rename msgwin_compiler_add -> msgwin_compiler_add_string.
Rename msgwin_msg_add -> msgwin_msg_add_string.
Rename msgwin_compiler_add_fmt -> msgwin_compiler_add.
Rename msgwin_msg_add_fmt -> msgwin_msg_add.
This fixes 2 geanyfunctions.h macros, and is more consistent with
msgwin_status_add().



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3326 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-12-05 17:30:06 +00:00
Nick Treleaven
bcfc76db9f Fix use of filetypes_array.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3324 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-12-05 16:41:23 +00:00
Nick Treleaven
b2f966dca9 Add GeanyFunctions::p_msgwin to fix the prefix for generated macros.
Deprecate GeanyFunctions::p_msgwindow.



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3323 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-12-05 16:29:32 +00:00
Nick Treleaven
7994128e38 Rename sci_cmd() to sci_send_command() to match the plugin API and
fix the generated macro name.



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3322 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-12-05 12:34:20 +00:00
Enrico Tröger
4ba92e0257 Don't mark labels of invisible menu items as translatable.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3320 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-12-04 20:28:40 +00:00
Enrico Tröger
ac72607ade Add auto-closing of braces, brackets and quotes (patch by Guillaume de Rorthais, thanks).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3319 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-12-04 20:19:20 +00:00
Nick Treleaven
553196a3d3 Make whitespace setting not override background colour by default,
otherwise e.g. unterminated strings in C can have inconsistent
background colour when Show Whitespace is enabled.



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3318 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-12-04 18:12:09 +00:00
Nick Treleaven
73d44c0a79 Update to use geanyfunctions.h.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3317 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-12-04 17:05:36 +00:00
Enrico Tröger
724ac63ac1 Add command line option to suppress status output.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3316 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-12-04 16:17:04 +00:00
Enrico Tröger
72d6493932 Don't mark console messages as translatable.
Add two comments for translators.

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3315 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-12-04 15:56:54 +00:00
Enrico Tröger
66d276003e Removed unused code.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3314 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-12-04 15:56:33 +00:00
Nick Treleaven
2d015b6fb2 Allow generating macros for functions with digits in the name.
Don't generate dummyprefix_scintilla_send_message and lookup_widget
macros.



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3312 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-12-04 13:55:11 +00:00
Nick Treleaven
5e85300f65 Deprecate pluginmacros.h in favour of geanyfunctions.h.
Move geany macro to plugindata.h.
Remove geanyfunctions.h dependency on pluginmacros.h.



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3311 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-12-04 13:26:48 +00:00
Nick Treleaven
5763dfbe2d Add document_index(), filetypes_index() array accessor functions to
the plugin API.



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3310 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-12-03 18:03:54 +00:00
Nick Treleaven
80b936037e Add scintilla_send_message() to the API with its own prefix, so
the geanyfunctions.h macro works.
Deprecate p_sci->send_message().
Add scintilla_new() to the plugin API.



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3309 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-12-03 13:36:45 +00:00
Nick Treleaven
b5ff19731e Move target for geanyfunctions.h to plugins/Makefile.am and depend
on src/plugins.c instead of all plugin API headers.



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3308 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-12-03 12:41:05 +00:00
Nick Treleaven
f813a6a7e4 Add ui_lookup_widget() to plugin API (so genapi.py has a suitable
prefix).
Mark SupportFuncs as deprecated.
Add description comment for geanyfunctions.h.



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3307 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-12-02 18:33:41 +00:00
Nick Treleaven
80a8939612 Add header guards for geanyfunctions.h and include pluginmacros.h
temporarily.
Update Demo plugin.



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3306 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-12-02 17:05:50 +00:00
Nick Treleaven
98e127d3bd Generate plugin API header geanyfunctions.h containing macros to
avoid having to type the function pointer names manually.
E.g. plugin_add_toolbar_item(...) is expanded to
p_plugin->add_toolbar_item(...).
Note: For now, building on Windows or with Waf needs genapi.py to be
run manually when adding plugin API functions.



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3305 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-12-02 16:34:32 +00:00
Nick Treleaven
02311a6d5d Read show_symbol_list_expanders hidden pref even when compiled
against GTK < 2.12.



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3303 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-12-01 15:01:54 +00:00
Nick Treleaven
78c3589336 Add G_TYPE_STRING setting support to Stash code, use in keyfile.c.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3302 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-12-01 14:54:47 +00:00
Nick Treleaven
3cf49dba55 Make VTE emulation pref hidden, because libvte only comes with an
xterm termcaps file and the GUI pref can be confusing.



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3300 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-12-01 14:39:26 +00:00