forked from AuroraMiddleware/gtk
Export this privately.
2006-07-20 Matthias Clasen <mclasen@redhat.com> * gtk/gtkicontheme.h: * gtk/gtkicontheme.c (_gtk_icon_theme_ensure_builtin_cache): Export this privately. * gtk/gtkiconfactory.c (render_fallback_image): And call it here to initialize the builtin cache before using it. (#348063, Diego Pettenò)
This commit is contained in:
parent
066bb1b8f6
commit
7014a3b5bb
10
ChangeLog
10
ChangeLog
@ -1,3 +1,13 @@
|
||||
2006-07-20 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
* gtk/gtkicontheme.h:
|
||||
* gtk/gtkicontheme.c (_gtk_icon_theme_ensure_builtin_cache):
|
||||
Export this privately.
|
||||
|
||||
* gtk/gtkiconfactory.c (render_fallback_image): And call it
|
||||
here to initialize the builtin cache before using it. (#348063,
|
||||
Diego Pettenò)
|
||||
|
||||
2006-07-19 Federico Mena Quintero <federico@novell.com>
|
||||
|
||||
* tests/autotestfilechooser.c (test_black_box): Argh, initialize
|
||||
|
@ -1,3 +1,13 @@
|
||||
2006-07-20 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
* gtk/gtkicontheme.h:
|
||||
* gtk/gtkicontheme.c (_gtk_icon_theme_ensure_builtin_cache):
|
||||
Export this privately.
|
||||
|
||||
* gtk/gtkiconfactory.c (render_fallback_image): And call it
|
||||
here to initialize the builtin cache before using it. (#348063,
|
||||
Diego Pettenò)
|
||||
|
||||
2006-07-19 Federico Mena Quintero <federico@novell.com>
|
||||
|
||||
* tests/autotestfilechooser.c (test_black_box): Argh, initialize
|
||||
|
@ -1566,9 +1566,13 @@ render_fallback_image (GtkStyle *style,
|
||||
|
||||
if (fallback_source.type == GTK_ICON_SOURCE_EMPTY)
|
||||
{
|
||||
GdkPixbuf *pixbuf = _gtk_icon_cache_get_icon (_builtin_cache,
|
||||
GTK_STOCK_MISSING_IMAGE,
|
||||
"24");
|
||||
GdkPixbuf *pixbuf;
|
||||
|
||||
_gtk_icon_theme_ensure_builtin_cache ();
|
||||
|
||||
pixbuf = _gtk_icon_cache_get_icon (_builtin_cache,
|
||||
GTK_STOCK_MISSING_IMAGE,
|
||||
"24");
|
||||
gtk_icon_source_set_pixbuf (&fallback_source, pixbuf);
|
||||
g_object_unref (pixbuf);
|
||||
}
|
||||
|
@ -1129,7 +1129,7 @@ load_themes (GtkIconTheme *icon_theme)
|
||||
priv->last_stat_time = tv.tv_sec;
|
||||
}
|
||||
|
||||
static void
|
||||
void
|
||||
_gtk_icon_theme_ensure_builtin_cache (void)
|
||||
{
|
||||
static gboolean initialized = FALSE;
|
||||
|
@ -169,6 +169,7 @@ G_CONST_RETURN gchar *gtk_icon_info_get_display_name (GtkIconInfo *icon_info)
|
||||
|
||||
/* Non-public methods */
|
||||
void _gtk_icon_theme_check_reload (GdkDisplay *display);
|
||||
void _gtk_icon_theme_ensure_builtin_cache (void);
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user