summaryrefslogtreecommitdiff
path: root/libappstream-builder/plugins/asb-plugin-desktop.c
diff options
context:
space:
mode:
authorRichard Hughes <richard@hughsie.com>2014-08-09 16:17:12 +0200
committerRichard Hughes <richard@hughsie.com>2014-08-09 17:59:59 +0200
commitdc9bb88f93f35a0057962e65e2cba6a86b454b08 (patch)
treebb7a6520ed97a0bf425454e4b35af05a09f6724a /libappstream-builder/plugins/asb-plugin-desktop.c
parent14ea4d7c8d56729f21014b95ef50649c9a70e60a (diff)
downloadappstream-glib-dc9bb88f93f35a0057962e65e2cba6a86b454b08.tar.gz
Add as_app_add_veto()
This is simply moving asb_add_add_veto() into the base-class and in turn makes it stable API.
Diffstat (limited to 'libappstream-builder/plugins/asb-plugin-desktop.c')
-rw-r--r--libappstream-builder/plugins/asb-plugin-desktop.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/libappstream-builder/plugins/asb-plugin-desktop.c b/libappstream-builder/plugins/asb-plugin-desktop.c
index 0058828..dab9929 100644
--- a/libappstream-builder/plugins/asb-plugin-desktop.c
+++ b/libappstream-builder/plugins/asb-plugin-desktop.c
@@ -312,7 +312,7 @@ asb_plugin_process_filename (AsbPlugin *plugin,
/* NoDisplay apps are never included */
if (as_app_get_metadata_item (AS_APP (app), "NoDisplay") != NULL)
- asb_app_add_veto (app, "NoDisplay=true");
+ as_app_add_veto (AS_APP (app), "NoDisplay=true");
/* Settings or DesktopSettings requires AppData */
if (as_app_has_category (AS_APP (app), "Settings"))
@@ -332,17 +332,17 @@ asb_plugin_process_filename (AsbPlugin *plugin,
/* is icon XPM or GIF */
if (g_str_has_suffix (key, ".xpm"))
- asb_app_add_veto (app, "Uses XPM icon: %s", key);
+ as_app_add_veto (AS_APP (app), "Uses XPM icon: %s", key);
else if (g_str_has_suffix (key, ".gif"))
- asb_app_add_veto (app, "Uses GIF icon: %s", key);
+ as_app_add_veto (AS_APP (app), "Uses GIF icon: %s", key);
else if (g_str_has_suffix (key, ".ico"))
- asb_app_add_veto (app, "Uses ICO icon: %s", key);
+ as_app_add_veto (AS_APP (app), "Uses ICO icon: %s", key);
/* find icon */
pixbuf = asb_app_find_icon (app, tmpdir, key, &error_local);
if (pixbuf == NULL) {
- asb_app_add_veto (app, "Failed to find icon: %s",
- error_local->message);
+ as_app_add_veto (AS_APP (app), "Failed to find icon: %s",
+ error_local->message);
} else {
/* save in target directory */
icon_filename = g_strdup_printf ("%s.png",