After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 792237 - Gtk.Clipboard.set_with_data is missing user_data argumen t
Gtk.Clipboard.set_with_data is missing user_data argumen t
Status: RESOLVED FIXED
Product: vala
Classification: Core
Component: Bindings
0.38.x
Other Linux
: Normal normal
: ---
Assigned To: Vala maintainers
Vala maintainers
Depends on:
Blocks:
 
 
Reported: 2018-01-05 11:00 UTC by Philipp Wolfer
Modified: 2018-01-06 11:10 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
gtk+-3.0: Don't hide user_data parameter in Clipboard.set_with_data() (2.45 KB, patch)
2018-01-05 15:32 UTC, Rico Tzschichholz
none Details | Review
gtk+-3.0: Don't hide user_data parameter in Clipboard.set_with_data() (2.02 KB, patch)
2018-01-05 15:34 UTC, Rico Tzschichholz
committed Details | Review

Description Philipp Wolfer 2018-01-05 11:00:58 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.
Comment 1 Rico Tzschichholz 2018-01-05 15:32:02 UTC
Created attachment 366388 [details] [review]
gtk+-3.0: Don't hide user_data parameter in Clipboard.set_with_data()
Comment 2 Rico Tzschichholz 2018-01-05 15:34:56 UTC
Created attachment 366389 [details] [review]
gtk+-3.0: Don't hide user_data parameter in Clipboard.set_with_data()
Comment 3 Rico Tzschichholz 2018-01-06 11:10:18 UTC
Attachment 366389 [details] pushed as 6110494 - gtk+-3.0: Don't hide user_data parameter in Clipboard.set_with_data()