From f4b4be936edef388577024f565b2f1643d4bd2f9 Mon Sep 17 00:00:00 2001 From: Rodney Dawes Date: Mon, 19 Apr 2004 15:18:37 +0000 Subject: Update to use EIconFactory to get the filename for the component icons 2004-04-19 Rodney Dawes * e-info-label.c (e_info_label_new): Update to use EIconFactory to get the filename for the component icons using the icon theme 2004-04-19 Michael Terry * e-combo-buddon.c: * e-url-entry.c: Update these to use EIconFactory and GtkImages directly instead of GdkPixmaps svn path=/trunk/; revision=25513 --- widgets/misc/e-info-label.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'widgets/misc/e-info-label.c') diff --git a/widgets/misc/e-info-label.c b/widgets/misc/e-info-label.c index fffc24c83d..8b3f006396 100644 --- a/widgets/misc/e-info-label.c +++ b/widgets/misc/e-info-label.c @@ -112,9 +112,8 @@ e_info_label_new(const char *icon) { EInfoLabel *el = g_object_new(e_info_label_get_type(), 0); GtkWidget *image; - char *name = g_strdup_printf(MAP_DIR "/%s", icon); + char *name = e_icon_factory_get_icon_filename (icon, 16); - /* FIXME: the image stuff should use the icon theme stuff when its committed */ image = gtk_image_new_from_file(name); g_free(name); gtk_misc_set_padding((GtkMisc *)image, 6, 6); -- cgit v1.2.3