comparison src/themes.c @ 4323:8a932c488afc

[gaim-migrate @ 4578] This is so you don't have to restart Gaim to use a new theme, yo. committer: Tailor Script <tailor@pidgin.im>
author Sean Egan <seanegan@gmail.com>
date Fri, 17 Jan 2003 07:18:26 +0000
parents 1cfad48b7d93
children 6c1230d15958
comparison
equal deleted inserted replaced
4322:a789969fc198 4323:8a932c488afc
66 char *i; 66 char *i;
67 struct smiley_theme *theme=NULL; 67 struct smiley_theme *theme=NULL;
68 struct smiley_list *list = NULL; 68 struct smiley_list *list = NULL;
69 GSList *lst = smiley_themes; 69 GSList *lst = smiley_themes;
70 char *dirname; 70 char *dirname;
71 gboolean old=FALSE;
71 72
72 while (lst) { 73 while (lst) {
73 struct smiley_theme *thm = lst->data; 74 struct smiley_theme *thm = lst->data;
74 if (!strcmp(thm->path, file)) { 75 if (!strcmp(thm->path, file)) {
75 theme = thm; 76 theme = thm;
77 old = TRUE;
76 break; 78 break;
77 } 79 }
78 lst = lst->next; 80 lst = lst->next;
79 } 81 }
80 if (!theme) { 82 if (!theme) {
183 cnv=cnv->next; 185 cnv=cnv->next;
184 } 186 }
185 } 187 }
186 188
187 g_free(dirname); 189 g_free(dirname);
188 return theme; 190 return old ? NULL : theme;
189 } 191 }
190 192
191 void smiley_theme_probe() 193 void smiley_theme_probe()
192 { 194 {
193 GDir *dir; 195 GDir *dir;