XIO

xWire

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

gtk activity

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.

Adrian Vovk commented on issue #8489 at GNOME / gtk

Yeah not much can be done here. If you're gonna use GtkApplication you should let GtkApplication call gtk_init for you, otherwise yeah there's gonna be issues. The portal can't really change... it was designed the way it was for good reason. However, with appd things will be slightly different for these broken apps, because at least the app will very likely already be registered with the portal (with an app id derived from the .desktop file, or the systemd unit, or via Flatpak, etc). A call to…

Benjamin Otte opened merge request !10541: API: Add gtk_snapshot_set_optimization() at GNOME / gtk

Here's my attempt at a snapshot optimization API. I've now decided to model it somewhat closely to gcc -Ox because that's hopefully something that people can understand. I ultimately decided against a boolean and for an enum because it felt like on/off was too restricting, even though I don't have a strong usecase for all the flags I added yet.

Charles opened merge request !10540: text, textview: Reset the im context on any text change at GNOME / gtk

Follow-up to !10515 (merged). #8477 got closed by it, but the reset only sits in gtk_text_set_text(), i.e. the text property. Still missing: gtk_editable_set_text(). It deletes and inserts directly, never hits gtk_text_set_text(). App-side insert/delete. GtkTextView. Repro: focused GtkEntry, IBus on GNOME, WAYLAND_DEBUG=client, app calls gtk_editable_set_text (editable, ""). No set_surrounding_text is sent. The next activation hands the input method the old text. This resets from the buffer…

Charles opened issue #8477: Wayland: input method keeps the old surrounding text after gtk_editable_set_text at GNOME / gtk

When an application changes the text of a focused GtkText or GtkTextView, the text-input-v3 module does not send the new surrounding text. The compositor keeps the old one and hands it to the input method on its next activation. Steps: WAYLAND_DEBUG=client on any GTK 4 app with an entry, under GNOME with IBus. Type or commit "Hello." through the input method. GTK sends set_surrounding_text("Hello.", 6, 6). Clear the entry from the application: gtk_editable_set_text (entry, ""). Nothing is sent.…

Luca Bacci approved merge request !10481: Wintab: Make Wintab input work again, and report pens as device tools at GNOME / gtk

Fixes #6719 tl;dr Wintab input has not worked in any release since 4.18: a preprocessor slip makes every GetProcAddress() lookup fail, so GDK silently gives up on Wintab. Before that, since 4.0, pen input crashed GTK (#6719, a double unref). Once it runs, GtkGestureStylus ignores every Wintab event, as they have no GdkDeviceTool, and the pens are missing from the seat. 8 commits: the two crash/startup fixes first (small, suitable for stable branches), then the device fixes, tool support and the…

megatz closed merge request !10539: Fix position of child tooltips in custom windows at GNOME / gtk

Unlike a GTK_TOPLEVEL_WINDOW, a custom toplevel window derived from GtkWindow can have non-zero x/y allocations (like a panel at the bottom of the screen). Since the allocation of such a toplevel window is relative to the screen origin, the position of the child must also be relative to the screen origin so that we get the correct coordinates relative to each other. Part-of: !8216 (merged)

megatz opened merge request !10539: Fix position of child tooltips in custom windows at GNOME / gtk

Unlike a GTK_TOPLEVEL_WINDOW, a custom toplevel window derived from GtkWindow can have non-zero x/y allocations (like a panel at the bottom of the screen). Since the allocation of such a toplevel window is relative to the screen origin, the position of the child must also be relative to the screen origin so that we get the correct coordinates relative to each other. Part-of: !8216 (merged)

Benjamin Otte commented on issue #8482 at GNOME / gtk

To clarify: This is meant as a factual statement describing why things are currently behaving that way. It was not meant as an endorsement of that behavior. I don't have an opinion on how any of this should work. We've had various discussions about if push_opacity() and push_mask() should or should not isolate backgrounds. On the web, I think opacity does isolate backgrounds (I believe the web terminology is "creates a new stacking context") but I'm not sure because I'm not fluent in the…