G
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…
G
Benjamin Otte (cdceb630) at 20 Oct 21:16 API: Add gtk_snapshot_set_optimization()
G
No, I meant pop(). Lemme fix that.
G
Optimization changes when I call gtk_snapshot_save() ? Is that the expected behavior ?
G
Benjamin Otte (e7846102) at 20 Oct 20:42 API: Add gtk_snapshot_set_optimization()
G
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.
G
Benjamin Otte (734808ac) at 20 Oct 20:37 API: Add gtk_snapshot_set_optimization()
G
Benjamin Otte (76c7fb25) at 20 Oct 20:35 API: Add gtk_snapshot_set_optimization()
G
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…
G
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.…
G
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…
G
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)
G
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)
G
I found and bothered Thomas Jaeger on IRC to fix a VERY similar bug in gtk2 for XInput in 2009 :D bit of a blast from the past to find myself poking about tablet related code in GTK again after 17 years :D
G
@lb90 Amended as requested. Id appreciate a look at the gtk3 fixes in !10480 too... Its a bit annoying to keep patching the DLL after updating GIMP... :]
G
CSS classes aren't meant as a workaround for stuff that doesn't work properly.
G
What would also work is doing a CSS reveal transition instead of using the revealer's transition,but I have no idea how such a transition would be triggered. By adding a class?
G
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…
G
This branch couldn't be merged: CI failed! See pipeline https://gitlab.gnome.org/GNOME/gtk/-/pipelines/1130894.
G
GtkRevealer's fade animation uses gtk_snapshot_push_opacity() which isolates the background, so any content below the revealer will not be available for the backdrop-filter of the child.
G
This branch couldn't be merged: CI failed! See pipeline https://gitlab.gnome.org/GNOME/gtk/-/pipelines/1128352.
G
Apologies for the delay, but it was scaled at 1.5x (150). Thanks for getting back to me :)
G
See !10519 for a similar approach to color-matrix nodes.
G
This moves color-matrix optimization code from GtkSvg to GSK.
G
Steps to reproduce gsettings reset org.gtk.Settings.FileChooser show-hidden gsettings reset org.gtk.gtk4.Settings.FileChooser show-hidden gsettings get org.gtk.Settings.FileChooser show-hidden gsettings get org.gtk.gtk4.Settings.FileChooser show-hidden # false / false sudo tee /usr/share/glib-2.0/schemas/zzz_custom_defaults.gschema.override > /dev/null << 'EOF' [org.gtk.Settings.FileChooser] show-hidden=true [org.gtk.gtk4.Settings.FileChooser] show-hidden=true EOF sudo glib-compile-schemas…
G
I could reproduce this in Ubuntu MATE 24.04. But I just tried it in Ubuntu 26.04 VM and it seems like it has been fixed: gsettings reset org.gtk.Settings.FileChooser show-hidden gsettings reset org.gtk.gtk4.Settings.FileChooser show-hidden gsettings get org.gtk.Settings.FileChooser show-hidden gsettings get org.gtk.gtk4.Settings.FileChooser show-hidden # false / false sudo tee /usr/share/glib-2.0/schemas/zzz_custom_defaults.gschema.override > /dev/null << 'EOF' [org.gtk.Settings.FileChooser]…
G
Obviously ai written. Please see and follow https://gitlab.gnome.org/GNOME/gtk/-/blob/main/CONTRIBUTING.md#ai-contribution-policy
G
Steps to reproduce gsettings reset org.gtk.Settings.FileChooser show-hidden gsettings reset org.gtk.gtk4.Settings.FileChooser show-hidden gsettings get org.gtk.Settings.FileChooser show-hidden gsettings get org.gtk.gtk4.Settings.FileChooser show-hidden # false / false sudo tee /usr/share/glib-2.0/schemas/zzz_custom_defaults.gschema.override > /dev/null << 'EOF' [org.gtk.Settings.FileChooser] show-hidden=true [org.gtk.gtk4.Settings.FileChooser] show-hidden=true EOF sudo glib-compile-schemas…
G
Marge Bot (c18dbd22) at 16 Oct 20:15 Merge branch 'set-text-reset' into 'main' ... and 3 more commits