From: Hib Eris Date: Tue, 9 Jun 2009 12:54:17 +0000 (+0200) Subject: [windows] Make evince relocatable on windows - stock icons X-Git-Tag: EVINCE_2_27_3~40 X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=commitdiff_plain;h=ef77006be3e1852f942587b8c0334c1eab549812;p=evince.git [windows] Make evince relocatable on windows - stock icons --- diff --git a/libview/ev-stock-icons.c b/libview/ev-stock-icons.c index fa3df964..d4504623 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);