lp:~vcs-imports/gtk/+git/gtk

Owned by VCS imports
Get this repository:
git clone https://git.launchpad.net/~vcs-imports/gtk/+git/gtk

Import details

Import Status: Reviewed

This repository is an import of the Git repository at https://gitlab.gnome.org/GNOME/gtk.git.

The next import is scheduled to run .

Last successful import was .

Import started on juju-98ee42-prod-launchpad-codeimport-5 and finished taking 6 minutes — see the log
Import started on juju-98ee42-prod-launchpad-codeimport-5 and finished taking 3 minutes — see the log
Import started on juju-98ee42-prod-launchpad-codeimport-4 and finished taking 3 minutes — see the log
Import started on juju-98ee42-prod-launchpad-codeimport-1 and finished taking 8 minutes — see the log
Import started on juju-98ee42-prod-launchpad-codeimport-0 and finished taking 5 minutes — see the log
Import started on juju-98ee42-prod-launchpad-codeimport-5 and finished taking 5 minutes — see the log
Import started on juju-98ee42-prod-launchpad-codeimport-4 and finished taking 3 minutes — see the log
Import started on juju-98ee42-prod-launchpad-codeimport-4 and finished taking 4 minutes — see the log
Import started on juju-98ee42-prod-launchpad-codeimport-1 and finished taking 3 minutes — see the log
Import started on juju-98ee42-prod-launchpad-codeimport-0 and finished taking 4 minutes — see the log

Branches

Name Last Modified Last Commit
gtk-3-24 2024-05-18 10:47:48 UTC
Merge branch 'fix-win32-build-gcc14' into 'gtk-3-24'

Author: Luca Bacci
Author Date: 2024-05-18 10:47:48 UTC

Merge branch 'fix-win32-build-gcc14' into 'gtk-3-24'

gtkprintoperation-win32: fix the build on Windows with GCC 14.1.0

See merge request GNOME/gtk!7259

amolenaar/macos-keybindings 2024-05-17 15:32:12 UTC
events: Use primary modifier for text, instead of Control

Author: Arjan Molenaar
Author Date: 2024-05-17 15:30:28 UTC

events: Use primary modifier for text, instead of Control

This makes key events feel more natural on macOS.

amolenaar/doc-fixes 2024-05-17 15:13:13 UTC
docs: Fix typo in doc string

Author: Arjan Molenaar
Author Date: 2024-04-20 14:22:52 UTC

docs: Fix typo in doc string

jsparber/fix_xdg_activation_for_popups 2024-05-16 11:34:05 UTC
gdk/wayland: Always use toplevel surface when transferring focus

Author: Julian Sparber
Author Date: 2024-05-16 11:28:02 UTC

gdk/wayland: Always use toplevel surface when transferring focus

Xdg activation for other applications was fixed in
https://gitlab.gnome.org/GNOME/gtk/-/commit/14d99bacbcb2ff413746db368a3a751c8f9ac277
but not for transferring focus to a new window of the same application.

Closes: https://gitlab.gnome.org/GNOME/gtk/-/issues/6711

main 2024-05-16 01:49:52 UTC
Merge branch 'css-fiddling' into 'main'

Author: Matthias Clasen
Author Date: 2024-05-16 01:49:52 UTC

Merge branch 'css-fiddling' into 'main'

css: Lose some underscores

See merge request GNOME/gtk!7255

gtk-4-14 2024-05-15 19:53:51 UTC
Update Catalan translation

Author: Jordi Mas
Author Date: 2024-05-15 19:53:51 UTC

Update Catalan translation

shrink-titlebars 2024-05-15 17:22:32 UTC
theme: Reduce the height of titlebars

Author: Matthias Clasen
Author Date: 2024-05-15 17:22:32 UTC

theme: Reduce the height of titlebars

The height of our titlebars is geared towards headerbars that can
host controls. For a traditional title-only titlebar, a smaller
footprint is sufficient and frees up some valuable vertical space

shrink-titlebars-3-24 2024-05-15 15:46:44 UTC
theme: Reduce the height of titlebars

Author: Matthias Clasen
Author Date: 2024-05-02 13:40:28 UTC

theme: Reduce the height of titlebars

The height of our titlebars is geared towards headerbars that can
host controls. For a traditional title-only titlebar, a smaller
footprint is sufficient and frees up some valuable vertical space.

ccs-math 2024-05-14 03:52:48 UTC
css: Implement math functions

Author: Matthias Clasen
Author Date: 2024-05-11 21:35:54 UTC

css: Implement math functions

Implement the functions described in the "Mathematical
Expressions" section of the "CSS Values and Units Module
Level 4" spec, https://www.w3.org/TR/css-values-4/.

Beyond calc(), which we already had, this includes
min(), max(), clamp(),
round(), rem(), mod(),
sin(), cos(), tan(), asin(), acos(), atan(), atan2(),
pow(), sqrt(), hypot(), log(), exp(),
abs(), sign(),
e, pi, infinity and NaN.

Some tests included.

nieldsg/font-filter 2024-05-13 11:06:19 UTC
gtk: Introduce private GtkFontFilter helper

