aboutsummaryrefslogtreecommitdiffstats
path: root/embed/ephy-embed-shell.c
diff options
context:
space:
mode:
authorXan Lopez <xan@igalia.com>2012-09-03 04:53:00 +0800
committerXan Lopez <xan@igalia.com>2012-09-03 04:53:00 +0800
commit4c45d09f5bc585147ef8013ac6570b12bbb372e0 (patch)
tree89d252fbde357d33de1d464b3cc8f45551403d17 /embed/ephy-embed-shell.c
parent8a90676ef1a46d040c4d334b9c1f7522167814a7 (diff)
downloadgsoc2013-epiphany-4c45d09f5bc585147ef8013ac6570b12bbb372e0.tar
gsoc2013-epiphany-4c45d09f5bc585147ef8013ac6570b12bbb372e0.tar.gz
gsoc2013-epiphany-4c45d09f5bc585147ef8013ac6570b12bbb372e0.tar.bz2
gsoc2013-epiphany-4c45d09f5bc585147ef8013ac6570b12bbb372e0.tar.lz
gsoc2013-epiphany-4c45d09f5bc585147ef8013ac6570b12bbb372e0.tar.xz
gsoc2013-epiphany-4c45d09f5bc585147ef8013ac6570b12bbb372e0.tar.zst
gsoc2013-epiphany-4c45d09f5bc585147ef8013ac6570b12bbb372e0.zip
ephy-embed-shell: make the shell find uninstalled icons
This is needed for distcheck, which runs tests before installing.
Diffstat (limited to 'embed/ephy-embed-shell.c')
-rw-r--r--embed/ephy-embed-shell.c5
1 files changed, 2 insertions, 3 deletions
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);