7025 Commits

Author SHA1 Message Date
Colomban Wendling
17a7469b68 Avoid a few unnecessary widget lookups 2014-01-09 17:50:30 +01:00
Colomban Wendling
680a556fff Find when activating the find entry in the replace dialog 2014-01-09 17:34:50 +01:00
Sam Lin
ee891e189e Update zh_TW.po
fix typo
2014-01-09 16:21:00 +01:00
Colomban Wendling
dd7c20a194 python: Improve access reporting
See:
* http://www.python.org/dev/peps/pep-0008/#method-names-and-instance-variables
* http://www.python.org/dev/peps/pep-0008/#designing-for-inheritance
2014-01-09 15:50:25 +01:00
Dimitar Zhekov
625c7b829d fix unexisting keys assigned to "Send selection to -> ..." 2014-01-09 15:27:51 +01:00
Colomban Wendling
5412f73d02 python: Don't duplicate the kind names 2014-01-09 02:12:44 +01:00
kuroidoruido
8d5c7fbdc1 Update filetypes.sql
Add loop and replace keywords
2014-01-08 23:54:46 +01:00
Frank Lanitz
99e07cd294 Swedish translation has also been updated for 1.24 2013-12-27 12:00:28 +01:00
Colomban Wendling
a7884ee2f8 JavaScript: fix parsing of files starting with a shebang
Closes #1016.
2013-12-24 19:30:04 +01:00
Colomban Wendling
e13cd014be Fix portability of make rules to build documentation
Support for "$<" automatic variable in non-suffix rules is a GNU Make
extension: don't use it.
2013-12-22 20:47:33 +01:00
Colomban Wendling
4c8d2fb928 Fix handling of --list-documents when no other instance are running
Properly exit when passed --list-documents, even if no other instance
were already running.  This makes this option behave the same in any
case, making it easier to use in e.g. scripts.
2013-12-19 20:45:25 +01:00
Colomban Wendling
3693889c48 Update NEWS 2013-12-17 22:18:28 +01:00
Colomban Wendling
0eec7764af Fix truncation of the data retrieved with --list-documents
Do not truncate the document list to the size of the buffer used for
communication.

Since we now read multiple times, we need to make sure to always send
ETX so a reader don't hang reading the next chunk if the data sent had
exactly the size of the buffer.
2013-12-17 16:17:21 +01:00
Colomban Wendling
c0a233fcc3 Fix a typo in the documentation's markup 2013-12-17 16:09:56 +01:00
Colomban Wendling
f94650b48e Autotools: use the target file as the base rule for building documentation
This allows automatic building of the file when required, and allows
user to request building that specific file.
2013-12-17 16:02:50 +01:00
Colomban Wendling
9a236fb04e Autotools: fix building the documentation in VPATH builds 2013-12-17 15:50:07 +01:00
Colomban Wendling
dec7b939fb Autotools: always put object files in the source file's directory
Enable Automake option "subdir-object" to put all object files next to
their source file rather than in the directory containing the Makefile.

This is quite expected, and will be the future behavior of Automake in
all cases, so enabling it now avoids future unexpected change.
2013-12-17 15:42:34 +01:00
Colomban Wendling
0592b4410c Autotools: enable Automake warnings 2013-12-17 15:41:22 +01:00
Colomban Wendling
98b82550a8 Plug a few possible small memory leaks 2013-12-05 21:39:59 +01:00
Colomban Wendling
ddf67a8586 VTE: properly use the default value for invalid configured colors 2013-12-05 20:18:27 +01:00
Colomban Wendling
4aff511b01 Remove unnecessary allocation for VTE color settings 2013-12-05 20:16:54 +01:00
Colomban Wendling
69f1cc7136 Remove useless rotate_rgb() 2013-12-04 15:49:47 +01:00
Colomban Wendling
4ce6409e89 Remove useless utils_invert_color() 2013-12-04 15:46:05 +01:00
Colomban Wendling
8980970630 Unify color parsing
Change utils_parse_color() to use gdk_color_parse() and follow its
syntax, additionally supporting our "0x" prefix as a synonym for the
"#" prefix;  and use this everywhere.

