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
Enrico Tröger
e5de10ac67
Fix wrongly detected PHP files as HTML if they start with HTML code.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3297 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-11-29 18:35:44 +00:00
Enrico Tröger
3a8883a46d
Add Python to the list of filetypes with default global tags files.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3295 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-11-29 18:34:30 +00:00
Enrico Tröger
68ac190817
Handle "style-set" events to reset the tab close button icon size when necessary (another patch by Colomban Wendling, thanks).
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3294 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-11-29 17:04:42 +00:00
Enrico Tröger
2634044117
Add some default snippets for Python (patch by Colomban Wendling, thanks).
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3293 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-11-29 12:52:44 +00:00
Enrico Tröger
875f3016b8
Sort the keyword list and remove C++ keywords.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3292 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-11-29 12:52:26 +00:00
Enrico Tröger
74fd731f62
Another attempt to handle tab close button size properly (based on code from Colomban Wendling, thanks).
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3291 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-11-29 12:52:09 +00:00
Enrico Tröger
0f8b8a2f2f
Add new filetype 'YAML' (patch by Walery Studennikov, thanks).
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3290 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-11-29 12:51:50 +00:00
Enrico Tröger
13682cfd10
Add editor_get_calltip_text().
...
Add tooltips for the symbol list items.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3288 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-11-29 12:50:52 +00:00
Enrico Tröger
7589d8a4e5
Simplify the tooltips code for the Open Files treeview.
...
Change the dependency handling for GTK 2.12 for some features from compile time to run time.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3287 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-11-29 12:50:27 +00:00
Nick Treleaven
c9c5c5829e
Make hidden prefs use stash code.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3286 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-11-28 17:08:42 +00:00
Nick Treleaven
4bbdf80b14
Add foreach_c_array() macro in utils.h.
...
Add stash.[hc] for reading/writing GKeyFile settings and (later)
synchronizing widgets with C variables. Currently this only
supports boolean and integer settings.
Replace keyfile.c SettingEntry code with new stash code.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3285 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-11-28 12:52:19 +00:00
Nick Treleaven
a95ccfa4ec
Update tips for Alt/Ctrl + mouse wheel scrolling in the editor.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3282 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-11-26 16:43:14 +00:00
Nick Treleaven
492f78c769
Move configuration_read_filetype_extensions() to
...
filetypes_read_extensions().
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3281 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-11-26 16:09:48 +00:00
Nick Treleaven
899dce26b6
Add 'Tools->Configuration Files' menu with items to open
...
filetype_extensions.conf and ignore.tags. These files are also
reloaded automatically when saved.
- Code changes:
Make app->configdir a realpath().
Add ui_add_config_file_menu_item().
Add utils_build_path(), similar to g_build_path() but (re)using a
fixed buffer, so the result is never freed.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3279 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-11-26 13:15:53 +00:00
Nick Treleaven
d05dca5468
Make 'Reload Configuration' command also reload ignore.tags.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3278 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-11-25 12:09:08 +00:00
Nick Treleaven
f73a652e44
Fix nested namespaces not having parent namespace scope (fixes
...
#2141317 ).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3276 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-11-24 13:35:10 +00:00
Enrico Tröger
42ebf4e56e
Remember the 'Line breaking' state of documents between sessions.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3274 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-11-23 18:43:09 +00:00
Enrico Tröger
a23e534086
Update the Document menu when Line Breaking/Wrapping were toggled by a keybinding.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3273 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-11-23 16:24:16 +00:00
Enrico Tröger
6f64f53eeb
Add previously removed tab close icon sizing code for non-Windows systems.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3272 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-11-23 16:07:17 +00:00
Enrico Tröger
cb2a89ddd3
Fix wrong menu item labels in the symbol list popup menu.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3271 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-11-23 15:42:33 +00:00