XIO

xWire

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

gtk activity

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;

yodel50 opened issue #8499: Theme reload on color-scheme change fails to import CSS, windows become transparent at GNOME / gtk

Steps to reproduce Ubuntu 26.04, gtk-theme Yaru-sage (its gtk-4.0/gtk.css points to the theme's gtk.gresource) Run any plain GTK4 app gsettings set org.gnome.desktop.interface color-scheme prefer-dark (or default) Current behavior Color-scheme change logs: Theme parser error: gtk.css:1:1-68: Failed to import: The resource at “/com/ubuntu/themes/Yaru-sage/4.0/gtk.css” does not exist (or gtk-dark.css for apps preferring dark). The CSS doesn't get applied and windows render with no…

Christian Hergert commented on merge request !10394 at GNOME / gtk

I think the objection has to do with expectations widgets are written with for state propagation. For example: hover the checkbox indicator move to the label indicator is no longer highlighted but the button remains hovered Probably from widgets relying on state-flags-changed a bit more than they should. Perhaps on one side, we should fix the widgets too, but that may end up having to be handled at the same time.