]> www.fi.muni.cz Git - evince.git/commitdiff
[windows] Make evince relocatable on windows - stock icons
authorHib Eris <hib@hiberis.nl>
Tue, 9 Jun 2009 12:54:17 +0000 (14:54 +0200)
committerCarlos Garcia Campos <carlosgc@gnome.org>
Tue, 9 Jun 2009 12:54:17 +0000 (14:54 +0200)
libview/ev-stock-icons.c

index fa3df964f324fbe8653dfb7c6a8356e28ca1ca25..d4504623386b1c11bd6c68be6592650713ca6c5b 100644 (file)
@@ -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);