Author: NielsDG
Author Date: 2024-05-13 10:50:00 UTC

gtk: Introduce private GtkFontFilter helper

Extract the "user filter" code from the `GtkFontChooserWidget`, for a
couple of reasons:

* If we want to expand the filter in the future (e.g. to filter on
  variable fonts, or check for multiple languages), we have a nice place
  to put this.
* It simplifies the font chooser widget a tiny bit, as it's a pretty big
  file which can be hard to follow.
* With a custom `GtkFilter` subclass, we can actually avoid doing a bit
  of work when initially showing the widget, as we can return
  `GTK_FILTER_MATCH_ALL` when nothing is selected yet (which is not
  possible with a `GtkCustomFilter'). It's not much, but it's still nice

css-variables-errors 2024-05-10 03:13:53 UTC
css: Improve error reporting for variables

Author: Matthias Clasen
Author Date: 2024-05-08 23:51:29 UTC

css: Improve error reporting for variables

Emit errors for all the variables that were being expanded
if an error occurs while parsing a property value at compute time.

Include the variables that are being expanded in the error message.

gtk-4-12 2024-05-09 16:03:58 UTC
Update Portuguese translation

Author: Hugo Carvalho
Author Date: 2024-05-09 16:03:58 UTC

Update Portuguese translation

wip/otte/optional-dependencies 2024-05-08 16:10:39 UTC
build: bump GStreamer dep to 1.24.0

Author: Benjamin Otte
Author Date: 2024-05-08 13:44:45 UTC

build: bump GStreamer dep to 1.24.0

Depend on a release version, not a prerelease.

icon-provider 2024-05-08 04:07:45 UTC
Add GtkIconProvider

Author: Matthias Clasen
Author Date: 2024-05-08 04:07:45 UTC

Add GtkIconProvider

This is a minimal interface to provide icon lookup by name.
It is implemented by GtkIconTheme, but platform libraries or
applications can provide their own implementation and pass it
to GTK.

matthiasc/css-variables 2024-05-07 23:33:55 UTC
css: Only compute shorthand values once

Author: Matthias Clasen
Author Date: 2024-05-07 23:33:55 UTC

css: Only compute shorthand values once

When computing a style, only compute the shorthand value once.

wip-vulkan-empty-image-check 2024-05-07 02:10:38 UTC
gpu: Never create empty images

Author: Matthias Clasen
Author Date: 2024-05-06 10:49:40 UTC

gpu: Never create empty images

Creating a Vulkan image with width or height zero is an error,
so check at the time when we compute the device pixel rect.

The node file in the included test was devised by Benjamin Otte.

Fixes: #6691

build-with-unicode 2024-05-06 15:13:29 UTC
Build with UNICODE

Author: Luca Bacci
Author Date: 2024-05-06 12:27:33 UTC

Build with UNICODE

less-vulkan 2024-05-05 19:19:17 UTC
gsk: Require dmabuf support for Vulkan

Author: Matthias Clasen
Author Date: 2024-05-02 01:26:54 UTC

gsk: Require dmabuf support for Vulkan

Don't use the Vulkan renderer if Vulkan doesn't support any
dmabuf formats.

font-subsetting-in-node-files 2024-05-05 18:26:53 UTC
Compress font data in node files

Author: Matthias Clasen
Author Date: 2024-05-05 14:11:48 UTC

Compress font data in node files

Subsetting helps, but we can make things event smaller by compressing
the font data before the base4 encoding.

We still accept uncompressed font data as well, by using the (made-up)
mimetype font/ttf+zip for the compressed case.

font-rendering-redone 2024-05-03 23:05:36 UTC
tests: Add a difficult node

Author: Matthias Clasen
Author Date: 2024-05-03 23:05:36 UTC

tests: Add a difficult node

This node has the Fira e glyph in various sizes,
to demonstrate clipping of text bounds.

matthiasc/wip/css-variables 2024-05-03 17:07:31 UTC
css parser: Small optimization

Author: Matthias Clasen
Author Date: 2024-05-03 17:07:31 UTC

css parser: Small optimization

Avoid creating a GFile until it is needed.

uberless-vulkan 2024-05-01 18:10:44 UTC
vulkan: Disable the uber shader

Author: Matthias Clasen
Author Date: 2024-05-01 18:10:03 UTC

vulkan: Disable the uber shader

There are too many systems where compiling the uber shader takes
multiple seconds, or even minutes. So disabled it for now.

wip/otte/text-size-hack 2024-05-01 08:45:12 UTC
draft: Add a hack demonstrating text node size being wrong

Author: Benjamin Otte
Author Date: 2024-05-01 07:48:44 UTC

draft: Add a hack demonstrating text node size being wrong

serialize/deserialize all text nodes and compare the reported bounds. If
they differ, print a warning and then use the bounds of the deserialized
node.

Related: #6654

shader-tool 2024-04-30 22:38:25 UTC
Add a shader tool

Author: Matthias Clasen
Author Date: 2024-04-30 19:41:34 UTC

Add a shader tool

This tool will do what is necessary to populate the Vulkan shader
cache with most of the shaders that GTK will need.

dmabuf-wayland 2024-04-27 23:58:19 UTC
gsk: Don't notify surface properties during render

Author: Matthias Clasen
Author Date: 2024-02-07 09:40:42 UTC

gsk: Don't notify surface properties during render

The offloading may change subsurface stacking order, and thereby
change the effective dmabuf formats of the surface. But we don't
want to trigger callbacks during frame processing, so delay the
change notification until after we're done with that.

fix-profiler-mark 2024-04-27 14:23:45 UTC
gsk: Fix a profiler mark

Author: Matthias Clasen
Author Date: 2024-04-27 04:41:51 UTC

gsk: Fix a profiler mark

I messed this up in f26efd9adf1ea3a8.

listview-things 2024-04-26 15:50:30 UTC
listitemwidget: Update some accessible state

Author: Matthias Clasen
Author Date: 2024-04-26 15:40:22 UTC

listitemwidget: Update some accessible state

Pass the selected state on to a11y.

Fixes: #6663

wip.win32.fixes 2024-04-26 02:24:55 UTC
Win32 GL: Also force not to use depth/stencil/accum bits on legacy contexts

Author: Chun-wei Fan
Author Date: 2024-02-17 01:17:34 UTC

Win32 GL: Also force not to use depth/stencil/accum bits on legacy contexts

For completeness' sake, also specifiy in the PIXELFORMATDESCRIPTOR to use no
depth, stencil and accum bits to initializing WGL when we can't (yet) use
wglChoosePixelFormatARB(), as we must always fist have a base legacy WGL
context using ChoosePixelFormat() before we can use that to use
wglChoosePixelFormatARB(), or if wglChoosePixelFormatARB() is somehow not
available for us.

Some drivers, however, enforces enabling depth buffers, so if we can't
acquire a pixel format that disables depth buffers, retry acquiring one
with that, which sadly is not optimal but we must make do.

Attempts to complete fix for issue #6401.

issue-6401-legacy 2024-04-24 08:23:17 UTC
Win32 GL: Also force not to use depth/stencil/accum bits on legacy contexts

Author: Chun-wei Fan
Author Date: 2024-02-17 01:17:34 UTC

Win32 GL: Also force not to use depth/stencil/accum bits on legacy contexts

For completeness' sake, also specifiy in the PIXELFORMATDESCRIPTOR to use no
depth, stencil and accum bits to initializing WGL when we can't (yet) use
wglChoosePixelFormatARB(), as we must always fist have a base legacy WGL
context using ChoosePixelFormat() before we can use that to use
wglChoosePixelFormatARB(), or if wglChoosePixelFormatARB() is somehow not
available for us.

Some drivers, however, enforces enabling depth buffers, so if we can't
acquire a pixel format that disables depth buffers, retry acquiring one
with that, which sadly is not optimal but we must make do.

Attempts to complete fix for issue #6401.

wip/matthiasc/css-variables 2024-04-21 18:35:26 UTC
Add a test for CSS variables

Author: Matthias Clasen
Author Date: 2024-04-21 18:35:26 UTC

Add a test for CSS variables

cherry-pick-2e152254 2024-04-20 12:56:32 UTC
Merge branch 'remove-work-arounds' into 'main'

Author: Luca Bacci
Author Date: 2024-04-11 17:03:08 UTC

Merge branch 'remove-work-arounds' into 'main'

GdkWin32: Remove some work arounds that are not needed anymore

Closes #6614

See merge request GNOME/gtk!7114

(cherry picked from commit 2e152254468b63f79347ef2ca33e0e3fc79f29dc)

9297439d GdkWin32: Remove some work arounds that are not needed anymore
8a1bee1d GdkWin32: Don't explicitly set the transient owner as active
3c94e91e GdkWin32: Do not clear surface contents when restoring from minimize

bring-back-app-menu 2024-04-19 18:25:36 UTC
application: Bring back app menus

Author: Matthias Clasen
Author Date: 2024-03-18 12:12:37 UTC

application: Bring back app menus

Being able to override the app menu is relevant on macOS, so
bring back the api needed to do that. All the machinery was
still around from when we stripped it before 4.0.

wip/kabus/rtl-widgets-1 2024-04-13 19:24:51 UTC
gtk/columnview: Invert resizing drag direction in RTL

Author: Khalid Abu Shawarib
Author Date: 2024-03-19 05:09:20 UTC

gtk/columnview: Invert resizing drag direction in RTL

Reverse the side of column resizing drag handle in RTL and change
the base for drag coordinates and the column resizing caluculations.

Fixes https://gitlab.gnome.org/GNOME/gtk/-/issues/6049

wip/p3732/fix-include 2024-04-13 14:17:54 UTC
media add missing optional gstreamer include

Author: Peter Eisenmann
Author Date: 2024-04-13 14:13:49 UTC

media add missing optional gstreamer include

fix-build-deps2 2024-04-11 17:01:50 UTC
Try again to fix build deps

Author: Matthias Clasen
Author Date: 2024-04-11 13:55:24 UTC

Try again to fix build deps

This is more of a shot in the dark. Trying to fix #6618.

offload-lightbox 2024-04-09 22:05:49 UTC
wip: Add lightboxes to graphics offload

Author: Matthias Clasen
Author Date: 2024-04-09 21:13:42 UTC

wip: Add lightboxes to graphics offload

Add GTK_GRAHPICS_OFFLOAD_ENABLED_WITH_LIGHTBOX, and pass that
on to the subsurface.

x11-shadow-change 2024-04-08 12:38:29 UTC
x11: Update shadow width capability

Author: Matthias Clasen
Author Date: 2024-04-08 12:37:20 UTC

x11: Update shadow width capability

When the window manager changes, we have to update this, otherwise
we might end up stuck with no shadows.

Fixes: #6558

wip-dmabuf-rotate 2024-04-08 10:35:06 UTC
wip: Play with rotations

Author: Matthias Clasen
Author Date: 2024-04-07 19:24:28 UTC

wip: Play with rotations

Experiments with rotations for offloaded dmabufs.

The way this currently works is by analyzing transforms
between the subsurface node and the texture node.

There is a table that maps the 2D transform components of
the accumulated transform to the texture transform enum that
needs completing.

wip/jamie/xdg-decoration 2024-04-04 06:58:20 UTC
wayland: Update to xdg-decoration protocol

Author: Jamie Murphy
Author Date: 2023-09-04 22:19:40 UTC

wayland: Update to xdg-decoration protocol

Currently gtk uses the out of date and non-standardized
server-decoration protocol from KDE. This commit replaces the
implementation of this old server-decoration protocol with an
implementation of the xdg-decoration protocol standardized in the
wayland-protocols repository.

Co-authored-by: Lleyton Gray <lleyton@fyralabs.com>

wip/jamie/text-length 2024-04-04 06:39:31 UTC
entry: Update text-length as length changes

Author: Jamie Murphy
Author Date: 2023-10-04 00:40:56 UTC

entry: Update text-length as length changes

Initially, there was nothing connecting the actual text-length from the
EntryBuffer to the exposed `GtkEntry:text-length` property. It would
only be updated when the property is used. This adds a handler for
`notify::length` on the buffer to make sure the `text-length` property
updates accordingly.

wip/antoniof/listbase-initial-cursor-move 2024-03-31 23:11:38 UTC
listbase: Select focus before moving cursor

Author: =?utf-8?q?Ant=C3=B3nio_Fernandes?=
Author Date: 2023-12-11 22:54:11 UTC

listbase: Select focus before moving cursor

We have built-in keybindings for cursor arrow keys. They move the focus
in the pointed direction and may also select the new focus child.

However, some views allow selection but start with no item selected;
such is the case of nautilus, and 'colors' in GTK Demo. In these views,
pressing an arrow key to initiate the cursor actually moves it to the
next position instead of the first position.

At best, this means we need to take an a extra step to move the cursor
into the first position. At worst, if there is only one child, the
cursor arrow keys don't work at all and the only way to reach the child
is with the Tab key or a pointer.

Instead, let's select the focus item if unselected but selectable. This
was the behavior of GtkTreeView in such cases, which can be tested in
GTK Demo -> Tree View -> Tree Store.

Fixes https://gitlab.gnome.org/GNOME/nautilus/-/issues/2618 and https://gitlab.gnome.org/GNOME/nautilus/-/issues/3078

dnd-no-drop-icon 2024-03-31 09:10:45 UTC
dnd: Style no-drop icons differently

Author: Matthias Clasen
Author Date: 2024-03-31 09:09:00 UTC

dnd: Style no-drop icons differently

Add a .no-drop style class to drag icons if there is no selected
action, and style the icon to be translucent in that case, to
indicate 'no drop'.

Related: #6337

malloc-trim 2024-03-27 13:15:20 UTC
Call malloc_trim after loading images

Author: Matthias Clasen
Author Date: 2024-03-23 01:08:19 UTC

Call malloc_trim after loading images

Not sure this is the best place to do it, but at least it is one
place where we tend to do large, temporary allocations.

cursor-from-paintable 2024-03-20 22:38:21 UTC
wip: Dynamic cursor api

Author: Matthias Clasen
Author Date: 2024-03-20 22:38:21 UTC

wip: Dynamic cursor api

wayland-pointer-viewporter 2024-03-19 16:58:41 UTC
wayland: Use a viewport for pointer surfaces

Author: Matthias Clasen
Author Date: 2024-03-19 16:58:41 UTC

wayland: Use a viewport for pointer surfaces

This should give us more flexibility for buffer size vs surface
size. Unfortunately, mutter doesn't play along.

wip/chergert/double-text-view 2024-03-18 19:23:14 UTC
fix demos

Author: Christian Hergert
Author Date: 2023-02-08 00:14:18 UTC

fix demos

ci-rebuild-image 2024-03-15 04:38:12 UTC
ci: Set some ubsan options

Author: Matthias Clasen
Author Date: 2024-03-15 04:38:12 UTC

ci: Set some ubsan options

Hopefully, this makes the build survive.

gpu-desc-nonobject 2024-03-14 01:10:16 UTC
gpu: Make GskGpuDescriptors non-objects

Author: Matthias Clasen
Author Date: 2024-01-21 03:41:36 UTC

gpu: Make GskGpuDescriptors non-objects

This is a bit involved, since we have to deal with subclassing
here, but in the end it works out ok. And it make g_object_ref
and g_object_unref disappear from the profiles.

wip/chergert/gpu-second-gl-frame 2024-03-13 20:04:03 UTC
gsk/gpu: use glMapBufferRange()

Author: Christian Hergert
Author Date: 2024-03-13 20:04:03 UTC

gsk/gpu: use glMapBufferRange()

This is just a dummy commit for testing the branch.

gpu-2d-types2 2024-03-13 03:31:57 UTC
gsk: Start using 2d types

Author: Matthias Clasen
Author Date: 2024-03-13 03:15:05 UTC

gsk: Start using 2d types

inline-vec2-things 2024-03-13 02:08:28 UTC
gsk: Add some inline vec2 apis

Author: Matthias Clasen
Author Date: 2024-03-12 23:42:56 UTC

gsk: Add some inline vec2 apis

The gpu renderers are using a vec2 for their scale, and frequently
need to access the components. Avoid PLT overhead for this.

gsk-profiler-cleanup 2024-03-12 23:20:16 UTC
Use glMapBufferRange instead of glMapBuffer

Author: Matthias Clasen
Author Date: 2024-03-12 23:20:16 UTC

Use glMapBufferRange instead of glMapBuffer

glMapBufferRange has the advantage that it is available in GLES.
And the extra fun factor that it uses different flags.

text-node-hinting 2024-03-12 21:50:34 UTC
gsk: Use gsk_text_node_use_font_hinting

Author: Matthias Clasen
Author Date: 2024-03-12 21:49:56 UTC

gsk: Use gsk_text_node_use_font_hinting

The render node now provides this information, so we don't need
to recompute it ourselves.

wip/chergert/testing 2024-03-12 21:09:38 UTC
Merge remote-tracking branch 'origin/gsk-profiler-cleanup'

Author: Christian Hergert
Author Date: 2024-03-12 21:09:38 UTC

Merge remote-tracking branch 'origin/gsk-profiler-cleanup'

wip/chergert/perf-things 2024-03-12 04:05:12 UTC
gtk/textview: defer GtkTextLineDisplay finalization

Author: Christian Hergert
Author Date: 2024-03-12 04:05:12 UTC

gtk/textview: defer GtkTextLineDisplay finalization

Defer the finalization of our GtkTextLineDisplay until we've completed
processing the current frame. Otherwise we risk doing additional work that
could cause us to miss our frame deadline.

wip/chergert/glyph_node 2024-03-12 02:50:10 UTC
blah

Author: Christian Hergert
Author Date: 2024-03-12 02:50:10 UTC

blah

fix-hole-punching 2024-03-10 23:58:19 UTC
offload: Fix handling of clips

Author: Matthias Clasen
Author Date: 2024-03-10 23:54:08 UTC

offload: Fix handling of clips

When we are inside a non-representable clip, we can't offload. The
reason for this is that the renderer will offscreen due to that
clip, and then the hole we need to punch will end up in the offscreen
and not in the main surface where we need it.

Fixes: #6499

wip/nodeparser-pango-1.52 2024-03-10 01:04:02 UTC
nodeparser: Adjust test for pango 1.52.0

Author: Jeremy Bícha
Author Date: 2024-03-10 01:04:02 UTC

nodeparser: Adjust test for pango 1.52.0

Adjust test result for changed output resulting from
https://gitlab.gnome.org/GNOME/pango/-/commit/d489fc8c4

underline-trick-hacked-together 2024-03-05 14:15:39 UTC
gsk: Implement the 'underline trick'

Author: Matthias Clasen
Author Date: 2024-03-05 14:12:09 UTC

gsk: Implement the 'underline trick'

Add an optimization that turns color ops into colorize ops when
the previous op was colorize as well. This is beneficial when we
have a mix of text and color nodes (such as underlined text, or
text with background color).

glyph-cache-split 2024-02-25 23:26:00 UTC
gsk: Maintain clip info for glyph nodes

Author: Matthias Clasen
Author Date: 2024-02-25 23:05:21 UTC

gsk: Maintain clip info for glyph nodes

We can determine once whether we are contained, instead of doing
it again for every glyph.

The performance impact of this is hard to measure.

unhinted-text-extents 2024-02-22 02:11:36 UTC
gsk: Use scaled font for glyph rendering

Author: Matthias Clasen
Author Date: 2024-02-22 02:09:59 UTC

gsk: Use scaled font for glyph rendering

This changes the approach we take to rendering glyphs in the
presence of a scale transform: Instead of scaling the extents
and rendering to an image surface with device scale, simply
create a scaled font and use it for extents and rendering.

ebassi/issue-6463 2024-02-21 09:27:42 UTC
Return empty string with an empty selection

Author: Emmanuele Bassi
Author Date: 2024-02-21 09:27:42 UTC

Return empty string with an empty selection

The precondition check for gtk_editable_get_chars() introduced in commit
849e3403 means that passing a selection of zero length now returns NULL,
instead of returning an empty string.

If the selection of the file chooser entry has a length of zero
characters we should return an empty string without going through
gtk_editable_get_chars().

Fixes: #6463

better-ink-rects 2024-02-18 03:24:00 UTC
Better ink rects

Author: Matthias Clasen
Author Date: 2024-02-18 03:22:55 UTC

Better ink rects

fix-subpixel-positions 2024-02-17 21:58:20 UTC
gsk: Fix ink leakage in node diffing

Author: Matthias Clasen
Author Date: 2024-02-17 21:50:09 UTC

gsk: Fix ink leakage in node diffing

We do need to enlarge the node bounds for text nodes after all,
to prevent leaking ink, in particular with fractional scaling.

This reverts 24de5ffd4eac7f3de4234.

glyph-clipping-debug 2024-02-17 13:24:55 UTC
Hack: glyph cache debugging

Author: Matthias Clasen
Author Date: 2024-02-17 12:47:41 UTC

Hack: glyph cache debugging

Color the padding in the cache, and warn if glyphs extrude into it.

docs-gtk-org 2024-02-15 18:10:36 UTC
Merge branch 'glib-platform-specific-docs' into 'docs-gtk-org'

Author: Emmanuele Bassi
Author Date: 2024-02-15 18:10:36 UTC

Merge branch 'glib-platform-specific-docs' into 'docs-gtk-org'

build: Download and build platform-specific GLib docs

See merge request GNOME/gtk!6850

back-to-gl 2024-02-10 19:49:58 UTC
Revert "gsk: Change the default renderer"

Author: Matthias Clasen
Author Date: 2024-02-10 19:46:58 UTC

Revert "gsk: Change the default renderer"

This reverts commit 98e3fca28483a314c4cbadcebfb7346ec46efdbe.

We got sufficient testing to determine that the new renderers
need more time to mature.

As somebody said, "this shit is hard."

dmabuf-wayland-2 2024-02-09 16:58:44 UTC
fixup! Be more careful in subsurfaces

Author: Matthias Clasen
Author Date: 2024-02-09 16:58:44 UTC

fixup! Be more careful in subsurfaces

wip/chergert/set-default-size-after-drag-resize 2024-02-02 23:14:31 UTC
gdk/wayland: fix gtk_window_set_default_size() after resize

Author: Christian Hergert
Author Date: 2024-02-02 23:14:31 UTC

gdk/wayland: fix gtk_window_set_default_size() after resize

This fixes Prompt/gnome-terminal to be able to properly resize a window
after a user has dragged to resize the window.

This applies !is_resizing to size_is_fixed instead of fixed_size to avoid
changing the branches leading to the code.

font-options-crackdown 2024-02-01 02:20:56 UTC
Change the way we handle hint-metrics

Author: Matthias Clasen
Author Date: 2024-01-30 16:08:43 UTC

Change the way we handle hint-metrics

Be a bit more systematic about sanitizing the font options
to values we know we can work with.

dang-clipping 2024-01-31 10:48:06 UTC
dang clipping

Author: Matthias Clasen
Author Date: 2024-01-31 10:39:49 UTC

dang clipping

font-options 2024-01-29 23:29:35 UTC
Add some more text rendering tests

Author: Matthias Clasen
Author Date: 2024-01-29 23:28:50 UTC

Add some more text rendering tests

wip/antoniof/further-listitemmanager-fixes 2024-01-26 16:30:08 UTC
listitemmanager: Really remove section boundary on insert

Author: =?utf-8?q?Ant=C3=B3nio_Fernandes?=
Author Date: 2024-01-26 00:52:59 UTC

listitemmanager: Really remove section boundary on insert

Complete the fix introduced by b05000d8bdbe40771b59edd793574263ef6cb60f

It was made to handle the case of inserting at a tracked position which
lies immediately after the a section boundary, of this kind:

  ][

where ']' and '[' are matched FOOTER and HEADER, as in the testsuite.

But it doesn't handle the other 2 cases:

  ](
  )[

where ')' is UNMATCHED_FOOTER and '(' is UNMATCHED_HEADER. Indeed, I
got testsuite/gtk/listitemmanager to crash on these 2 scenarios.

Note: the ')(' case doesn't exist because, at rest, there are no
boundary tiles (and no header widget) between untracked sections.

So, generalize the previous fix and add comments to make it easier
to understand the logic.

wip/kabus/rubberband-single-focus 2024-01-26 10:48:15 UTC
listbase: Focus single item selection after rubberband

Author: Khalid Abu Shawarib
Author Date: 2024-01-26 09:24:22 UTC

listbase: Focus single item selection after rubberband

favicons 2024-01-25 16:06:24 UTC
docs: Add favicons

Author: Maximiliano Sandoval
Author Date: 2024-01-14 16:23:37 UTC

docs: Add favicons

Requires gi-docgen main.

gpu-2d-types 2024-01-25 03:01:28 UTC
Add an simd implementation

Author: Matthias Clasen
Author Date: 2024-01-24 23:28:32 UTC

Add an simd implementation

This is strongly based on graphenes simd plumbing.
All three types get represented as graphene_simf4d_t,
scale as {x,y,0,0}, point as {x,y,0,0} and box as
{x0,y0,x1,y1}.

extend-debug-vars 2024-01-23 02:08:46 UTC
Extend debug var support

Author: Matthias Clasen
Author Date: 2024-01-23 01:33:39 UTC

Extend debug var support

Make our debug variable parser handle key=value strings, provided
that a callback is provided for the key. This may be used in the
future to accept settings like

GDK_DEBUG=vsync=144fps

gpu-drop-vec2 2024-01-22 02:25:24 UTC
Add a GskPoint type and use it for offsets

Author: Matthias Clasen
Author Date: 2024-01-22 02:19:56 UTC

Add a GskPoint type and use it for offsets

This has a tremendous ripple effect and is kind of disastrous.

front-cache 2024-01-20 16:19:23 UTC
gpu: Add a front cache

Author: Matthias Clasen
Author Date: 2024-01-20 15:59:08 UTC

gpu: Add a front cache

This copies the approach taken in the gl renderer to avoid much
of the hash table lookup overhead by means of a front cache.

dnd-cursor-names 2024-01-17 01:52:03 UTC
Shrink the repeat-repeats tests

Author: Matthias Clasen
Author Date: 2024-01-17 01:52:03 UTC

Shrink the repeat-repeats tests

This was triggering timeouts in ci.

ebassi/slow-suite 2024-01-16 18:33:40 UTC
tests: Change test timeout for GDK

Author: Emmanuele Bassi
Author Date: 2024-01-16 18:31:39 UTC

tests: Change test timeout for GDK

We use the same approach as the GTK testsuite:

- default timeout of 60 seconds
- timeout of 90 seconds if a test is inside the 'slow' suite

matthiasc/flatpak-shaderc 2024-01-14 14:38:47 UTC
wip: Add spirv dependencies for shaderc

Author: Matthias Clasen
Author Date: 2024-01-14 14:38:47 UTC

wip: Add spirv dependencies for shaderc

This doesn't build, because spirv-tools wants the source location
for spirv-headers. Roll eyes

ebassi/flatpak-shaderc 2024-01-12 23:19:10 UTC
Snapshot/WIP: Add shaderc to the manifest

Author: Emmanuele Bassi
Author Date: 2024-01-12 23:19:10 UTC

Snapshot/WIP: Add shaderc to the manifest

gpu-text-robustness 2024-01-11 19:54:34 UTC
gsk: Give up on text nodes with unuploadable glyphs

Author: Matthias Clasen
Author Date: 2024-01-11 03:45:05 UTC

gsk: Give up on text nodes with unuploadable glyphs

If we can't upload the glyphs, just give up and use fallback.

gpu-fix-possible-leak 2024-01-11 11:23:10 UTC
gpu: Handle image creation failure for cairo ops

Author: Matthias Clasen
Author Date: 2024-01-11 04:31:50 UTC

gpu: Handle image creation failure for cairo ops

Handle this like we do for textures: If we can't create the
image, just return NULL, and don't leak.

gpu-fix-large-scale-text 2024-01-09 02:48:59 UTC
gpu: Fix text clipping issues with large scales

Author: Matthias Clasen
Author Date: 2024-01-09 02:48:07 UTC

gpu: Fix text clipping issues with large scales

This was observed in #6313.

deprecate-cairo-nodes 2024-01-08 02:26:09 UTC
gsk: Deprecate cairo render nodes

Author: Matthias Clasen
Author Date: 2024-01-08 01:22:19 UTC

gsk: Deprecate cairo render nodes

This is part of the ongoing preparation for shedding cairo in our
apis in the next major version of GTK.

wip/matthiasc/gpu 2024-01-06 01:54:14 UTC
inspector: Update the logging tab

Author: Matthias Clasen
Author Date: 2024-01-06 01:54:14 UTC

inspector: Update the logging tab

Make the logging-related checkboxes match the flags we have.

testsuite-renovations 2023-12-21 13:27:12 UTC
Rewrite compare-render test

Author: Matthias Clasen
Author Date: 2023-12-21 13:25:54 UTC

Rewrite compare-render test

Rewrite this to use TAP and do a single invocation for a whole
directory of files.

This uncovers that the GL renderer is mishandling transforms with
offscreens. There is also some randomness in the failures with the
GL renderer that I have yet to track down.

BUG_gtk3_containers_scroll_precedence 2023-12-20 22:00:40 UTC
scrolling a container should not scroll child widgets

Author: Nelson Benitez
Author Date: 2022-01-19 19:33:03 UTC

scrolling a container should not scroll child widgets

Containers that can be scrolled should have precedence
over child widgets that also react to scrolling
like GtkComboBox, GtkScale and GtkSpinButton,
because otherwise when you're in the middle of
scrolling the view/window you can involuntarily
scroll over the widgets and change its values.

This problem can be seen in applications like
pavucontrol, gnome-tweaks prefs, devhelp prefs,
and so on.

Fixes issue #3092

glib-gi-docgen 2023-12-17 13:21:13 UTC
Use glib's gi-docgen documentation

Author: Maximiliano Sandoval
Author Date: 2023-12-17 13:15:44 UTC

Use glib's gi-docgen documentation

The commit chosen is just the current HEAD, there is no release with the
port to gi-docgen.

wip/antoniof/fix-focus-within-check 2023-12-16 11:02:55 UTC
listbase: Allow scroll_to() to grab focus on inactive windows

Author: =?utf-8?q?Ant=C3=B3nio_Fernandes?=
Author Date: 2023-12-15 09:55:56 UTC

listbase: Allow scroll_to() to grab focus on inactive windows

`gtk_[grid,column]_view_scroll_to()` does 2 things when asked to focus:
1. it sets the focus item tracker to point to the requested position.
2. then it grabs focus on the item widget if focus is within the view.

However, the way it checks whether focus is within the view is faulty.
The FOCUS_WITHIN flag is set only if the global input focus is within.
But what we want to know here is whether the GtkRoot:focus widget is
within, regardless of the window being active or not, otherwise we
are not holding to our documented promise:

> This function works no matter if the listview is shown or focused.
> If it isn’t, then the changes will take effect once that happens.

If the containing window doesn't is inactive, setting the focus item
tracker without grabbing focus is useless, because, once a the window
becomes active, it resets the focus states all the way up from the
`GtkRoot:focus` widget. But `GtkRoot:focus` was not changed because
we didn't grab focus, so, if it is another item widget than the one
requested, then even the focus item tracker resets to the original
focus, as a side effect of .set_focus_child()

Therefore, even if the window is inactive, we should grab focus if
the `GtkRoot:focus` is within the view.

Fixes https://gitlab.gnome.org/GNOME/gtk/-/issues/6266

dmabuf-y-invert 2023-12-09 04:34:44 UTC
dmabuf:Support upside-down dmabufs

Author: Matthias Clasen
Author Date: 2023-12-09 04:23:07 UTC

dmabuf:Support upside-down dmabufs

Add a y-invert flag to GdkDmabufTextureBuilder, and handle it
when passing dmabufs to the compositor, when downloading them,
and when using them in GL.

Fixes: #6258

wip/smcv/endian 2023-12-08 17:30:04 UTC
gsk: Always use RGBA on big-endian architectures

Author: Simon McVittie
Author Date: 2023-12-08 16:42:56 UTC

gsk: Always use RGBA on big-endian architectures

The memorytexture test started failing on big-endian CPUs while using
"desktop" GL (not GLES) in commit b0e26873 "gsk: Use has_bgra in more
places". The subsequent commit f5812808 "gsk: Restore bigendian support"
was meant to fix this, but it seems it did not.

Always taking the RGBA code-path on big-endian might not be optimal,
but it seems to result in the test passing again.

Signed-off-by: Simon McVittie <smcv@debian.org>
Resolves: https://gitlab.gnome.org/GNOME/gtk/-/issues/6260

gtk-4-10 2023-11-27 16:11:08 UTC
Update Russian translation

Author: Artur S0
Author Date: 2023-11-27 16:11:08 UTC

Update Russian translation

fix_gdesktopappinfo_header 2023-11-12 21:46:27 UTC
fix detection of gio/gdesktopappinfo.h

Author: Nelson Benitez
Author Date: 2023-11-12 21:45:18 UTC

fix detection of gio/gdesktopappinfo.h

Header file gio/gdesktopappinfo.h is currently never found
by Meson because it's inside gio-unix-2.0 directory.

This bug was introduced by commit 13b94dab10e which
fixed the build for MacOS but caused the header file
to not be detected by Linux anymore.

One possible fix would be to replace 'gio/gdesktopappinfo.h'
with 'gio-unix-2.0/gio/gdesktopappinfo.h', but as it's a
unix only header we move the check to an appropiate place
where other unix specific handling is done.

subsurface-api 2023-10-29 02:22:45 UTC
testsubsurface: Add dmabuf support

Author: Matthias Clasen
Author Date: 2023-10-29 01:41:37 UTC

testsubsurface: Add dmabuf support

dmabuf-format-priorities 2023-10-25 21:10:40 UTC
Fix up downloader selection

Author: Matthias Clasen
Author Date: 2023-10-25 20:32:40 UTC

Fix up downloader selection

The mmap downloader is now added last, so we checking the downlaoders
list in order no longer prefers the mmap downloader. To fix that, just
select it explicitly if the format is linear.

dmabuf-debug 2023-10-22 00:29:47 UTC
dmabuf: Some debugging infrastructure

Author: Matthias Clasen
Author Date: 2023-10-22 00:29:47 UTC

dmabuf: Some debugging infrastructure

Add some helpers to print dmabuf formats.

dmabug-texture-external 2023-10-21 13:04:00 UTC
Switch the shader to version 300

Author: Matthias Clasen
Author Date: 2023-10-21 11:51:30 UTC

Switch the shader to version 300

Still works!

1100 of 1170 results
This repository contains Public information 
Everyone can see this information.

Subscribers