libpurple/image.c

changeset 42656
df9aafbae930
parent 42594
eddde70cedd8
child 42767
8cf1d11b59c1
equal deleted inserted replaced
42655:db971edd4b59 42656:df9aafbae930
138 138
139 gobj_class->finalize = purple_image_finalize; 139 gobj_class->finalize = purple_image_finalize;
140 gobj_class->get_property = purple_image_get_property; 140 gobj_class->get_property = purple_image_get_property;
141 gobj_class->set_property = purple_image_set_property; 141 gobj_class->set_property = purple_image_set_property;
142 142
143 /**
144 * PurpleImage:path:
145 *
146 * The file path for the image if one was provided.
147 *
148 * Since: 3.0
149 */
143 properties[PROP_PATH] = g_param_spec_string( 150 properties[PROP_PATH] = g_param_spec_string(
144 "path", 151 "path",
145 "path", 152 "path",
146 "The filepath for the image if one was provided", 153 "The filepath for the image if one was provided",
147 NULL, 154 NULL,
148 G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS 155 G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS
149 ); 156 );
150 157
158 /**
159 * PurpleImage:contents:
160 *
161 * The contents of the image.
162 *
163 * Since: 3.0
164 */
151 properties[PROP_CONTENTS] = g_param_spec_boxed( 165 properties[PROP_CONTENTS] = g_param_spec_boxed(
152 "contents", 166 "contents",
153 "contents", 167 "contents",
154 "The contents of the image stored in a GBytes", 168 "The contents of the image stored in a GBytes",
155 G_TYPE_BYTES, 169 G_TYPE_BYTES,
156 G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS 170 G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS
157 ); 171 );
158 172
173 /**
174 * PurpleImage:size:
175 *
176 * The size of the image in bytes.
177 *
178 * Since: 3.0
179 */
159 properties[PROP_SIZE] = g_param_spec_uint64( 180 properties[PROP_SIZE] = g_param_spec_uint64(
160 "size", 181 "size",
161 "size", 182 "size",
162 "The size of the image in bytes", 183 "The size of the image in bytes",
163 0, 184 0,

mercurial