4206 Commits

Author SHA1 Message Date
Colomban Wendling
1c2c455b1d Update copyright information 2012-06-18 01:15:04 +02:00
Nick Treleaven
edeaa521a2 Show info message if selection style is invisible, not warning 2012-06-08 13:28:07 +01:00
Nick Treleaven
9f99b4f55a Merge remote-tracking branch 'origin/master' into tm/tree-refactoring 2012-06-07 16:32:32 +01:00
Nick Treleaven
18cec1fb81 Fix Windows build 2012-06-06 15:21:00 +01:00
Nick Treleaven
6f0d015ed2 Fix documentation using old directory tagmanager/include 2012-06-06 15:19:34 +01:00
Matthew Brush
4e5a7231bf Always select current editor font when showing the font dialog
Previously, choosing another font and then pressing cancel would keep
the font selected rather than resetting it to the current editor font
because the dialog is not destroyed between showings.
2012-06-04 14:29:23 -07:00
Matthew Brush
9d7ff79a9a Restore secondary clear icon functionality in Preferences dialog
Ensures all entries that get a clear icon added to the secondary position
also set the secondary icon to be activatable. This was probably
introducted during the Glade switch and could be fixed in the Glade file
but this fix ensures that even hard coded entries will always have their
clear icon activatable.
2012-06-04 14:18:49 -07:00
Frank Lanitz
304f3a8b47 Adding a small note pointing out that setting a default keybinding might not the best idea for plugin maintainers 2012-06-04 16:19:11 +10:00
Nick Treleaven
7b3b65e27d Add workaround for users with an invisible selection style
This is likely to be the case for any users that copied the system
selection style line as this was incorrectly set before, but not
applied.
2012-06-03 18:04:03 +01:00
Nick Treleaven
dd87e318cf Fix applying default selection colors after editing 'selection' style
Default colors were not restored when disabling the override flags.
2012-06-03 17:38:30 +01:00
Frank Lanitz
58a03352b6 Enable two strings for translation. Patch by gymka 2012-06-03 17:48:30 +02:00
Colomban Wendling
1d6efd332e Remove an useless NULL check and error message
gtk_builder_new() cannot fail but in case of memory exhaustion, where
the GLib allocator will abort anyway.
2012-06-03 16:56:31 +02:00
Colomban Wendling
e98f11cbc5 Display warnings, critical and error messages even if not in verbose mode 2012-06-03 16:50:57 +02:00
Colomban Wendling
70e0f6eaa0 Fix verbose output with GLib 2.32 and newer
Since GLib 2.32, messages logged with levels INFO and DEBUG aren't
output by the default log handler unless the G_MESSAGES_DEBUG
environment variable contains the domain of the message or is set to
the special value "all".

Since we use INFO level messages for verbose mode, we need to make
sure this environment variable is properly set when in verbose mode.
2012-06-03 16:47:18 +02:00
Colomban Wendling
05e5f756c1 Merge branch 'master' into tm/tree-refactoring 2012-05-31 22:19:32 +02:00
Colomban Wendling
c30936028e When not sorting the file list, don't preserve read order
If the caller doesn't want the list to be sorted, there is no need to
preserve the order in which the files were actually read, since that
order is undefined anyway.
2012-05-31 21:58:37 +02:00
Colomban Wendling
13a7fb521e Don't sort tags file list since the order doesn't matter 2012-05-31 21:58:14 +02:00
Colomban Wendling
6f62a55370 g_slist_prepend() is faster than _append() and the order doesn't matter 2012-05-31 21:58:08 +02:00
Nick Treleaven
fa5929ecbe Fix clearing styles in sci_set_lexer() 2012-05-30 13:03:42 +01:00
Colomban Wendling
c84d486472 GeanyWrapLabel: fix rendering issues
GtkLabel may re-create its PangoLayout between calls leading to the
final layout used for rendering not to be set up with the appropriate
values for our sizing.  Then, re-set up the layout each time we have to
deal with it and straight before GtkLabel renders it.
2012-05-30 01:50:08 +02:00
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