After some searching I realized that the warning occurs when I try to update something that isn’t there as an object but could not dig any further. Do you guys have any idea how I might resolve or get over this warning ? Do you see something wrong with the above implementation or it’s my Gtk and GtkSource setup ?
If it doesn’t help, can you give us the exact versions of the gtk and gtksourceview you’re using?
(the latest stable ones should be gtk-4.12.5 and gtksourceview-5.10)
Hello… we are working on a major GTK4 application that uses GtkSourceView 5.0 as well and we are experiencing this same error message when we do the following.
I am VERY interested on picking up any fix to this issue and will rebuild GtkSourceView once the fix is available. Thanks.
I have a text file that I paste a few hundred lines of text into. Whenever I do this for the first time in an instance of using Editor, I get the following warning:
*(Editor:287205): Gtk-WARNING *: 15:45:16.432: Trying to snapshot GtkGizmo 0x25f2940 without a current allocation
When I paste the same text again, the warning doesn’t appear right away. I’ll get the warning again eventually as I paste more text though. For example, I might get the warning at 100 lines of text, then 10,000, then 100,000.
this has nothing to do with gtksourceview. It’s on gtk4 side, when a content becomes scrollable (like after pasting a big text) the vertical scrollbar activates and emits this warning on 1st appearance.
it’s just a warning, nothing broken (although could be improved), can be safely ignored.