10 things you might not have known about GTK+

Well, ok, just one thing: I was always under the impression that gtk_tree_view_set_model adopted the current reference (I've seen a lot of code that also makes this assumption) - but no! It adds its own reference to the model. So if you were as ignorant as me (thanks to Priit Laes for pointing this one out), best go back and amend your code!

James says:

Gosh! Blog on the Annals.

Murray Cumming says:

Just about every gtk_*set*() function does its own referencing. You only need to "give" a reference when setting something directly in a struct field.

(This is easier in gtkmm, where any need to use ref/unref would be a bug in gtkmm.)

Now, someone hack valgrind to understand GObject references.

Priit Laes says:

Has anyone ever tried GObject RefDbg?

Any comments?