9180 Commits

Author SHA1 Message Date
scootergrisen
3b1c6f3635 email to Email (#2005) 2018-12-05 10:01:12 +10:00
Colomban Wendling
9cc18f9143 Merge pull request #1445 from kugel-/fix-1069
Improve goto-symbols popup
2018-12-04 22:43:18 +01:00
Andrej Herceg
7681a87772 Update of Slovak translation (#2004) 2018-12-04 20:10:56 +01:00
Colomban Wendling
23f51e4edf Small update of the French translation 2018-12-03 23:04:12 +01:00
Colomban Wendling
8f16685d9e Fix a few signed vs unsigned comparisons 2018-12-03 22:33:59 +01:00
Thomas Martitz
724e7886de Changes for review comments
- Notably the utils_strv_{find_common_prefix,find_lcs,shorten_file_list}
  now take -1 for num to mean to compute the array length.

- utils_strv_find_common_prefix implementation simplified.

- if num == 0 is passed to the above functions the passed strv is not
  dereferenced (so could be NULL).
2018-12-03 22:33:59 +01:00
Thomas Martitz
e0a2c6277a Refactoring and review comments
- Fix lots of compiler warnings
- Fix a bug where a long base name would prevent ellipsizing the longest
  common substring
- rewrite utils_strv_shorten_file_list to be more clear (hopefully)
- use g_strlcpy
- optimize case where the longest common substring need not be searched for
2018-12-03 22:33:59 +01:00
Thomas Martitz
fb9673eb61 api: pass gtkdoc annotation parameter as-is
The array annotation has many possible parameters, this avoids having a Doxygen
command for each one.

Luckily you can define Doxygen commands multiple times with different a number
of parameters each.
2018-12-03 22:33:59 +01:00
Thomas Martitz
7fdd360b85 Fix one oops and a couple of mistakes in comments, found by review. 2018-12-03 22:33:59 +01:00
Thomas Martitz
c05837055b api: export new utils_strv_shorten_file_list() function
Since I based the algorithm of the above function on code in one of my python
plugins, I would like to remove the implementation in my plugin and call
Geany's function.
2018-12-03 22:33:59 +01:00
Thomas Martitz
3512f6cc74 gtkdoc: add support for array annotions
We can now use @array and @arraylen{param} annotations for arrays that
will make it to the generated gtkdoc header.

g-ir-scanner cannot properly parse 'gchar **' parameters without this.
2018-12-03 21:51:01 +01:00
Thomas Martitz
b116a66862 symbols: provide a bit more path information in the goto-symbol popup.
From #1069:
> At the moment if symbols of the same name are defined in identically named
> files, it's hard to distinguish which file is which because there's no path
> in the popup.

> The popup should show part of the path until a directory where the paths
> differ so it's possible to distinguish the different files. At the same time
> there should probably be some top limit for the length of the paths as they
> can make the popup too wide.

This addresses the above by showing more of the file's paths but still try
to make it as short as possible. The file list is processed by the new
utils_strv_shorten_file_list(), as a result the popup will list files with
the common prefix stripped and the longest common sub-path ellipsized.

As a result, the file list shows enough of the path to make them unique but
still is still very short and doesn't make the dialog too wide.

Fixes #1069.
2018-12-03 21:51:01 +01:00
Thomas Martitz
4956b05d1e utils: add functions to process file name list
1) utils_strv_find_common_prefix
Locates the common prefix.

2) utils_strv_find_lcs
Finds the longest common substring.

3) utils_strv_shorten_file_list
Transforms the file list by removing the common prefix and ellipsizing
the longest common substring. This is intended to be used for fixing #1069.

