GNOME Bugzilla – Bug 792237
Gtk.Clipboard.set_with_data is missing user_data argumen t
Last modified: 2018-01-06 11:10:24 UTC
The Gtk.Clipboard.set_with_data method currently (Vala 0.38.4) does not accept user_data argument. The signarure of the C function is: gboolean gtk_clipboard_set_with_data (GtkClipboard *clipboard, const GtkTargetEntry *targets, guint n_targets, GtkClipboardGetFunc get_func, GtkClipboardClearFunc clear_func, gpointer user_data); Call generated by vala: gtk_clipboard_set_with_data (clipboard, targets, targets_length1, ____lambda7__gtk_clipboard_get_func, ____lambda8__gtk_clipboard_clear_func); Leads to error when compiling is "error: too few arguments to function 'gtk_clipboard_set_with_data'". The quite similar Gtk.Clipboard.set_with_owner seems to be allright.
Created attachment 366388 [details] [review] gtk+-3.0: Don't hide user_data parameter in Clipboard.set_with_data()
Created attachment 366389 [details] [review] gtk+-3.0: Don't hide user_data parameter in Clipboard.set_with_data()
Attachment 366389 [details] pushed as 6110494 - gtk+-3.0: Don't hide user_data parameter in Clipboard.set_with_data()