Commit e2fb39f3 authored by Richard Hughes's avatar Richard Hughes

Add gs_app_remove_kudo()

parent 7047b7ce
......@@ -3767,6 +3767,23 @@ gs_app_add_kudo (GsApp *app, GsAppKudo kudo)
priv->kudos |= kudo;
}
/**
* gs_app_remove_kudo:
* @app: a #GsApp
* @kudo: a #GsAppKudo, e.g. %GS_APP_KUDO_MY_LANGUAGE
*
* Removes a kudo from the application.
*
* Since: 3.30
**/
void
gs_app_remove_kudo (GsApp *app, GsAppKudo kudo)
{
GsAppPrivate *priv = gs_app_get_instance_private (app);
g_return_if_fail (GS_IS_APP (app));
priv->kudos &= ~kudo;
}
/**
* gs_app_has_kudo:
* @app: a #GsApp
......
......@@ -310,6 +310,8 @@ void gs_app_set_keywords (GsApp *app,
GPtrArray *keywords);
void gs_app_add_kudo (GsApp *app,
GsAppKudo kudo);
void gs_app_remove_kudo (GsApp *app,
GsAppKudo kudo);
gboolean gs_app_has_kudo (GsApp *app,
GsAppKudo kudo);
guint64 gs_app_get_kudos (GsApp *app);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment