[evince] [windows] init locale_dir only once



commit 2474540c07118d414a5ab63030eef6516925ee3f
Author: Hib Eris <hib hiberis nl>
Date:   Tue May 25 18:03:44 2010 +0200

    [windows] init locale_dir only once

 libdocument/ev-init.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/libdocument/ev-init.c b/libdocument/ev-init.c
index 9e8e105..9bac955 100644
--- a/libdocument/ev-init.c
+++ b/libdocument/ev-init.c
@@ -53,6 +53,9 @@ DllMain (HINSTANCE hinstDLL,
 static const gchar *
 _ev_win32_get_locale_dir (HMODULE module)
 {
+	if (locale_dir)
+		return locale_dir;
+
 	gchar *install_dir = NULL, *utf8_locale_dir;
 	gchar *retval = NULL;
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]