mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-10 02:40:11 +00:00
Rename GTK_ICON_LOOKUP_LOAD_IN_THREAD to GTK_ICON_LOOKUP_PRELOAD
This commit is contained in:
parent
14b3b684ef
commit
344ad65031
@ -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);
|
||||
|
||||
|
@ -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;
|
||||
|
||||
|
@ -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;
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user