Rename GTK_ICON_LOOKUP_LOAD_IN_THREAD to GTK_ICON_LOOKUP_PRELOAD

This commit is contained in:
Alexander Larsson 2020-02-10 11:43:47 +01:00
parent 14b3b684ef
commit 344ad65031
3 changed files with 6 additions and 6 deletions

View File

@ -99,7 +99,7 @@ ensure_paintable_for_gicon (GtkIconHelper *self,
icon_theme = gtk_css_icon_theme_value_get_icon_theme (style->core->icon_theme);
flags = get_icon_lookup_flags (self, style);
if (preload)
flags |= GTK_ICON_LOOKUP_LOAD_IN_THREAD;
flags |= GTK_ICON_LOOKUP_PRELOAD;
width = height = gtk_icon_helper_get_size (self);

View File

@ -2272,7 +2272,7 @@ gtk_icon_theme_lookup_icon (GtkIconTheme *self,
gtk_icon_theme_unlock (self);
if (flags & GTK_ICON_LOOKUP_LOAD_IN_THREAD)
if (flags & GTK_ICON_LOOKUP_PRELOAD)
{
gboolean has_texture = FALSE;

View File

@ -44,16 +44,16 @@ typedef struct _GtkIconTheme GtkIconTheme;
* when symbolic icon names are given
* @GTK_ICON_LOOKUP_FORCE_SYMBOLIC: Try to always load symbolic icons, even
* when regular icon names are given
* @GTK_ICON_LOOKUP_LOAD_IN_THREAD: Starts loading the texture in the background
* @GTK_ICON_LOOKUP_PREALOAD: Starts loading the texture in the background
* so it is ready when later needed.
*
* Used to specify options for gtk_icon_theme_lookup_icon()
*/
typedef enum
{
GTK_ICON_LOOKUP_FORCE_REGULAR = 1 << 0,
GTK_ICON_LOOKUP_FORCE_SYMBOLIC = 1 << 1,
GTK_ICON_LOOKUP_LOAD_IN_THREAD = 1 << 2,
GTK_ICON_LOOKUP_FORCE_REGULAR = 1 << 0,
GTK_ICON_LOOKUP_FORCE_SYMBOLIC = 1 << 1,
GTK_ICON_LOOKUP_PRELOAD = 1 << 2,
} GtkIconLookupFlags;
/**