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 584321 - GStrv construct properties are not working
GStrv construct properties are not working
Status: RESOLVED FIXED
Product: seed
Classification: Bindings
Component: libseed
git master
Other Linux
: Normal normal
: ---
Assigned To: seed-maint
Depends on:
Blocks:
 
 
Reported: 2009-05-30 20:57 UTC by David Zeuthen (not reading bugmail)
Modified: 2009-09-07 05:58 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description David Zeuthen (not reading bugmail) 2009-05-30 20:57:32 UTC
Consider this program

 const Gio = imports.gi.Gio;
 var themed_icon = new Gio.ThemedIcon ({names: ["name1", "name2"]});
 print ("icon: " + themed_icon);

This fails with the output in [1]. I tried this gjs and it seems to work fine there.

PS. I'm not so much interested in constructing an icon - GThemedIcon is just an example. It's more that I have a class I wrote myself that takes a GStrv as a construct property and I'd like that to work with seed.

[1] :

$ seed strv-property-example.js 

(seed:25519): GLib-GObject-CRITICAL **: g_value_transform: assertion `G_IS_VALUE (src_value)' failed

(seed:25519): GLib-GIO-CRITICAL **: g_themed_icon_constructed: assertion `themed->names != NULL && themed->names[0] != NULL' failed

(seed:25519): GLib-GObject-CRITICAL **: g_value_unset: assertion `G_IS_VALUE (value)' failed
icon: [object GThemedIcon]
Comment 1 Tim Horton 2009-07-02 08:22:51 UTC
Same story for GtkAboutDialog's .authors property.

I've looked at fixing this numerous times, but can't quite wrap my head around it yet, so I'm hoping Robb will fix this...
Comment 2 Robert Carr 2009-09-07 05:58:22 UTC
Fixed in commit 6532bef01b88fafe673ea5340e6560273d5f2f5c