How to use GtkRecentData in GJS?

Hi,

I’m trying to use GtkRecentManager’s add_full function, and it requires a GtkRecentData, but when I try to do new Gtk.RecnetData(), it says

Unable to construct struct type RecentData since it has no default constructor and cannot be allocated directly

Is this a bug? Or am I doing it wrong?

Thanks in advance!

GtkRecentData is not introspectable, so it cannot really be used by language bindings. It’s not really possible to fix it, because GTK 3 is API stable, and we cannot add new functions to it in order to make it introspectable, or providing an alternative.

Guess I’ll just use add_item for now, then. Thanks for the info!

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.