6141 Commits

Author SHA1 Message Date
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
Matthew Brush
9b39c9973a Add some more items to NEWS 2012-05-29 15:51:02 -07: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
Frank Lanitz
d550bc781c Update of German translation 2012-05-28 13:57:34 +02: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
Nick Treleaven
ffd3d739db Fix a missing tag on global tags merge (oops) 2012-05-27 17:20:34 +01:00
Colomban Wendling
915bb5989e Update NEWS to reflect current status 2012-05-27 01:14:25 +02:00
Colomban Wendling
262b48b52c Add a separator after the Color Schemes menu item 2012-05-27 01:14:25 +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
ac27a658d2 Adding a missing space inside German translation 2012-05-26 08:38:50 +02:00
Frank Lanitz
23ed551144 Update of Lithuanian translation provided by Algimantas Margevičius 2012-05-26 08:38:50 +02:00
Colomban Wendling
cf3139de03 Use the same pointer type for all pointers in tm_tags_merge()
This prevents GCC from complaining about implicit casts and comparisons
between different pointer types.  It also makes the code a little less
bound at dealing with TMTags.
2012-05-25 19:47:10 +02:00
Colomban Wendling
2f94aa373e Fix incomplete copy in tm_tags_merge() that lead to crashes 2012-05-25 19:44:17 +02:00
Frank Lanitz
c7fa1fd9e2 Updated Italian translation provided by Giuseppe Penone 2012-05-16 09:48:39 +02:00
Frank Lanitz
ef59393e82 Update of Swedish translation by Tony Mattsson 2012-05-16 09:43:45 +02:00
Frank Lanitz
e5f7f7735f Update of Slovakian translation 2012-05-16 09:31:51 +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
Frank Lanitz
11c3c91525 Fixed a wrong reference to utils_open_browser() 2012-05-06 08:14:19 +02:00
Enrico Tröger
9a80935835 Use the same Python interpreter for the genapi.py script as for the Waf script
This ensures we call the genapi.py script with the same Python interpreter as the Waf
build system was called. This is relevant if the used interpreter is not 'python' but e.g.
python2 or python2.6 or whatever.
2012-05-04 23:13:36 +02:00
Enrico Tröger
3d1c7e3f57 PEP8 fixes 2012-05-04 23:11:40 +02:00
Enrico Tröger
af70c1dbcb Make the script Python3 compatible 2012-05-04 23:10:43 +02:00
Frank Lanitz
1588a67570 Update of Italian translation by Giuseppe Penone 2012-05-03 18:18:10 +02:00
Frank Lanitz
249f9bc285 Update of Italian translation by Giuseppe Penone 2012-04-28 08:51:26 +02:00
Nick Treleaven
33e1a81b4a Ignore D 'static if' tests
This prevents the parser getting confused.
2012-04-26 13:50:39 +01:00
Nick Treleaven
3f7b888b32 Avoid unnecessary hash table for global tag filenames 2012-04-26 13:18:05 +01:00
Nick Treleaven
6e46a7bd3d Fix existing leak when a matching ignore.tags item is parsed 2012-04-25 16:13:56 +01:00
Nick Treleaven
a56373cabd Support PREFIX* in ignore.tags 2012-04-25 15:54:56 +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
Nick Treleaven
7c545a3094 Delete temporary error file 2012-04-25 13:48:33 +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
4f87e31478 Show tag preprocessing errors on stderr 2012-04-24 17:35:31 +01:00
Nick Treleaven
c17d128bcd Add current dir to include path for tag preprocessing 2012-04-24 17:19:40 +01:00
Nick Treleaven
003185f897 Grep isn't required for tag file generation; remove replacing c99.tags
This removes 'Replacing the default C/C++ tags file' - we should
not encourage users to do this as it's unnecessary and error-prone
when updating Geany.
2012-04-24 16:41:18 +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
Frank Lanitz
6b22ab908c Adding it into THANKS for Giuliano 2012-04-21 09:14:19 +02:00
Nick Treleaven
712cdd6aa0 Merge global tags in order rather than resorting the whole array
This is much faster than resorting, especially when there are many
global tags files loaded.
2012-04-20 13:13:16 +01:00
Frank Lanitz
d3aed9f08b Adding a first version of Slovakian translation provided by Tomáš Vadina 2012-04-19 17:03:28 +02:00