Skip to content

Commit

Permalink
search-result: Add donation urls property
Browse files Browse the repository at this point in the history
  • Loading branch information
oscfdezdz committed Mar 13, 2024
1 parent 34bddc2 commit e78cf34
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions src/web/model/exm-search-result.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ struct _ExmSearchResult
gchar *icon;
gchar *screenshot;
gchar *url;
gchar **donation_urls;
gchar *link;
gchar *description;
int pk;
Expand All @@ -35,6 +36,7 @@ enum {
PROP_ICON,
PROP_SCREENSHOT,
PROP_URL,
PROP_DONATION_URLS,
PROP_LINK,
PROP_DESCRIPTION,
PROP_PK,
Expand Down Expand Up @@ -89,6 +91,9 @@ exm_search_result_get_property (GObject *object,
case PROP_URL:
g_value_set_string (value, self->url);
break;
case PROP_DONATION_URLS:
g_value_set_boxed (value, self->donation_urls);
break;
case PROP_LINK:
g_value_set_string (value, self->link);
break;
Expand Down Expand Up @@ -139,6 +144,9 @@ exm_search_result_set_property (GObject *object,
case PROP_URL:
self->url = g_value_dup_string (value);
break;
case PROP_DONATION_URLS:
self->donation_urls = g_value_dup_boxed (value);
break;
case PROP_LINK:
self->link = g_value_dup_string (value);
break;
Expand Down Expand Up @@ -257,6 +265,13 @@ exm_search_result_class_init (ExmSearchResultClass *klass)
NULL,
G_PARAM_READWRITE|G_PARAM_CONSTRUCT_ONLY);

properties[PROP_DONATION_URLS] =
g_param_spec_boxed ("donation_urls",
"Donation URLs",
"Donation URLs",
G_TYPE_STRV,
G_PARAM_READWRITE|G_PARAM_CONSTRUCT_ONLY);

properties [PROP_LINK] =
g_param_spec_string ("link",
"Link",
Expand Down

0 comments on commit e78cf34

Please sign in to comment.