[evince] [windows] Make evince relocatable on windows - stock icons
- From: Carlos Garcia Campos <carlosgc src gnome org>
- To: svn-commits-list gnome org
- Subject: [evince] [windows] Make evince relocatable on windows - stock icons
- Date: Tue, 9 Jun 2009 08:55:15 -0400 (EDT)
commit ef77006be3e1852f942587b8c0334c1eab549812
Author: Hib Eris <hib hiberis nl>
Date: Tue Jun 9 14:54:17 2009 +0200
[windows] Make evince relocatable on windows - stock icons
---
libview/ev-stock-icons.c | 7 +++++++
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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]