Commit f575f06b authored by Fridrich Strba's avatar Fridrich Strba

On Windows, determine the data directory on runtime.

parent 75a65d15
......@@ -88,7 +88,13 @@ evince_thumbnail_pngenc_get (EvDocument *document, const char *thumbnail, int si
if (overlaid_icon_name) {
GdkPixbuf *overlaid_pixbuf;
#ifdef G_OS_WIN32
gchar *dir = g_win32_get_package_installation_directory_of_module (NULL);
gchar *overlaid_icon_path = g_build_filename (dir, "share", "evince", overlaid_icon_name, NULL);
g_free (dir);
#else
gchar *overlaid_icon_path = g_strdup_printf ("%s/%s", DATADIR, overlaid_icon_name);
#endif
overlaid_pixbuf = gdk_pixbuf_new_from_file (overlaid_icon_path, NULL);
g_free (overlaid_icon_path);
if (overlaid_pixbuf != NULL) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment