diff options
author | Rodrigo Moya <rodrigo@novell.com> | 2004-08-05 23:52:14 +0800 |
---|---|---|
committer | Rodrigo Moya <rodrigo@src.gnome.org> | 2004-08-05 23:52:14 +0800 |
commit | 132c7a5a27f26c2a6f0dcb569cbf05d13fc9b1e2 (patch) | |
tree | e05b3dcd1c08fc46d13fe421726ddc8abd003b05 /e-util | |
parent | 58ba386daff382a4364645f3099fbcca6d07ade4 (diff) | |
download | gsoc2013-evolution-132c7a5a27f26c2a6f0dcb569cbf05d13fc9b1e2.tar gsoc2013-evolution-132c7a5a27f26c2a6f0dcb569cbf05d13fc9b1e2.tar.gz gsoc2013-evolution-132c7a5a27f26c2a6f0dcb569cbf05d13fc9b1e2.tar.bz2 gsoc2013-evolution-132c7a5a27f26c2a6f0dcb569cbf05d13fc9b1e2.tar.lz gsoc2013-evolution-132c7a5a27f26c2a6f0dcb569cbf05d13fc9b1e2.tar.xz gsoc2013-evolution-132c7a5a27f26c2a6f0dcb569cbf05d13fc9b1e2.tar.zst gsoc2013-evolution-132c7a5a27f26c2a6f0dcb569cbf05d13fc9b1e2.zip |
Fixes #62030
2004-08-05 Rodrigo Moya <rodrigo@novell.com>
Fixes #62030
* e-icon-factory.c (load_icon): get the icon_key as a new argument
and use that in the call to icon_new().
(e_icon_factory_get_icon): pass icon_key to load_icon().
(e_icon_factory_get_icon_list): ditto.
svn path=/trunk/; revision=26830
Diffstat (limited to 'e-util')
-rw-r--r-- | e-util/ChangeLog | 9 | ||||
-rw-r--r-- | e-util/e-icon-factory.c | 8 |
2 files changed, 13 insertions, 4 deletions
diff --git a/e-util/ChangeLog b/e-util/ChangeLog index 0cd49c9fe6..4e130c781d 100644 --- a/e-util/ChangeLog +++ b/e-util/ChangeLog @@ -1,3 +1,12 @@ +2004-08-05 Rodrigo Moya <rodrigo@novell.com> + + Fixes #62030 + + * e-icon-factory.c (load_icon): get the icon_key as a new argument + and use that in the call to icon_new(). + (e_icon_factory_get_icon): pass icon_key to load_icon(). + (e_icon_factory_get_icon_list): ditto. + 2004-08-01 JP Rosevear <jpr@novell.com> * e-pilot-util.c (e_pilot_get_sync_source): find the source with diff --git a/e-util/e-icon-factory.c b/e-util/e-icon-factory.c index 3c42d8fbad..14771b4bf0 100644 --- a/e-util/e-icon-factory.c +++ b/e-util/e-icon-factory.c @@ -86,7 +86,7 @@ icon_free (Icon *icon) } static Icon * -load_icon (const char *icon_name, int size, int scale) +load_icon (const char *icon_key, const char *icon_name, int size, int scale) { GdkPixbuf *pixbuf, *unscaled = NULL; char *filename = NULL; @@ -153,7 +153,7 @@ load_icon (const char *icon_name, int size, int scale) pixbuf = NULL; } - return icon_new (icon_name, pixbuf); + return icon_new (icon_key, pixbuf); } @@ -293,7 +293,7 @@ e_icon_factory_get_icon (const char *icon_name, int icon_size) pthread_mutex_lock (&lock); if (!(icon = g_hash_table_lookup (name_to_icon, icon_key))) { - if (!(icon = load_icon (icon_name, size, TRUE))) { + if (!(icon = load_icon (icon_key, icon_name, size, TRUE))) { g_warning ("Icon not found -- %s", icon_name); /* Create an empty icon so that we don't keep spitting @@ -350,7 +350,7 @@ e_icon_factory_get_icon_list (const char *icon_name) sprintf (icon_key, "%dx%d/%s", size, size, icon_name); if (!(icon = g_hash_table_lookup (name_to_icon, icon_key))) { - if ((icon = load_icon (icon_name, size, FALSE))) + if ((icon = load_icon (icon_key, icon_name, size, FALSE))) g_hash_table_insert (name_to_icon, icon->name, icon); } |