XIO

xWire

Posts from every feed QUEST has found across the web — blogs, news, podcasts, channels and more.

gtk activity

Luca Bacci approved merge request !10554: win32: Make the keymap follow the layout tables like Windows does at GNOME / gtk

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…

Marge Bot accepted merge request !10534: win32: real per-layout display names, cached metadata, activation-free KLID decode at GNOME / gtk

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…

Marge Bot closed issue #8516: GTK Leaks image textures when they are loaded as data-urls at GNOME / gtk

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,…

Marge Bot accepted merge request !10597: css: fix data-image resource leak on textures at GNOME / gtk

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

Matthias Clasen approved merge request !10597: css: fix data-image resource leak on textures at GNOME / gtk

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

Luna opened merge request !10597: css: fix data-image resource leak on textures at GNOME / gtk

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

Luna opened issue #8516: GTK Leaks image textures when they are loaded as data-urls at GNOME / gtk

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,…

João Sacramento commented on issue #8416 at GNOME / gtk

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…

yodel50 commented on issue #8499 at GNOME / gtk

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;