4236 Commits

Author SHA1 Message Date
Colomban Wendling
6c15dd4724 Drop GEANY_WRAP_LABEL_GET_PRIVATE() macro 2012-05-30 01:50:08 +02:00
Colomban Wendling
232919a16d GeanyWrapLabel: make sure we ask for the height matching our width
With this patch, we make sure the height we query is the one matching
the width we stored and not a newer or older one.

This only fixes the sizing problem, the rendering issue visible in
some situations is still present.

This fix is replicated from the fix in libview's WrapLabel, see
http://view.svn.sourceforge.net/viewvc/view/trunk/libview/libview/wrapLabel.cc?revision=132&view=markup
It also includes the "fix for the fix",
http://view.svn.sourceforge.net/viewvc/view/trunk/libview/libview/wrapLabel.cc?revision=135&view=markup
2012-05-30 01:44:49 +02:00
Colomban Wendling
18dea90938 Show shadow around license text view in the about dialog
Since the license is a huge piece of text expected to possibly scroll
horizontally, and since most themes display the background of text
views in a different color than the default widget background color,
adding a shadow makes the edges more visible and the UI neater.
2012-05-29 19:52:26 +02:00
Colomban Wendling
d354c597dc Adjust border width of the "Credits" about tab 2012-05-29 19:31:26 +02:00
Colomban Wendling
7aef9c18fb Update copyright date in about dialog 2012-05-29 19:27:25 +02:00
Nick Treleaven
563249f7c6 Warn user if current filetype might not support color schemes
If the 'default' style isn't set to a named style, then probably the
filetype styles have been overridden with manual colors and may not
work properly with color schemes.

Note: HTML-based filetypes won't show a warning because they don't
have a 'default' style (they use 'html_default' instead).

This is a simple heuristic, but is worth having to avoid some
spurious bug reports when using the color schemes dialog.
2012-05-29 18:05:56 +01:00
Nick Treleaven
12a1295dd1 Do not change message order for sci_set_lexer()
Scintilla mentions clearing styles after setting lexer.
2012-05-29 17:55:43 +01:00
Nick Treleaven
edd672c3e5 Don't clear styles when setting lexer id unless it has changed
This fixes styles being cleared when using the Split Window plugin.
2012-05-29 15:16:24 +01:00
Colomban Wendling
2ed1d6d8bb Do not apply color scheme upon color scheme selection dialog display
Current color scheme was applied upon color scheme selection dialog
display because the GtkTreeView::cursor-changed signal is emitted when
the tree view is initially shown (since it actually gets the focus for
the first time), uselessly re-applying the current color scheme.

This is a performance issue because when many documents are open
updating the color scheme can take a few seconds.

Now we watch for the GtkTreeSelection::changed signal on the tree
view's selection, which is only emitted when the selected item actually
changes.  We also connect to that signal after filling the tree so we
don't get notified on the initial selection setup.
2012-05-27 20:25:19 +02:00
Colomban Wendling
e87f393192 Create color scheme menu item with Glade
Now there is a dialog instead of a menu for selecting the color
schemes, the item under View->Editor can be created with Glade like the
rest of the menu.
2012-05-27 01:14:25 +02:00
Frank Lanitz
3bdc8de2c4 Added Tomáš Vadina as Slovakian translator 2012-05-16 09:30:32 +02:00
Colomban Wendling
c04fd65a8f Add support for user-defined labels for custom commands
This allows the user to define a label to be displayed in the menu in
place of the command to be run.  This can be very useful if e.g. a
custom command is too complex to be easily read in the menu, or if two
custom commands are so similar could be confounded.
2012-05-14 22:22:29 +02:00
Colomban Wendling
f0a9c42985 Update makefile.win32 build system 2012-05-08 23:01:23 +02:00
Colomban Wendling
d69a153bb4 Refactor tagmanager source files architecture
Split ctags and tagmanager sources, as follows:

tagmanager/ctags: the parsers, more or less upstream CTags;
tagmanager/mio: local MIO library copy;
tagmanager/src: actual tagmanager sources.
2012-05-08 23:01:23 +02:00
Nick Treleaven
3f7b888b32 Avoid unnecessary hash table for global tag filenames 2012-04-26 13:18:05 +01:00
Nick Treleaven
000bd8547c Use g_str_has_prefix to prevent invalid memory reads in find_shebang() 2012-04-25 15:47:49 +01:00
Colomban Wendling
6edb38b54a Rewrite shebang interpreter matching a little
Use a generic match code and an array of the mappings for easier code
maintenance.
2012-04-24 21:57:08 +02:00
Nick Treleaven
c17d128bcd Add current dir to include path for tag preprocessing 2012-04-24 17:19:40 +01:00
Nick Treleaven
3275d510d8 Remove unportable pipe-to-grep tag generation hack
Instead always ignore G_BEGIN_DECLS and G_END_DECLS tags.
2012-04-23 16:58:55 +01:00
Nick Treleaven
1a9451bfc4 Fix NULL tags array warning in document_highlight_tags 2012-04-23 16:17:40 +01:00
Nick Treleaven
d2d4f0b623 Enforce filetype extension for user tag files 2012-04-23 13:44:22 +01:00
Nick Treleaven
24359942bf Show selected line count on status bar when whole lines are selected 2012-04-22 17:32:53 +01:00
Lex Trotman
4bd962ee8d Remove hard coded option that prevents 64 bit tag generation.
On GNU X86-64 systems the predefined macros are required
to choose the correct headers, so tag definition fails with
-undef.  Removed it from hardcoded, systems that need it can
add it to CFLAGS.
2012-04-22 10:54:41 +10:00
Nick Treleaven
ac34a19abe Show SGML entity completion on first typing '&' again 2012-04-16 12:05:18 +01:00
Nick Treleaven
f2a93d3790 Don't autocomplete XML entities when outside of XML style range 2012-04-16 11:56:25 +01:00
Nick Treleaven
9ddeed5254 Enable entity completion for XML documents 2012-04-13 17:41:52 +01:00
Nick Treleaven
9db1247b96 Cleanup HTML entity checks and fix HTML/PHP autocompletion 2012-04-13 17:41:50 +01:00
Nick Treleaven
9fad7aaa55 Hide autocompletion when the only entry has been typed
Fixes #3516212.
2012-04-12 17:51:16 +01:00
Colomban Wendling
78432b5806 Find in files: split extra options like a shell would do
Don't simply split the the extra options string on spaces to build the
grep argument list but rather split it in a shell-style fashion.

