From 66055e1a24adf38251805022bcf3509ccc5a757a Mon Sep 17 00:00:00 2001 From: Guillaume Desmottes Date: Mon, 19 Apr 2010 12:59:55 +0200 Subject: empathy_gtk_init: add local copy of icons to the search path (#616159) --- libempathy-gtk/empathy-ui-utils.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'libempathy-gtk/empathy-ui-utils.c') diff --git a/libempathy-gtk/empathy-ui-utils.c b/libempathy-gtk/empathy-ui-utils.c index f3761e5cd..d462403ff 100644 --- a/libempathy-gtk/empathy-ui-utils.c +++ b/libempathy-gtk/empathy-ui-utils.c @@ -64,6 +64,19 @@ empathy_gtk_init (void) gtk_icon_theme_append_search_path (gtk_icon_theme_get_default (), PKGDATADIR G_DIR_SEPARATOR_S "icons"); + /* Add icons from source dir if available */ + if (g_getenv ("EMPATHY_SRCDIR") != NULL) { + gchar *path; + + path = g_build_filename (g_getenv ("EMPATHY_SRCDIR"), "data", + "icons", "local-copy", NULL); + if (g_file_test (path, G_FILE_TEST_EXISTS)) { + gtk_icon_theme_append_search_path (gtk_icon_theme_get_default (), path); + } + + g_free (path); + } + initialized = TRUE; } -- cgit v1.2.3