4396 Commits

Author SHA1 Message Date
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
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