Skip to content

Commit 040486b

Browse files
committed
search-result: Add donation urls property
1 parent b282750 commit 040486b

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

src/web/model/exm-search-result.c

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ struct _ExmSearchResult
1414
gchar *icon;
1515
gchar *screenshot;
1616
gchar *url;
17+
gchar **donation_urls;
1718
gchar *link;
1819
gchar *description;
1920
int pk;
@@ -35,6 +36,7 @@ enum {
3536
PROP_ICON,
3637
PROP_SCREENSHOT,
3738
PROP_URL,
39+
PROP_DONATION_URLS,
3840
PROP_LINK,
3941
PROP_DESCRIPTION,
4042
PROP_PK,
@@ -89,6 +91,9 @@ exm_search_result_get_property (GObject *object,
8991
case PROP_URL:
9092
g_value_set_string (value, self->url);
9193
break;
94+
case PROP_DONATION_URLS:
95+
g_value_set_boxed (value, self->donation_urls);
96+
break;
9297
case PROP_LINK:
9398
g_value_set_string (value, self->link);
9499
break;
@@ -139,6 +144,9 @@ exm_search_result_set_property (GObject *object,
139144
case PROP_URL:
140145
self->url = g_value_dup_string (value);
141146
break;
147+
case PROP_DONATION_URLS:
148+
self->donation_urls = g_value_dup_boxed (value);
149+
break;
142150
case PROP_LINK:
143151
self->link = g_value_dup_string (value);
144152
break;
@@ -257,6 +265,13 @@ exm_search_result_class_init (ExmSearchResultClass *klass)
257265
NULL,
258266
G_PARAM_READWRITE|G_PARAM_CONSTRUCT_ONLY);
259267

268+
properties[PROP_DONATION_URLS] =
269+
g_param_spec_boxed ("donation_urls",
270+
"Donation URLs",
271+
"Donation URLs",
272+
G_TYPE_STRV,
273+
G_PARAM_READWRITE|G_PARAM_CONSTRUCT_ONLY);
274+
260275
properties [PROP_LINK] =
261276
g_param_spec_string ("link",
262277
"Link",

0 commit comments

Comments
 (0)