forked from AuroraMiddleware/gtk
icon theme: Export recoloring function
This will be used in subsequent commits. https://bugzilla.gnome.org/show_bug.cgi?id=760536
This commit is contained in:
parent
7d717c8113
commit
1b0ef71696
@ -4282,8 +4282,8 @@ rgba_to_pixel(const GdkRGBA *rgba,
|
||||
pixel[3] = 255;
|
||||
}
|
||||
|
||||
static GdkPixbuf *
|
||||
color_symbolic_pixbuf (GdkPixbuf *symbolic,
|
||||
GdkPixbuf *
|
||||
gtk_icon_theme_color_symbolic_pixbuf (GdkPixbuf *symbolic,
|
||||
const GdkRGBA *fg_color,
|
||||
const GdkRGBA *success_color,
|
||||
const GdkRGBA *warning_color,
|
||||
@ -4397,7 +4397,7 @@ gtk_icon_info_load_symbolic_png (GtkIconInfo *icon_info,
|
||||
return NULL;
|
||||
}
|
||||
|
||||
return color_symbolic_pixbuf (icon_info->pixbuf,
|
||||
return gtk_icon_theme_color_symbolic_pixbuf (icon_info->pixbuf,
|
||||
fg ? fg : &fg_default,
|
||||
success_color ? success_color : &success_default,
|
||||
warning_color ? warning_color : &warning_default,
|
||||
@ -4539,7 +4539,6 @@ gtk_icon_info_load_symbolic_svg (GtkIconInfo *icon_info,
|
||||
}
|
||||
|
||||
|
||||
|
||||
static GdkPixbuf *
|
||||
gtk_icon_info_load_symbolic_internal (GtkIconInfo *icon_info,
|
||||
const GdkRGBA *fg,
|
||||
|
@ -31,4 +31,11 @@ GtkIconInfo *gtk_icon_info_new_for_file (GFile *file,
|
||||
gint size,
|
||||
gint scale);
|
||||
|
||||
GdkPixbuf * gtk_icon_theme_color_symbolic_pixbuf (GdkPixbuf *symbolic,
|
||||
const GdkRGBA *fg_color,
|
||||
const GdkRGBA *success_color,
|
||||
const GdkRGBA *warning_color,
|
||||
const GdkRGBA *error_color);
|
||||
|
||||
|
||||
#endif /* __GTK_ICON_THEME_PRIVATE_H__ */
|
||||
|
Loading…
Reference in New Issue
Block a user