diff options
author | Richard Hughes <richard@hughsie.com> | 2014-09-25 18:16:04 +0100 |
---|---|---|
committer | Richard Hughes <richard@hughsie.com> | 2014-09-25 20:39:37 +0100 |
commit | 7282f14fe5bdc22234018f5259926b4cf2b0cc7d (patch) | |
tree | 72c383c4c669d223ce87e6f36fcd1007bfa48359 /libappstream-glib/as-utils.h | |
parent | 70679725ac4d1caebf219e397c058ad872498ed9 (diff) | |
download | appstream-glib-7282f14fe5bdc22234018f5259926b4cf2b0cc7d.tar.gz |
Add as_utils_find_icon_filename_full() for HiDPI support
Diffstat (limited to 'libappstream-glib/as-utils.h')
-rw-r--r-- | libappstream-glib/as-utils.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/libappstream-glib/as-utils.h b/libappstream-glib/as-utils.h index 283c99f..fc55fa2 100644 --- a/libappstream-glib/as-utils.h +++ b/libappstream-glib/as-utils.h @@ -30,6 +30,20 @@ G_BEGIN_DECLS +/** + * AsUtilsFindIconFlag: + * @AS_UTILS_FIND_ICON_NONE: No flags set + * @AS_UTILS_FIND_ICON_HI_DPI: Prefer a HiDPI icon + * + * The flags used when finding icons. + **/ +typedef enum { + AS_UTILS_FIND_ICON_NONE = 0, + AS_UTILS_FIND_ICON_HI_DPI = 1 << 0, + /*< private >*/ + AS_UTILS_FIND_ICON_LAST +} AsUtilsFindIconFlag; + gchar *as_markup_convert_simple (const gchar *markup, gssize markup_len, GError **error); @@ -47,6 +61,10 @@ gboolean as_utils_check_url_exists (const gchar *url, gchar *as_utils_find_icon_filename (const gchar *destdir, const gchar *search, GError **error); +gchar *as_utils_find_icon_filename_full (const gchar *destdir, + const gchar *search, + AsUtilsFindIconFlag flags, + GError **error); gchar *as_utils_get_string_overlap (const gchar *s1, const gchar *s2); |