diff src/gtkaccount.c @ 10589:0f7452b1f777

[gaim-migrate @ 11994] Use GLib 2.6's gstdio functions. This should fix gaim not liking non-ascii filenames in win32. committer: Tailor Script <tailor@pidgin.im>
author Daniel Atallah <daniel.atallah@gmail.com>
date Fri, 11 Feb 2005 05:10:40 +0000
parents f175ff63d571
children 56d4460bb6bd
line wrap: on
line diff
--- a/src/gtkaccount.c	Fri Feb 11 03:51:26 2005 +0000
+++ b/src/gtkaccount.c	Fri Feb 11 05:10:40 2005 +0000
@@ -304,7 +304,7 @@
 		GTK_FILE_SELECTION(dialog->icon_filesel)));
 #endif /* FILECHOOSER */
 
-	if (!filename || stat(filename, &st))
+	if (!filename || g_stat(filename, &st))
 	{
 		g_free(filename);
 		return;
@@ -520,7 +520,7 @@
 	format = gdk_pixbuf_get_file_info (path, &width, &height);
 #else
 	loader = gdk_pixbuf_loader_new();
-	if (!stat(path, &st) && (file = fopen(path, "rb")) != NULL) {
+	if (!g_stat(path, &st) && (file = g_fopen(path, "rb")) != NULL) {
 		data = g_malloc(st.st_size);
 		fread(data, 1, st.st_size, file);
 		fclose(file);
@@ -599,7 +599,7 @@
 		if (!g_file_test(dirname, G_FILE_TEST_IS_DIR)) {
 			gaim_debug_info("buddyicon", "Creating icon cache directory.\n");
 
-			if (mkdir(dirname, S_IRUSR | S_IWUSR | S_IXUSR) < 0) {
+			if (g_mkdir(dirname, S_IRUSR | S_IWUSR | S_IXUSR) < 0) {
 				gaim_debug_error("buddyicon",
 								 "Unable to create directory %s: %s\n",
 								 dirname, strerror(errno));