[Vala] uint8[] GObject properties
- From: "W. Michael Petullo" <mike flyn org>
- To: vala-list gnome org
- Subject: [Vala] uint8[] GObject properties
- Date: Thu, 20 Jan 2011 22:13:51 -0600
I have written a GObject class that has the following property:
[...]
private uint8[] _thumbnail;
[...]
public uint8[] thumbnail {
get { return _thumbnail; }
set { _thumbnail = value; }
}
[...]
When I run my application, I see:
(lt-dpapview:13731): GLib-GObject-WARNING **: g_object_set_valist:
object class `ValaDPAPRecord' has no property named `thumbnail'
But, if I replace uint8[] with string, then I see no such error at
runtime.
When I inspect the generated C source, I find that there is no reference
to thumbnail in _get and _set_property() when it is declared as a uint8[].
Is this expected? What type should be used for properties that hold
binary data, possibly read using GLib.FileUtils.get_data()?
--
Mike
:wq
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]