Mercurial > pidgin.yaz
comparison src/gtkthemes.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 | 0cf2a686266e |
children | b47708f46a38 |
comparison
equal
deleted
inserted
replaced
10588:529111933c9c | 10589:0f7452b1f777 |
---|---|
60 } | 60 } |
61 } | 61 } |
62 | 62 |
63 void load_smiley_theme(const char *file, gboolean load) | 63 void load_smiley_theme(const char *file, gboolean load) |
64 { | 64 { |
65 FILE *f = fopen(file, "r"); | 65 FILE *f = g_fopen(file, "r"); |
66 char buf[256]; | 66 char buf[256]; |
67 char *i; | 67 char *i; |
68 struct smiley_theme *theme=NULL; | 68 struct smiley_theme *theme=NULL; |
69 struct smiley_list *list = NULL; | 69 struct smiley_list *list = NULL; |
70 GSList *lst = smiley_themes; | 70 GSList *lst = smiley_themes; |
230 load_smiley_theme(path, FALSE); | 230 load_smiley_theme(path, FALSE); |
231 g_free(path); | 231 g_free(path); |
232 } | 232 } |
233 g_dir_close(dir); | 233 g_dir_close(dir); |
234 } else if (l == 1) { | 234 } else if (l == 1) { |
235 mkdir(probedirs[l], S_IRUSR | S_IWUSR | S_IXUSR); | 235 g_mkdir(probedirs[l], S_IRUSR | S_IWUSR | S_IXUSR); |
236 } | 236 } |
237 g_free(probedirs[l]); | 237 g_free(probedirs[l]); |
238 } | 238 } |
239 } | 239 } |
240 | 240 |