Changelog:
=========
* Annotations: draw a background behind annotations; align to the right
when they fit (e.g. for diagnostics)
* GObject Introspection: fix nullable and callback destroy annotations
(get_location, get_match_style, scheduler, callbacks)
* Fix gutter text renderer text layout snapshot deprecation
* PHP language: highlight PHP 8.0 attributes and add new keywords
* New language: Cornish
* Translation updates
Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Source code for gtksourceview will be unpacked to a directory called
'gtksourceview-${PV}'. But as the recipes have added part of PV to the
name of the recipe the default setting of variable S will be wrong.
This is fixed by explicitly setting it.
Fixing issues like:
WARNING: gtksourceview3-3.24.11-r0 do_unpack: gtksourceview3: the directory ${UNPACKDIR}/${BP} (<snip>/gtksourceview3/3.24.11/sources/gtksourceview3-3.24.11) pointed to by the S variable doesn't exist - please set S within the recipe to point to where the source has been unpacked to
WARNING: gtksourceview3-3.24.11-r0 do_populate_lic: Could not copy license file <snip>/gtksourceview3/3.24.11/sources/gtksourceview3-3.24.11/COPYING to <snip>/gtksourceview3/3.24.11/license-destdir/corei7-64/gtksourceview3/COPYING: [Errno 2] No such file or directory: '<snip>/gtksourceview3/3.24.11/sources/gtksourceview3-3.24.11/COPYING'
ERROR: gtksourceview3-3.24.11-r0 do_populate_lic: QA Issue: gtksourceview3: LIC_FILES_CHKSUM points to an invalid file: <snip>/gtksourceview3/3.24.11/sources/gtksourceview3-3.24.11/COPYING [license-checksum]
ERROR: gtksourceview3-3.24.11-r0 do_populate_lic: Fatal QA errors were found, failing task.
WARNING: gtksourceview4-4.8.4-r0 do_unpack: gtksourceview4: the directory ${UNPACKDIR}/${BP} (<snip>/gtksourceview4/sources/gtksourceview4-4.8.4) pointed to by the S variable doesn't exist - please set S within the recipe to point to where the source has been unpacked to
ERROR: gtksourceview4-4.8.4-r0 do_patch: Applying patch '0001-remove-pointless-check.patch' on target directory '<snip>/gtksourceview4/4.8.4/sources/gtksourceview4-4.8.4'
WARNING: gtksourceview5-5.18.0-r0 do_unpack: gtksourceview5: the directory ${UNPACKDIR}/${BP} (<snip>/gtksourceview5/5.18.0/sources/gtksourceview5-5.18.0) pointed to by the S variable doesn't exist - please set S within the recipe to point to where the source has been unpacked to
WARNING: gtksourceview5-5.18.0-r0 do_populate_lic: Could not copy license file <snip>/gtksourceview5/5.18.0/sources/gtksourceview5-5.18.0/COPYING to <snip>/gtksourceview5/5.18.0/license-destdir/corei7-64/gtksourceview5/COPYING: [Errno 2] No such file or directory: '<snip>/gtksourceview5/5.18.0/sources/gtksourceview5-5.18.0/COPYING'
ERROR: gtksourceview5-5.18.0-r0 do_populate_lic: QA Issue: gtksourceview5: LIC_FILES_CHKSUM points to an invalid file: <snip>/gtksourceview5/5.18.0/sources/gtksourceview5-5.18.0/COPYING [license-checksum]
ERROR: gtksourceview5-5.18.0-r0 do_populate_lic: Fatal QA errors were found, failing task.
Signed-off-by: Peter Bergin <peter@berginkonsult.se>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
The gnomebase class has a GNOMEBN variable that does this now, so use
that instead.
Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Please see
https://git.yoctoproject.org/poky/commit/?id=4dd321f8b83afecd962393101b2a6861275b5265
for what changes are needed, and sed commands that can be used to make them en masse.
I've verified that bitbake -c patch world works with these, but did not run a world
build; the majority of recipes shouldn't need further fixups, but if there are
some that still fall out, they can be fixed in followups.
Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
News in 5.16.0, 2025-03-15
--------------------------
This is a stable release for GNOME 48.0
* Translation updates
News in 5.15.1, 2025-02-24
--------------------------
* Remove use of various GTK deprecations
* Testsuite improvements
* Translation updates
News in 5.15.0, 2025-02-02
--------------------------
This is a beta release for GNOME 48.beta
* Various introspection fixes
* Improvements to GtkSourceAssistants
* Various GtkTextIter performance improvements
* Deduplication fixes when sorting
* Alter paths for resource:// usage so that resources take priority
over system installations other than the current one
* Adwaita.xml, Adwaita-dark.xml style updates
* Quantize Y position for gutter line numbers
* New and updated languages: meson.lang, zig.lang
* Translation updates
News in 5.14.1, 2024-10-04
--------------------------
This is a bug-fix release for GNOME 47
* Ensure you cannot show context menu from GtkSourceMap which otherwise
has a limited FontMap containing only the BuilderBlocks font.
News in 5.14.0, 2024-09-13
--------------------------
This is a stable release for GNOME 47.0
* Fix an issue where the gutter would not redraw when focus changes.
* Add support for Groff syntax
News in 5.13.1, 2024-08-04
--------------------------
This is an unstable release update for GNOME 47.beta
* Documentation improvements
* Improve performance of BuilderBlocks font loading. Some of this
effort required changes to the TTF, so user testing with a wide
variety of languages is desired. This should reduce startup time
of GtkSourceView using applications.
* gtk-doc.lang: highlight `backtick` spans
* c.lang: highlight [[]] style attributes
* java.lang: improve escaped character matching
* Adwaita.xml, Adwaita-dark.xml: style updates to track platform
changes for GNOME 47.
News in 5.13.0, 2024-06-28
--------------------------
This is an unstable release update for GNOME 47.alpha
* Ensure gutter renderers are released during dispose
* Make default auto-indenter keep indentation when cursor is at line start
* python3.lang: Fix f-string in curly braces to have no-spellcheck applied
* Translation updates
Signed-off-by: Markus Volk <f_l_k@t-online.de>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Fixes build with GCC-14, hopefully we will be able to drop it when
it breaks again with newer compiler like GCC15
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Packages that use gtk-doc want to find a native gtk-doc not a target
gtk-doc, so remove the pointless check for a target gtk-doc package.
This only worked before as it was being pulled in via DEPENDS in
glib-2.0, but as of oe-core f91694f this no longer happens.
Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
News in 4.8.4, 2022-11-03
-------------------------
* Style updates to kate, classic, tango
* Language updates to vala, python3, c, cuda, latex
* Add unit tests for language specs
* Translation updates
News in 4.8.3, 2022-03-18
-------------------------
* Adds support for more Pango font-variants
* Style updates to solarized-dark, solarized-light
* Language updates to lean, rst, c, gtk-doc, javascript, and json
* Translation updates
Signed-off-by: Markus Volk <f_l_k@t-online.de>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
News in 5.10.0, 2023-09-16
--------------------------
5.10.0 corresponds with GNOME 45.0 and is meant for end-user
distribution.
Changes since 5.9.0:
* Translation updates
News in 5.9.0, 2023-09-01
-------------------------
5.9.0 is a release candidate for GNOME 45.
* Documentation improvements
* Various introspection improvements
* New languages: Blueprint
* Updated languages: C, C++, Rust, Python3, Shell, Java, OCaml
* Updated style schemes: cobalt
* GtkSourceBuffer gained a "loading" property which is
toggled when GtkSourceFileLoader is loading the buffer
from storage.
* More defensiveness improvements in GtkSourceBufferOutputStream.
* A leak in Vim emulation has been fixed.
* Vim emulation now supports visual replace.
* Scheduling of batched workers has been improved with
gtk_source_scheduler_add().
* Snippets are now initialized from GtkSourceView.constructed()
to allow for applications to hook buffer creation.
* Translation updates
News in 5.8.0, 2023-03-17
-------------------------
5.8.0 is meant for end-users which corresponds to the GNOME 44.0 release.
* vim: avoid large numbers of small deletions in filter command
* adwaita.xml: add missing def:deletion style
* todotxt.lang: add support for todo.txt format
News in 5.7.2, 2023-03-03
-------------------------
5.7.2 is a development release of GtkSourceView intended for application
developers and unstable distributions alike.
* Documentation improvements
* Updated languages: java.lang, html.lang
* Fix Y offset calculation when GtkTextView:top-margin is set
* Completion now requeries providers upon manual activation
* CSS updates for completion popover to reduce allocation jitter
* Assistants will more aggresively update positioning. It is heavily
suggested that you have GNOME/gtk!5564 in whatever GTK you are
linking against to reduce the potential for frames rendered with
missing allocations/text.
Signed-off-by: Markus Volk <f_l_k@t-online.de>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
News in 5.4.2, 2022-06-12
-------------------------
* Updated languages: c.lang, perl.lang
* Updated style-schemes: Adwaita-dark, solarized-light, solarized-dark
* Updated translations: Friulian
* Gutter renderers are now provided a prelight quark for lines when the
pointer is over the gutter.
* Hover assistants now avoid synthesized motion which is used much more
often in GTK 4 when dealing with crossing-events.
* Hover assistants will now dismiss themselves when the cursor moves.
* GtkSourceMap has reduced how often it needs to do allocation by ignoring
spurious notify::upper and value-changed signals from GtkTextView's
vertical GtkAdjustment.
* The testsuite has gained some correctness improvements thanks to
issues pointed out by Sébastien Wilmet.
* The Vim emulation's register implementation is now shared between buffers
as it would be expected in Vim.
* Snippets have gained some robustness improvements including the ability
to simplify results from the snippet parser, more defensive behavior,
and being lazier when possible.
* Tabbing through focus-positions in snippets will now immediately jump
to the new position if scrolling is required instead of animating as
it results in better placement of tooltip assistants.
* Assistants including completion, hover, and interactive tooltips now
reduce how often they request presentation and position calculation from
GDK and ultimately display servers such as Wayland.
* Completion windows now take the size of the gutter into account when
calculating their position relative to the parent GtkWindow so that the
typed-text column remains aligned with typed text in the source view.
* Completion has gained robustness improvements to do less work when
possible and avoid spinning the frame-clock which could happen in
certain scenarios.
Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
News in 5.4.1, 2022-04-21
-------------------------
* Improved styling for style scheme preview widgets
* Improved styling and positioning of completion windows
* Improved styling for various style schemes
* Unit test fixes
* Hover assistants will no longer be showed if no providers
completed successfully to add widgets
* GtkSourceVimIMContext tries to handle various corner cases
better with regards to reuse and being removed from an
event controller or widget
* GtkSourceCompletionCell has improved fast-paths for resetting
cells to empty state when already empty
* Improved sizing and placement of assistants including hover
popovers, interactive tooltips, and completion windows
* The overview map has improved it's fallback styling
* The overview map will now properly update when the sourceview's
right-margin-position changes
* Fixes to vala.lang for regex detection
* Translation updates
Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
News in 4.8.2, 2021-09-03
-------------------------
* New syntax highlighting definition file for: STAR
* Improved syntax highlighting definition file for: YARA, LLVM
* GtkSourceMap now avoids animation while scrolling in response
to clicks. This should help prevent some hysteresis.
* GObject Introspection fixes
* Fixed decrement of negative numbers in GtkSourceView
* Improvements to style schemes: kate
* Fixed build-time macros for version checking in some scenarios
* Translation updates
Signed-off-by: Andreas Müller <schnitzeltony@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
This is the result of automated script (0.9.1) conversion:
oe-core/scripts/contrib/convert-overrides.py .
converting the metadata to use ":" as the override character instead of "_".
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Compile in two stages. First, generate gtksourceview-gresources.h,
then compile everything else. Adding the dependency is not trivial
so we wait for upstream and add a benign workaround.
Signed-off-by: Joe Slater <joe.slater@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
News in 4.8.1, 2021-03-02
-------------------------
* Fix highlighting in presence of byte-order-marks (BOM)
* meson.lang: Update keywords to 0.55.3 syntax
* cmake.lang: Update keywords to 3.18.2 syntax
* go.lang: make "0i" syntax highlight as integer
* Translation updates
News in 4.7.90, 2020-08-07
--------------------------
* Bump GTK requirement to 3.24 for gdk_window_move_to_rect()
* Use gdk_window_move_to_rect() to more reliably position completion windows
* erb.lang: initial support for ERB
* javascript.lang, typescript.lang: various correctness and performance
improvements.
* Translation updates
Signed-off-by: Andreas Müller <schnitzeltony@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
News in 4.6.0, 2020-03-06
-------------------------
* cpp.lang: add C++20 keywords
* commonlisp.lang: add format directives
* Translation updates
News in 4.5.91, 2020-02-14
--------------------------
* GObject Introspection fixes
* Removed use of g_assert() in favor of alternatives in unit tests so
distribution unit testing is more reliable
* Robustness improvements in internal GtkTextIter movements
* Style scheme improvements for recent GTK 3 theme styling changes
* Build system improvements to support -Bsymbolic, -Wl,-z,relro,
-Wl,-z,now and -Wl,-z,defs
* Build improvements for Windows, FreeBSD, and macOS
* cmake.lang: track CMake 3.13 changes
* kotlin.lang: register *.kts glob extension
* gradle.lang: register *.grandle glob extension
* php.lang: Large redesigned PHP lang including support for
unicode and improved heredoc
* sh.lang: Many improvements including various GNU bash extensions
* meson.lang: Support for string escape sequences
* javascript.lang: Redesign of JavaScript language spec to be more flexible
and reusable from other languages which support JS.
* jsx.lang: Initial support for JSX
* jsdoc.lang: Initial support for JSDoc
* objj.lang: Improvements using javascript improvements
* asciidoc.lang: Improvements to use more generic markup styling
* t2t.lang: Improvements to use more generic markup styling
* css.lang: Redesign to be more flexible, support reuse and embedding, and
add various new CSS features
* scss.lang: Improve integration with css.lang
* less.lang: Improve integration with css.lang
* ruby.lang: Improvements for string and escape string handling
* html.lang: Improvements using embedded languages
* go.lang: Improvements for escape sequences
* commonlisp.lang: Initial support for Common Lisp
* ftl.lang: Initial support for Mozilla's Fluent ftl
* Translation updates
I'd like to personally thank Jeffery To for the overwhelming amount of work
they have put into reviewing and improving both language specs and style
schemes this cycle. The number of improvements you see above are largely an
example of their quality reviews and improvements!
Signed-off-by: Andreas Müller <schnitzeltony@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Adds classic-light to gtksourceview4. Classic-light enables dark text on white
background when using dark themes.
Tested with gedit V3.
Signed-off-by: Andreas Müller <schnitzeltony@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
This theme is helpful when using dark themes as it keeps white background.
Tested with:
* oe-build gedit based on GTK2
* fedora's gedit based on GTK3
Signed-off-by: Andreas Müller <schnitzeltony@gmail.com>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
gnome-common is deprecated and gnomebase.bbclass will soon stop depending on it,
so add gnome-common to DEPENDS for the recipes that still use it.
gxim previously wasn't really using the gnome-common macros so now the build
fails with compiler errors, so pass the flag to turn off fatal warnings as gxim
appears to be dead.
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>