diff options
author | Richard Hughes <richard@hughsie.com> | 2014-09-25 20:50:18 +0100 |
---|---|---|
committer | Richard Hughes <richard@hughsie.com> | 2014-09-25 20:50:18 +0100 |
commit | ade0980bdec14c782c7dfe3b8011edc749f52068 (patch) | |
tree | 1f7e540b41f623f75a0a795fb1a394f8f281b5ea /libappstream-builder/plugins/asb-plugin-font.c | |
parent | 7282f14fe5bdc22234018f5259926b4cf2b0cc7d (diff) | |
download | appstream-glib-ade0980bdec14c782c7dfe3b8011edc749f52068.tar.gz |
trivial: Remove the private AS_APP_ICON_DEFAULT_WIDTH
It makes no sense when talking about HiDPI
Diffstat (limited to 'libappstream-builder/plugins/asb-plugin-font.c')
-rw-r--r-- | libappstream-builder/plugins/asb-plugin-font.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/libappstream-builder/plugins/asb-plugin-font.c b/libappstream-builder/plugins/asb-plugin-font.c index 7d27bc4..16a5bfa 100644 --- a/libappstream-builder/plugins/asb-plugin-font.c +++ b/libappstream-builder/plugins/asb-plugin-font.c @@ -615,10 +615,7 @@ asb_plugin_process_filename (AsbPlugin *plugin, if (tmp != NULL) { icon_filename = g_strdup_printf ("%s.png", as_app_get_id_filename (AS_APP (app))); as_app_set_icon (AS_APP (app), icon_filename, -1); - pixbuf = asb_font_get_pixbuf (ft_face, - AS_APP_ICON_DEFAULT_WIDTH, - AS_APP_ICON_DEFAULT_HEIGHT, - tmp, error); + pixbuf = asb_font_get_pixbuf (ft_face, 64, 64, tmp, error); if (pixbuf == NULL) { ret = FALSE; goto out; @@ -631,9 +628,7 @@ asb_plugin_process_filename (AsbPlugin *plugin, ASB_PLUGIN_ERROR, ASB_PLUGIN_ERROR_FAILED, "Could not generate %ix%i font icon with '%s'", - AS_APP_ICON_DEFAULT_WIDTH, - AS_APP_ICON_DEFAULT_HEIGHT, - tmp); + 64, 64, tmp); goto out; } as_app_set_icon_kind (AS_APP (app), AS_ICON_KIND_CACHED); |