GNOME Bugzilla – Bug 638880
Need a setter for has_user_ref_count
Last modified: 2011-02-11 07:06:25 UTC
In GTK 2.x we could set a bit in the GtkWindow struct to indicate that we had taken ownership of GTK's Ref to a toplevel, gboolean has_user_ref_count. My understanding is that this field is for memory-managed language bindings, java-gnome uses this based on guidance from Owen; see the comment at the top of http://research.operationaldynamics.com/bzr/java-gnome/mainline/src/bindings/org/gnome/gtk/GtkWindowOverride.c It would seem that in a post-GSEAL world, we'll need a public setter to change this field. gtk_window_set_has_user_ref_count(), I guess? Seems a shame to even expose this, but if we don't then please advise how we change the language bindings... otherwise this will be "blocker" for us soon. Thanks, AfC
ugh, looks like we need a setter then, with heavy "don't use this unless you are AfC" warnings in the docs.
Sorry, not trying to be difficult. I did hear someone else mention this on IRC, so at least one other language binding is using this. But the fact that *everyone* isn't using this does make me wonder, still, whether there a different way you'd prefer us to handle this {shrug}. This is the way Owen wanted us to do it at the time but something may have changed. Let me know. If you want to give me a private header file to use to invoke it, feel free :) AfC
No need for a private header. Just document this as dangerous and language-binding territory.
Was this supposed to be included in GTK 2.24?