Commit 0d36dfbf authored by Ken VanDine's avatar Ken VanDine

[snap-store] Don't require appstream-glib 0.7.11

parent 9ecb0d40
Pipeline #31408 failed with stage
in 3 minutes and 39 seconds
......@@ -131,6 +131,7 @@ typedef struct
GsChannel *active_channel;
GCancellable *cancellable;
GsPluginAction pending_action;
gboolean developer_is_verified;
} GsAppPrivate;
enum {
......@@ -1651,6 +1652,22 @@ gs_app_set_developer_name (GsApp *app, const gchar *developer_name)
_g_set_str (&priv->developer_name, developer_name);
}
gboolean
gs_app_get_developer_is_verified (GsApp *app)
{
GsAppPrivate *priv = gs_app_get_instance_private (app);
g_return_val_if_fail (GS_IS_APP (app), FALSE);
return priv->developer_is_verified;
}
void
gs_app_set_developer_is_verified (GsApp *app, gboolean developer_is_verified)
{
GsAppPrivate *priv = gs_app_get_instance_private (app);
g_return_if_fail (GS_IS_APP (app));
priv->developer_is_verified = developer_is_verified;
}
/**
* gs_app_get_pixbuf:
* @app: a #GsApp
......
......@@ -168,6 +168,9 @@ void gs_app_set_project_group (GsApp *app,
const gchar *gs_app_get_developer_name (GsApp *app);
void gs_app_set_developer_name (GsApp *app,
const gchar *developer_name);
gboolean gs_app_get_developer_is_verified (GsApp *app);
void gs_app_set_developer_is_verified (GsApp *app,
gboolean developer_is_verified);
const gchar *gs_app_get_agreement (GsApp *app);
void gs_app_set_agreement (GsApp *app,
const gchar *agreement);
......
......@@ -92,7 +92,7 @@ add_global_link_arguments(
# Needed for PATH_MAX and symlink()
add_project_arguments('-D_XOPEN_SOURCE=700', language : 'c')
appstream_glib = dependency('appstream-glib', version : '>= 0.7.11')
appstream_glib = dependency('appstream-glib', version : '>= 0.7.3')
gdk_pixbuf = dependency('gdk-pixbuf-2.0', version : '>= 2.32.0')
gio_unix = dependency('gio-unix-2.0')
gmodule = dependency('gmodule-2.0')
......
......@@ -1032,7 +1032,7 @@ gs_plugin_refine_app (GsPlugin *plugin,
developer_name = snapd_snap_get_publisher_username (snap);
gs_app_set_developer_name (app, developer_name);
if (snapd_snap_get_publisher_validation (snap) == SNAPD_PUBLISHER_VALIDATION_VERIFIED)
gs_app_add_quirk (app, AS_APP_QUIRK_DEVELOPER_VERIFIED);
gs_app_set_developer_is_verified (app, TRUE);
snap = local_snap != NULL ? local_snap : store_snap;
gs_app_set_version (app, snapd_snap_get_version (snap));
......
......@@ -974,7 +974,7 @@ gs_details_page_refresh_all (GsDetailsPage *self)
gtk_label_set_label (GTK_LABEL (self->label_details_developer_value), tmp);
gtk_widget_set_visible (self->label_details_developer_value, TRUE);
}
gtk_widget_set_visible (self->image_details_developer_verified, gs_app_has_quirk (self->app, AS_APP_QUIRK_DEVELOPER_VERIFIED));
gtk_widget_set_visible (self->image_details_developer_verified, gs_app_get_developer_is_verified (self->app));
/* set the license buttons */
tmp = gs_app_get_license (self->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