Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHib Eris <hib@hiberis.nl>2009-06-09 12:54:17 (GMT)
committer Carlos Garcia Campos <carlosgc@gnome.org>2009-06-09 12:54:17 (GMT)
commitef77006be3e1852f942587b8c0334c1eab549812 (patch)
treef20a907d765faab17d1bff017e9fdaf78bb2d4eb
parent62f49fb645c00fd0ab52588a70cec76019e04afa (diff)
[windows] Make evince relocatable on windows - stock icons
-rw-r--r--libview/ev-stock-icons.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/libview/ev-stock-icons.c b/libview/ev-stock-icons.c
index fa3df96..d450462 100644
--- a/libview/ev-stock-icons.c
+++ b/libview/ev-stock-icons.c
@@ -91,8 +91,15 @@ ev_stock_icons_init (void)
GtkIconFactory *factory;
GtkIconSource *source;
gint i;
+#ifdef G_OS_WIN32
+ gchar *dir;
+ dir = g_win32_get_package_installation_directory_of_module (NULL);
+ ev_icons_path = g_build_filename (dir, "share", "evince", "icons", NULL);
+ g_free (dir);
+#else
ev_icons_path = g_build_filename (DATADIR, "icons", NULL);
+#endif
factory = gtk_icon_factory_new ();
gtk_icon_factory_add_default (factory);