Also add utils_color_to_bgr() and utils_parse_color_to_bgr() to provide
conversion to the 24 bits BGR format used by Scintilla.
2013-12-04 15:31:17 +01:00
Colomban Wendling
1590007862 Remove an unnecessary allocation 2013-12-04 14:59:05 +01:00
Colomban Wendling
3522e81d73 Merge branch 'wip/color-parsing-improvements' 2013-12-03 03:09:41 +01:00
Colomban Wendling
f07b5457d6 Simplify fold toggling code using higher-level Scintilla API 2013-12-02 23:19:44 +01:00
Colomban Wendling
3759562d7c Simplify reading highlighting colors with new utils_parse_color()
Drop redundant code converting # and short formats to hex colors now
utils_parse_color() can parse them.
2013-12-02 22:58:54 +01:00
Colomban Wendling
ebde42617a Accept colors with only 1 digit per channel in utils_parse_color()
AKA short HTML color notation.
2013-12-02 22:53:35 +01:00
Colomban Wendling
11a2f0ee91 Properly validate input in utils_parse_color() 2013-12-02 22:44:40 +01:00
Colomban Wendling
507005ca54 Rename utils_strtod() to utils_parse_color()
Rename the function to a more sensible name, and remove unnecessary
arguments.  Now, format (# or 0x) is auto-detected.
2013-12-02 22:38:11 +01:00
Colomban Wendling
f99e627bb0 Fix folding of the very last line in a level when unfolding children
Fix an off-by-one mistake resulting on the very last line of a nested
folded level not to be unfolded when recursively unfolding it's parent.

This was only visible when the last fold point was only one line long,
otherwise unfolding the (N-1)th line was enough.

Closes #1007.
2013-11-23 00:45:39 +01:00
Colomban Wendling
cff36e7497 R: properly display sources and libraries in the symbol list 2013-11-20 18:41:11 +01:00
Colomban Wendling
10893c4ada R: fix invalid memory access in the tag parser 2013-11-20 18:40:22 +01:00
Colomban Wendling
1dfc1077c7 Fix crash in fallback mime icon loading code under GTK3 2013-11-18 22:22:57 +01:00
Colomban Wendling
cebc20a47c Use proper argument list 2013-11-11 18:54:08 +01:00
Colomban Wendling
bbc0fa3b69 Don't depend on an implementation detail of S_ISREG and S_ISDIR 2013-11-11 18:52:45 +01:00
Colomban Wendling
1f2279aefe Always use proper functions argument lists 2013-11-10 01:43:10 +01:00
Colomban Wendling
39fa004619 Fasten utils_tidy_path() a little and fix possible leaks in it
Fix possible leaks with bad paths, and also speed up some part of the
function by avoiding unnecessary allocations and string length
computations.
2013-11-07 23:11:15 +01:00
Colomban Wendling
c074817b8b Fix 2 unlikely memory leaks 2013-11-07 22:57:40 +01:00
Colomban Wendling
1d8dd84a47 Fix some small type issues in printf formats 2013-11-07 21:28:23 +01:00
Colomban Wendling
5c22c9d73e R has braces 2013-11-04 17:42:05 +01:00
Colomban Wendling
7b2f39a852 Remove an unused variable and plug a theoretical memory leak 2013-11-04 16:05:25 +01:00
Colomban Wendling
b2f4717ad3 Plug a memory leak on Windows 2013-11-03 23:35:55 +01:00
Colomban Wendling
5918532ab2 Explicit a valid cast 2013-11-03 22:31:00 +01:00
Colomban Wendling
cb588a1b82 Plug a possible memory leak 2013-11-03 22:30:55 +01:00
Colomban Wendling
0cb139638f Plug a memory leak 2013-11-03 22:18:50 +01:00
Colomban Wendling
bc6c345153 Remove an unused variable that could be leaked 2013-11-03 22:18:26 +01:00
Colomban Wendling
6e46cca735 Fix mismatching allocation and deallocation
When allocation with g_malloc(), the memory should be freed using
g_free(), not plain free().

Also, use g_try_malloc() instead of g_malloc() where the code carefully
handles allocation failures itself.
2013-11-03 01:52:27 +01:00
Colomban Wendling
47609ec102 Plug a possible memory leak 2013-11-03 01:52:12 +01:00