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 621259 - GdkPixbuf save() check even number of key/value args
GdkPixbuf save() check even number of key/value args
Status: RESOLVED FIXED
Product: gnome-perl
Classification: Bindings
Component: Gtk2
unspecified
Other Linux
: Normal minor
: ---
Assigned To: gtk2-perl-bugs
gtk2-perl-bugs
Depends on:
Blocks:
 
 
Reported: 2010-06-10 23:06 UTC by Kevin Ryde
Modified: 2010-12-07 21:36 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
.xs and .t patch (1.91 KB, patch)
2010-06-10 23:06 UTC, Kevin Ryde
committed Details | Review

Description Kevin Ryde 2010-06-10 23:06:22 UTC
Created attachment 163345 [details] [review]
.xs and .t patch

$pixbuf->save could notice when you give a key argument without a corresponding value, similar to other wrappers taking key=>value pairs.  Currently I think it's quietly ignored.

It's a pity xsubpp doesn't have a way to express that "..." means key/value pairs and check for an even number of them.
Comment 1 Torsten Schoenfeld 2010-12-07 21:36:40 UTC
Thanks!