diff options
author | Alexander Larsson <alexl@redhat.com> | 2020-01-28 13:47:59 +0100 |
---|---|---|
committer | Alexander Larsson <alexl@redhat.com> | 2020-01-29 19:06:16 +0100 |
commit | 71b3b542150d46227802aaf86c7aef831eb4345d (patch) | |
tree | e574c95b3ac6181cb9886436aeb317eb0386b13c /gtk/gtkicontheme.h | |
parent | 97b24b0732dd849fd5a756d138bcdd68aeb95f94 (diff) | |
download | gtk+-71b3b542150d46227802aaf86c7aef831eb4345d.tar.gz |
icon-theme: Add async icon loader
Diffstat (limited to 'gtk/gtkicontheme.h')
-rw-r--r-- | gtk/gtkicontheme.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/gtk/gtkicontheme.h b/gtk/gtkicontheme.h index c938156117..6ec132b272 100644 --- a/gtk/gtkicontheme.h +++ b/gtk/gtkicontheme.h @@ -169,6 +169,19 @@ GtkIconInfo * gtk_icon_theme_choose_icon_for_scale (GtkIconTheme gint scale, GtkIconLookupFlags flags); GDK_AVAILABLE_IN_ALL +void gtk_icon_theme_choose_icon_async (GtkIconTheme *self, + const gchar *icon_names[], + gint size, + gint scale, + GtkIconLookupFlags flags, + GCancellable *cancellable, + GAsyncReadyCallback callback, + gpointer user_data); +GDK_AVAILABLE_IN_ALL +GtkIconInfo * gtk_icon_theme_choose_icon_finish (GtkIconTheme *self, + GAsyncResult *result, + GError **error); +GDK_AVAILABLE_IN_ALL GdkPaintable *gtk_icon_theme_load_icon (GtkIconTheme *self, const char *icon_name, int size, |