Error in description of gtk_file_chooser_add_filter()?
The description of gtk_file_chooser_add_filter() says:
* @filter: (transfer full): a #GtkFileFilter * * Note that the @chooser takes ownership of the filter, so you have to * ref and sink it if you want to keep a reference.
This is not true, at least not for all implementations of the GtkFileChooser interface. gtk_file_chooser_widget_add_filter() calls g_object_ref_sink(filter) to get its own reference. When I check ((GObject*)filter)->ref_count before and after a call to gtk_file_chooser_add_filter() for a GtkFileChooserDialog, it has increased by 1 or 2 after the call (2, if it's the first added filter, which becomes the current filter).
What's wrong, the code or the documentation?