This is probably more intuitive for most users, is more consistent with
e.g. custom commands, and allows for spaces in an option or its
argument.

Closes #3516263.
2012-04-10 04:21:59 +02:00
Nick Treleaven
728eeb854b Remove unnecessary fields from StashTreeValue 2012-04-07 18:21:51 +01:00
Nick Treleaven
9f06d49f6f Use union for StashTreeValue instead of void*
This avoids many casts.
2012-04-07 18:09:28 +01:00
Nick Treleaven
4509dd6457 Use union for StashPref extra fields that depend on widget_type
This should make the code clearer vs. using a void*.
2012-04-06 17:46:02 +01:00
Dimitar Zhekov
f2d33bc16e Add stash_group_free_settings() function to API
Frees the memory allocated for setting values in a group.
2012-04-06 14:04:01 +01:00
Nick Treleaven
c7b3a09f05 Update bold flag after editing shortcut 2012-04-04 13:43:43 +01:00
Nick Treleaven
6286b288a4 Fix always showing Save All keybinding as overridden
Defaults should use lowercase e.g. GDK_s, not GDK_S.
2012-04-04 13:43:41 +01:00
Nick Treleaven
9e418d7aaf Show overridden keybindings in bold for prefs dialog tree 2012-04-04 13:43:39 +01:00
Nick Treleaven
fa7959f316 Maintain sidebar width when sidebar is on the right
Resizing the window should not affect sidebar width.
Fixes #3514436.
2012-04-03 16:15:02 +01:00
Matthew Brush
51dc2e9baf Support plugins written in C++
Rename use of C++ `template` keyword in plugin API function argument
and add `G_BEGIN_DECLS` and `G_END_DECLS` to public header files to
make them easier to include in C++ code. TagManager and Scintilla
headers already have these `extern "C"` blocks so they shouldn't
require any modifications.

The Autotools build system already adds in a `dummy.cxx` to hint
Automake into C++ linking to support Scintilla, which is quite
convenient for dynamically loading of C++ plugins at run-time into
the otherwise C-only program. The other build systems seem to also
use the correct linking.
2012-03-30 23:35:10 -07:00
Colomban Wendling
7b8add4019 Better handling of duplicated tags in the sidebar 2012-03-24 01:19:20 +01:00
Nick Treleaven
ec3efe0486 Fix existing user's goto tag/move tab workaround (oops)
Write an empty keybindings.conf for new users to prevent the workaround
for old defaults being written.

Also remove generated comment in keybindings.conf, this file doesn't
need an explanation as it is generated by Geany.
2012-03-20 12:59:29 +00:00
Nick Treleaven
99e8ed495b Don't change existing user's goto tag, move tab keybindings
This provides a workaround so existing users who upgrade should now
be unaffected.

The default changed for these in commits
82769a046c6394d073cc8a32677d8d4794c12c4c and
9ae71ab6cc3bb8185939e1536ffba41beb896686, but this may be
confusing/annoying for existing users who have not edited any
keybindings.

Those commit messages were wrong about never affecting existing
users. Thanks to Lex for raising this.
2012-03-19 16:52:38 +00:00
Eugene Arshinov
f4afe96880 Fix opening project in already running instance (via socket).
Previously the code didn't properly handle the case when other project
is already opened.
2012-03-18 15:45:41 +01:00
Nick Treleaven
6badca5201 Destroy color scheme dialog after closing instead of just hiding it 2012-03-15 16:12:32 +00:00
Matthew Brush
4e42814ead Automatically show color scheme dialog scrollbars, set shadow type 2012-03-15 15:54:41 +00:00
Nick Treleaven
dcc079d814 Replace Color Schemes menu with custom dialog
A dialog makes it easier to select different items when comparing
themes, and easier to see the descriptions.
2012-03-14 16:56:55 +00:00
Frank Lanitz
43ee34f660 Added Lithuanian translation 2012-03-12 19:22:48 +01:00
Frank Lanitz
f3cff26ef8 Added Arabian translation 2012-03-09 16:56:12 +01:00
Dimitar Zhekov
0df9835fd5 free configfile in configuration_reload_default_session 2012-03-08 18:15:50 +01:00
Matthew Brush
3bcd7fc400 Merge pull request #19 from techee/fixes
Fixes
2012-02-26 21:04:50 -08:00
Matthew Brush
3d4e8b41d4 Merge pull request #25 from techee/project_patches
Project patches
2012-02-26 20:50:01 -08:00