G
This is a (partial) backport of !7931 (merged) to gtk3 It was obtained with git cherry-pick -Xrename-threshold=20% 8e15dcd5 It fixes clipboard pasting of some color-indexed bitmaps.
G
Marge Bot (634620f4) at 29 Oct 14:25 Merge branch 'pr/backport8e15dcd5' into 'gtk-3-24' ... and 1 more commit
G
The win32 keymap translates a (vk, modifiers, CapsLock) state to a keyval by reading the keyboard layout DLL tables itself. A systematic comparison with ToUnicodeEx() showed several places where it disagreed with Windows. This series fixes them. The comparison (a standalone test, not part of the series) asks both ToUnicodeEx() and gdk_display_translate_key() about every virtual key in every Shift/Ctrl/Alt combination with CapsLock off and on (16 states) on all 218 installed layouts, and sorts…
G
Marge Bot (7bda5c80) at 29 Oct 14:06 Merge branch 'win32-keyboard-layout-names' into 'main' ... and 4 more commits
G
Summary GdkWin32Keymap's per-layout display names, and the way it learns each installed layout's KLID, both treat a Win32 HKL as simpler to decode than it actually is. Three focused commits: Resolve the real per-layout display name (TSF profile -> registry -> locale fallback), cached once per layout instead of recomputed, instead of mis-using the KLID as an LCID. Cache two more descriptive fields (BCP-47 language tag, IME/TSF profile id) and log all of it under the existing GDK_DEBUG=input…
G
Thanks for the quick turnaround on this! Our app loads a lot of user icons via data-urls and each time they reload or open a new game file dozens (or however many icons are in their specific game file) of these textures leak 😅
G
Steps to reproduce Here's a small self contained repro: #include static const char png_base64[] = "iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/" "9hAAAAGUlEQVR4nGP4z8DwnxLMMGrAqAGjBgwXAwAwxP4QHCfkAAAAAABJRU5ErkJggg=="; static guint created, released; static void (*texture_constructed)(GObject *); static void texture_released(gpointer data, GObject *object) { ++released; } static void texture_constructed_override(GObject *object) { texture_constructed(object); ++created; g_object_weak_ref(object,…
G
Fixes #8516 (closed) Using the repro program from the issue before: luna@luna-pc:~/Documents/tmp/gtk$ ./_build/css_leak textures created=200 released=0 luna@luna-pc:~/Documents/tmp/gtk$ ./_build/css_leak direct textures created=200 released=200 after fix: [gtk] luna@luna-pc:~/Documents/tmp/gtk$ ./_build/css_leak textures created=200 released=200 [gtk] luna@luna-pc:~/Documents/tmp/gtk$ ./_build/css_leak direct textures created=200 released=200
G
Marge Bot (74ce9f54) at 29 Oct 13:41 Merge branch 'fix-css-texture-leak' into 'main' ... and 2 more commits
G
Fixes #8516 (closed) Using the repro program from the issue before: luna@luna-pc:~/Documents/tmp/gtk$ ./_build/css_leak textures created=200 released=0 luna@luna-pc:~/Documents/tmp/gtk$ ./_build/css_leak direct textures created=200 released=200 after fix: [gtk] luna@luna-pc:~/Documents/tmp/gtk$ ./_build/css_leak textures created=200 released=200 [gtk] luna@luna-pc:~/Documents/tmp/gtk$ ./_build/css_leak direct textures created=200 released=200
G
Fixes #8516 (closed) Using the repro program from the issue before: luna@luna-pc:~/Documents/tmp/gtk$ ./_build/css_leak textures created=200 released=0 luna@luna-pc:~/Documents/tmp/gtk$ ./_build/css_leak direct textures created=200 released=200 after fix: [gtk] luna@luna-pc:~/Documents/tmp/gtk$ ./_build/css_leak textures created=200 released=200 [gtk] luna@luna-pc:~/Documents/tmp/gtk$ ./_build/css_leak direct textures created=200 released=200
G
Yup! I was just waiting to be able to fork since I just created my account and was getting the fork limit thing since I just added my SSH key, let me try now!
G
I think you are right. Want to send a merge request?
G
Hmm, something goes wrong with the rendering now - making the stroke bounds larger or smaller should not really affect the position of the rendered path, it seems to do so.
G
Steps to reproduce Here's a small self contained repro: #include static const char png_base64[] = "iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/" "9hAAAAGUlEQVR4nGP4z8DwnxLMMGrAqAGjBgwXAwAwxP4QHCfkAAAAAABJRU5ErkJggg=="; static guint created, released; static void (*texture_constructed)(GObject *); static void texture_released(gpointer data, GObject *object) { ++released; } static void texture_constructed_override(GObject *object) { texture_constructed(object); ++created; g_object_weak_ref(object,…
G
Yes, the default is butt, and that is what I see in your node
G
Well, I was a little confused here, but nevertheless, adding overflow="hidden" to the might help.
G
I ran into what looks like the same bug in Gajim (the "Edit Shortcut" dialog in Preferences flickered, gajim#12835) and narrowed it down a bit: The trigger seems to be the window having no border radius, not fullscreen/maximized as such. Gajim's macOS CSS had .csd { border-radius: 0; }, and its windows flickered whenever an AdwAlertDialog opened, also when not maximized. libadwaita sets --window-radius: 0px for .maximized and .fullscreen, which would explain why it only shows up there by…
G
This was fixed from the GTK perspective with !9958 (merged), for free to users of GtkSearchBar even. Anything else left, must be handled in the respective projects by using gtk_editable_set_input_interceptor() on the search entry, in order to intercept input automatically from a toplevel or parent container.
G
Benjamin Otte (d8a357ab) at 25 Oct 06:50 rendernode-tool: Improve error messages ... and 4 more commits
G
Add an option to make simplify operate on all the nodes in the stack, in addition to the directly passed node. The simplified results are put back on the stack, in the same order.
G
This code mainly just moves code from gtk-rendernode-tool.c into rntcontext.c and gives it a proper API. It also vfunc-ifies the print functions so that we can capture the output. The goal is of course to be able to use the tool in other places (like the testsuite or the inspector) where we need some tighter control over things.
G
Benjamin Otte (c49ffc89) at 25 Oct 05:24 rendernode-tool: Improve error messages ... and 8 more commits
G
This branch couldn't be merged: CI failed! See pipeline https://gitlab.gnome.org/GNOME/gtk/-/pipelines/1133659.
G
Best to put this code in a central place. Also add a test.
G
Marge Bot (c706c00e) at 25 Oct 03:51 Merge branch 'for-main' into 'main' ... and 2 more commits
G
This reverts commit 87383719. The required pango change has landed in the gnome os image.
G
Best to put this code in a central place. Also add a test.
G
I suspect it's maybe_rerender_style_sheet() in gtk/gtkcssprovider.c: it calls gtk_css_provider_reset(), which unregisters the theme's gtk.gresource, then re-parses the CSS, so the resource:// import fails. Keeping priv->resource and priv->path across the reset might fix it (untested): GResource *resource = g_steal_pointer (&priv->resource); char *path = g_steal_pointer (&priv->path); gtk_css_provider_reset (css_provider); /* ... */ priv->resource = resource; priv->path = path;