Although only 3 will be used immediately, I separated the functionality, so
that the other two function can be used on their own.
2018-12-03 21:51:01 +01:00
Frank Lanitz
dce02fcc6c Update po files for upcoming string freeze 2018-12-03 21:06:10 +01:00
Frank Lanitz
5efcaf0b4d Update of Russian translation 2018-12-03 19:04:03 +01:00
Colomban Wendling
75094bd9c8 binreloc: Properly undef a macro before re-defining it 2018-12-02 23:14:26 +01:00
Colomban Wendling
499ca112f5 travis: Add binreloc to the build matrix 2018-12-02 23:13:48 +01:00
Colomban Wendling
9542d574c2 travis: Run distcheck 2018-12-02 22:58:20 +01:00
Colomban Wendling
1cd03a6417 travis: Enable ccache cache 2018-12-02 19:27:32 +01:00
Colomban Wendling
dbf1d009d4 Add mnemonics keys for some preferences 2018-12-02 17:49:14 +01:00
Colomban Wendling
51385f2a73 Add relations between label widgets and labelled widgets 2018-12-02 17:48:37 +01:00
Colomban Wendling
837a2ff5db Fix distribution of Scintilla's ILoader.h 2018-12-02 09:06:27 +01:00
Colomban Wendling
2fdf45730a Update NEWS for upcoming release 2018-11-30 17:47:30 +01:00
Colomban Wendling
8e6e3037ba Always show icons in the go to symbol popup
This uses a menu and is thus subject to the menu icons visibility
setting, but here it should reflect the view from the symbols list,
and thus show the icon in all cases.
2018-11-26 15:32:26 +01:00
Enrico Tröger
10252bea6e
Merge pull request #1932 from eht16/issue1912_change_batch_comment_to_rem
Use REM as single comment marker for Batch files
2018-11-25 15:04:57 +01:00
Enrico Tröger
9cec0a8fc4
Merge pull request #1992 from eht16/issue692_windows_dpi_aware
Windows: Enable DPI-aware mode in Windows Assembly Manifest
2018-11-25 14:53:51 +01:00
Enrico Tröger
09d17e8646
Merge pull request #1970 from dmaphy/master
Update std.php.tags to be current with PHP 7.2
2018-11-25 14:48:32 +01:00
elextr
653b06e07a
Fix line breaking with multibyte characters (#1960)
Fixes #1958 

Also replace GDK_space with ASCII space, its searching for that, not the keycode (which just happens to have the same value, lucky).
2018-11-18 19:29:54 +10:00
Frank Lanitz
7956fd5b3a Update of Traditional Chinese translation 2018-11-18 10:15:44 +01:00
Enrico Tröger
2a0e52afa7 Windows: Enable DPI-aware mode in Windows Assembly Manifest
This should solve display issues with HiDPI displays.
Closes #692.
2018-11-14 23:25:50 +01:00
Frank Lanitz
193430f497 Update NEWS for 1.34 with translation changes done since 1.33 2018-11-14 17:23:09 +01:00
Frank Lanitz
e01afc6ce9 Fix typo in Russian translation 2018-11-14 08:03:35 +01:00
Colomban Wendling
fb39f67f90 Merge pull request #1991 from b4n/tm-lookup-includes-cleaup
Process files in the order they appear on the command line when
generating tags file, instead of a more or less random order.

Closes #1989.
2018-11-13 08:38:45 +01:00
Colomban Wendling
8b68c5a2ca Add a test for the processing order when generating a tags file 2018-11-12 11:47:25 +01:00
Colomban Wendling
939dab08e0 Process files in the order they are listed when generating a tags file 2018-11-12 11:33:58 +01:00
Colomban Wendling
fc6a9bb9cb tm: Cleanup include lookup
Don't use the files inode as the hash.  Although it looks like a good
idea for de-duplicating links as well, it has several issues, including
non-uniqueness of inodes across file systems.
The way it was done hashing the inode but comparing the file name
string pointers also made the hash mostly irrelevant, as it just stored
filenames sharing the same inode in the same hash bucket but without
actually doing any de-duplication, making the whole thing a convoluted
way of converting to a list.

Instead, hash and compare the filenames themselves, which, even though
it doesn't handle links de-duplication, is better than the
non-functional previous code.

Also, directly build the list and only use the hash table as a way for
checking for duplicates, which is both faster and gives a stable
output.
2018-11-12 10:22:29 +01:00
Dmytro Semenchenko
97547edb52 Update uk.po (#1976)
Delete Fuzzy flags after https://github.com/geany/geany/pull/1968
2018-10-21 01:20:49 +02:00
pmraps
0f9d00c201 minor typo (#1980) 2018-10-21 01:19:46 +02:00
Dominic Hopf
a00471f50f Update std.php.tags to be current with PHP 7.2 2018-10-07 12:02:58 +02:00
Dmytro Semenchenko
719305c5b1 Update uk.po (#1968) 2018-10-03 18:25:27 +02:00
Frank Lanitz
61756967fb Update of Russian translation 2018-10-02 08:41:36 +02:00
Frank Lanitz
749c409b6f Small update of Russian translation 2018-09-30 21:32:55 +02:00
Frank Lanitz
4a47a7dee9 Update of Chinese Simplified translation 2018-09-29 10:17:54 +02:00
Frank Lanitz
7208f3c12c Small update of German translation 2018-09-24 22:18:38 +02:00
Colomban Wendling
c415d1d19d Merge pull request #1931 from eht16/issue1930_fix_gtk3_bundle_download
Update link to GTK+3 bundle for test builds to self-hosted version
2018-09-21 11:16:26 +02:00
Colomban Wendling
0b75601ac8 Merge pull request #1914 from b4n/scintilla/update-3-10-0
Update Scintilla to version 3.10.0

Fixes #1421.
2018-09-19 22:22:24 +02:00
Enrico Tröger
9ecabc20f0 Use REM as single comment marker for Batch files
REM seems to be the standard comment marker while "::" is rather
deprecated.

Closes #1912.
2018-08-26 12:48:17 +02:00
Enrico Tröger
a098fa847b Update link to GTK+3 bundle for test builds to self-hosted version
The host win32builder.gnome.org seems dead and so host the GTK+3 bundle
we use to test builds for Windows cross-compilation on our own.
2018-08-26 09:52:42 +02:00
Frank Lanitz
a7599c5d06 Update of Danish translation 2018-08-20 19:09:53 +02:00
Enrico Tröger
60621434c9 Windows: Update indirect dependencies for bundle creation
Pango now requires fribidi, so we need to install it.
Update the download URL for UnxUtils.
Remove unnecessary cmake files after installation.
2018-08-19 23:32:02 +02:00