gtk+ r22097 - branches/gtk-2-14/gdk-pixbuf



Author: tml
Date: Mon Jan 12 16:05:35 2009
New Revision: 22097
URL: http://svn.gnome.org/viewvc/gtk+?rev=22097&view=rev

Log:
2009-01-12  Tor Lillqvist  <tml novell com>

	* queryloaders.c (main): Remove the Win9x code path. It had been
	left by mistake. Win9x code is gone from the rest of GTK+ since
	2.12.



Modified:
   branches/gtk-2-14/gdk-pixbuf/ChangeLog
   branches/gtk-2-14/gdk-pixbuf/queryloaders.c

Modified: branches/gtk-2-14/gdk-pixbuf/queryloaders.c
==============================================================================
--- branches/gtk-2-14/gdk-pixbuf/queryloaders.c	(original)
+++ branches/gtk-2-14/gdk-pixbuf/queryloaders.c	Mon Jan 12 16:05:35 2009
@@ -230,16 +230,9 @@
 		 * subdirectory of the installation directory, or in
 		 * the installation directory itself.
 		 */
-		if (G_WIN32_HAVE_WIDECHAR_API ()) {
-			wchar_t fn[1000];
-			GetModuleFileNameW (NULL, fn, G_N_ELEMENTS (fn));
-			runtime_prefix = g_utf16_to_utf8 (fn, -1, NULL, NULL, NULL);
-		}
-		else {
-			char fn[1000];
-			GetModuleFileNameA (NULL, fn, G_N_ELEMENTS (fn));
-			runtime_prefix = g_locale_to_utf8 (fn, -1, NULL, NULL, NULL);
-		}
+		wchar_t fn[1000];
+		GetModuleFileNameW (NULL, fn, G_N_ELEMENTS (fn));
+		runtime_prefix = g_utf16_to_utf8 (fn, -1, NULL, NULL, NULL);
 		slash = strrchr (runtime_prefix, '\\');
 		*slash = '\0';
 		slash = strrchr (runtime_prefix, '\\');



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