Jiří Techet
1a36eeaf4d
Use consistent shadows across Geany
...
In principle, any scrolled window should have GTK_SHADOW_IN so the scrollbars
are not above the surface and there is a frame around the scrolled area.
The only exception are the elements of the main window where adding
GTK_SHADOW_IN causes there are too many shadows (or lines in 2D themes)
around the windows and the result isn't nice. So use GTK_SHADOW_NONE
for all main editor scrolled windows. (One additional exception is the
Help->Credits page which is gray and the extra frame doesn't look good.)
Replace frame around VTE with GtkViewport to avoid the extra line around.
Raise the second editor from the splitwindow plugin so it's at the same
level as the main editor.
2015-03-22 15:32:54 +01:00
Frank Lanitz
9fbe2bc319
splitwindow: Change wording for keybinding to by in sync with tools-menu entries. Should fix #102
2013-08-08 11:43:12 +02:00
Colomban Wendling
a763e307f7
Don't access GtkWidget fields directly
...
Since many accessor are new in GTK versions we don't depend on, add
a header that defines them to the direct access if they aren't
available.
2012-10-08 20:08:06 +02:00
Colomban Wendling
c1a7b1b475
Fix various packing issue affecting GTK3 but compatible with GTK2
2012-09-28 18:06:58 +02:00
Colomban Wendling
3b14cca451
Don't use long-deprecated gtk_widget_{ref,unref}()
2012-09-13 16:34:18 +02:00
Colomban Wendling
d80bc7ce56
Update FSF address
...
Closes #3557875 .
2012-08-24 19:25:57 +02:00
Colomban Wendling
1c2c455b1d
Update copyright information
2012-06-18 01:15:04 +02:00
Nick Treleaven
011dd017e0
Enable default Scintilla editing menu for Split Window
...
This allows copying and pasting, undo etc.
2012-01-25 13:40:39 +00:00
Nick Treleaven
eb04c514ba
Add API function ui_lookup_stock_label()
...
Using this can avoid adding i18n strings unnecessarily.
2012-01-08 17:37:58 +00:00
Nick Treleaven
a5995468ef
Show marker margin in split window
...
Although go to marker commands (or other keybindings) don't work, the
marker margin can still be useful, and improves alignment with the
original sci widget when using the Top & Bottom split.
2011-12-19 18:23:46 +00:00
Nick Treleaven
ffb33c5299
Show/hide fold margin on sync, not on split
2011-12-19 17:58:51 +00:00
Nick Treleaven
8bdc2d376b
Don't manually disconnect "sci-notify" signal
...
This will get disconnected when the widget is destroyed.
2011-12-19 17:50:58 +00:00
Colomban Wendling
d06e9f4575
Remove $Id$ and $Date$ SVN keywords
2011-10-09 22:57:35 +02:00
Colomban Wendling
5bad25e2ab
Only include config.h when building Geany
...
config.h is not distributed, and we includ it from geany.h. Even
though it was only included it HAVE_CONFIG_H was defined, an Autotools
based build system is likely to define it, and it becomes a problem if
that very build system uses another header name than config.h.
Closes #3384026
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5882 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-08-03 15:20:26 +00:00
Colomban Wendling
5d606ce351
Deprecate ui_widget_set_tooltip_text() in favor of gtk_widget_set_tooltip_text()
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5840 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-06-13 18:41:50 +00:00
Colomban Wendling
e8b724ca05
Remove widget reparenting in Split Window plugin
...
Instead of reparenting the documents notebook full of
ScintillaObjects, just ref it, remove it from the old parent, add
it to the new parent, and then unref it. This fixes the display
issue on Windows and seems to have no issues on Linux.
Patch by Matthew Brush, thanks.
Closes #2725342 .
Re-apply this patch now the X PRIMARY selection bug is fixed in
Scintilla's side (see r5692).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5774 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-05-09 13:21:45 +00:00
Nick Treleaven
bf4b063853
Remove unnecessary use of DOC_VALID() macro.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5656 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-03-30 13:09:27 +00:00
Nick Treleaven
93d65a1daf
Update styles when the filetype changes (based on patch by
...
Matthew Brush, thanks).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5654 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-03-30 12:31:29 +00:00
Colomban Wendling
8b737e707d
Use new plugin_idle_add(), preventing an unlikely crash
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5651 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-03-29 23:20:29 +00:00
Colomban Wendling
2fcb9c6790
Revert r5636 "Remove widget reparenting in Split Window plugin"
...
It breaks the X PRIMARY selection on the normal Geany editor.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5640 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-03-27 16:02:34 +00:00
Colomban Wendling
df172dfedd
Remove widget reparenting in Split Window plugin
...
Instead of reparenting the documents notebook full of
ScintillaObjects, just ref it, remove it from the old parent, add
it to the new parent, and then unref it. This fixes the display
issue on Windows and seems to have no issues on Linux.
Patch by Matthew Brush, thanks.
Closes #2725342 .
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5636 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-03-27 15:02:07 +00:00
Colomban Wendling
9704e8f954
Don't unsplit when closing the document if we can show another one
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5634 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-03-27 00:18:31 +00:00
Colomban Wendling
35d5bb2c24
Fix confusing terminology in Split Window plugin menu labels
...
Patch by Matthew Brush, thanks. Closes #2796316 .
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5633 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-03-27 00:18:18 +00:00
Colomban Wendling
fc910a2448
Enable code folding in splitview window ( closes #3097780 )
...
Based on a patch by Matthew Brush, thanks!
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5632 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-03-27 00:18:05 +00:00
Colomban Wendling
dbb260f5bb
Fix some compiler warnings
...
* Shadowed function (splitwindow plugin);
* Invalid escape sequence (classbuilder plugin);
* Non-static local functions (classbuilder plugin);
* Missing function argument type (keybindings.c).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5626 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-03-24 22:00:34 +00:00
Enrico Tröger
6ac2623208
Update copyright information.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5528 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-01-19 19:39:09 +00:00
Nick Treleaven
cf6756d06e
Remove unnecessary includes.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5351 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-11-02 12:49:05 +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
Nick Treleaven
17a336aa7c
Allow GeanyKeyBinding label field to contain underscores, which won't
...
be displayed by Geany. This saves adding near-duplicate translation
strings.
Add mnemonics for 3 Edit->Format menu items.
Add keybindings_get_label().
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4389 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-10-29 11:59:55 +00:00
Nick Treleaven
120af21ccb
Call editor_apply_update_prefs() from editor_create_widget() so
...
correct tab width and other settings are applied for Split Window
plugin.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4323 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-10-15 17:55:30 +00:00
Nick Treleaven
0b8c46a8a8
Add highlighting_set_styles() to API, use for Split Window plugin so
...
filetypes.common settings get set too.
Make highlighting_set_styles() take GeanyFiletype pointer instead of
filetype id.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4322 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-10-15 16:54:15 +00:00
Nick Treleaven
39cdcac742
Make Split Window 'Show current document' button have a drop-down menu
...
to select the other documents.
Add new API function ui_menu_add_document_items().
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4308 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-10-13 17:14:25 +00:00
Nick Treleaven
1986d915cc
Run ./scripts/fix-alignment.pl -w src/*.[hc] plugins/*.[hc] (skipping generated files).
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4199 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-09-16 14:13:38 +00:00
Nick Treleaven
770d40ab98
Update PLUGIN_KEY_GROUP() macro so it doesn't allocate any
...
GeanyKeyBinding or GeanyKeyGroup structs, so we don't need to break
the ABI when adding fields to them.
Add plugin_set_key_group() for plugins to dynamically set a
keybinding group (e.g. for the Lua script plugin). Used in Split
Window plugin as an example.
Improve keybinding docs a little.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4115 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-08-24 11:35:13 +00:00
Nick Treleaven
e3076fc1c0
Set the cursor color for the split window.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4113 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-08-21 10:49:50 +00:00
Nick Treleaven
86a168fb9f
Change utils_str_remove_chars() to work in place; fix allocating on
...
the stack (the string length could exhaust the stack size).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4012 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-07-23 11:00:32 +00:00
Enrico Tröger
46ecf7061d
Fix broken 'Show the current document' tool button icon.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4006 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-07-20 23:12:24 +00:00
Enrico Tröger
373678aec3
Move utils_str_remove_chars() from the plugins/splitwindow.c to src/utils.c and add it to the plugin API.
...
Make utils_str_remove_chars() work on a new copy of the input string instead of modifying it in place.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4003 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-07-20 23:10:46 +00:00
Nick Treleaven
c4513eecaf
Add geanyplugin.h single include for plugin API; update all core
...
plugins to use it.
Add sci_set_font() to API.
Update plugin howto.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3966 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-07-14 15:06:20 +00:00
Nick Treleaven
9d8863f79e
Fix removing underscores in translated string using no_underscore()
...
macro.
Set a tooltip for the Split Window plugin's Show Current tool button.
Add utils_strdupa() macro.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3922 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-07-07 11:57:50 +00:00
Nick Treleaven
c8820b45d5
Fix using same version number as Geany.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3889 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-06-22 15:09:16 +00:00
Enrico Tröger
29574a354c
Avoid using deprecated GTK API.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3877 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-06-20 16:52:14 +00:00
Enrico Tröger
476c18e7af
Add keybindings for the split actions.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3637 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-03-19 17:50:38 +00:00
Enrico Tröger
f3351261ed
Fix possible crash on non-32-bit systems (patch by Wolfgang Ocker, thanks).
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3610 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-02-27 14:07:06 +00:00
Enrico Tröger
c636728975
Fix several compiler warnings and build errors (patch by Daniel Richard G., thanks).
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3460 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-01-11 18:29:39 +00:00
Enrico Tröger
39a6eb455e
Update copyright information.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3446 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-01-04 18:30:42 +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
81ffd05aa1
dd ui_widget_set_tooltip_text() as a convenience function to easily set tooltips for widgets. It uses gtk_widget_set_tooltip_text() on GTK >= 2.12 otherwise the old tooltips API.Use ui_widget_set_tooltip_text().
...
Use ui_widget_set_tooltip_text() in the plugins.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3250 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-11-18 20:14:42 +00:00
Nick Treleaven
24c7302f9c
Add Split Vertically command (patch by Moritz Barsnick, thanks;
...
#2219553 ).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3215 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-11-12 16:21:32 +00:00
Enrico Tröger
bae8ca23d7
Revert last change as it breaks (again) the primary X selection as well as the mouse cursor on the scrollbar.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3163 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-10-30 15:23:27 +00:00