From 4c45d09f5bc585147ef8013ac6570b12bbb372e0 Mon Sep 17 00:00:00 2001 From: Xan Lopez Date: Sun, 2 Sep 2012 22:53:00 +0200 Subject: ephy-embed-shell: make the shell find uninstalled icons This is needed for distcheck, which runs tests before installing. --- embed/ephy-embed-shell.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'embed/ephy-embed-shell.c') diff --git a/embed/ephy-embed-shell.c b/embed/ephy-embed-shell.c index 692962268..2df87b6ee 100644 --- a/embed/ephy-embed-shell.c +++ b/embed/ephy-embed-shell.c @@ -183,11 +183,10 @@ ephy_embed_shell_get_overview_icon (const char *icon_name) { GError *error = NULL; GdkPixbuf *pixbuf; - char *filename; + const char *filename; - filename = g_build_filename (ICONS_DIR, icon_name, NULL); + filename = ephy_file (icon_name); pixbuf = gdk_pixbuf_new_from_file (filename, &error); - g_free (filename); if (!pixbuf) { g_warning ("Couldn't load icon: %s", error->message); -- cgit v1.2.3