Mercurial > hg > xmms-sid
comparison src/xs_fileinfo.c @ 664:0fef72dce601
Rename pcFilename -> filename.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Thu, 03 Apr 2008 00:34:07 +0300 |
parents | b0743dc9165d |
children | 94186706beed |
comparison
equal
deleted
inserted
replaced
663:180d7a0250d8 | 664:0fef72dce601 |
---|---|
165 gtk_text_thaw(GTK_TEXT(tmpText)); | 165 gtk_text_thaw(GTK_TEXT(tmpText)); |
166 #endif | 166 #endif |
167 } | 167 } |
168 | 168 |
169 | 169 |
170 void xs_fileinfo(gchar * pcFilename) | 170 void xs_fileinfo(gchar * filename) |
171 { | 171 { |
172 GtkWidget *tmpMenuItem, *tmpMenu, *tmpOptionMenu; | 172 GtkWidget *tmpMenuItem, *tmpMenu, *tmpOptionMenu; |
173 xs_tuneinfo_t *tmpInfo; | 173 xs_tuneinfo_t *tmpInfo; |
174 stil_subnode_t *tmpNode; | 174 stil_subnode_t *tmpNode; |
175 gchar tmpStr[256], *tmpFilename; | 175 gchar tmpStr[256], *tmpFilename; |
177 | 177 |
178 /* Current implementation leaves old fileinfo window untouched if | 178 /* Current implementation leaves old fileinfo window untouched if |
179 * no information can be found for the new file. Hmm... | 179 * no information can be found for the new file. Hmm... |
180 */ | 180 */ |
181 #ifdef AUDACIOUS_PLUGIN | 181 #ifdef AUDACIOUS_PLUGIN |
182 xs_get_trackinfo(pcFilename, &tmpFilename, &n); | 182 xs_get_trackinfo(filename, &tmpFilename, &n); |
183 #else | 183 #else |
184 tmpFilename = pcFilename; | 184 tmpFilename = filename; |
185 #endif | 185 #endif |
186 | 186 |
187 /* Get new tune information */ | 187 /* Get new tune information */ |
188 XS_MUTEX_LOCK(xs_fileinfowin); | 188 XS_MUTEX_LOCK(xs_fileinfowin); |
189 XS_MUTEX_LOCK(xs_status); | 189 XS_MUTEX_LOCK(xs_status); |
218 gtk_option_menu_remove_menu(GTK_OPTION_MENU(tmpOptionMenu)); | 218 gtk_option_menu_remove_menu(GTK_OPTION_MENU(tmpOptionMenu)); |
219 tmpMenu = gtk_menu_new(); | 219 tmpMenu = gtk_menu_new(); |
220 | 220 |
221 | 221 |
222 /* Set the generic song information */ | 222 /* Set the generic song information */ |
223 tmpFilename = XS_CS_FILENAME(pcFilename); | 223 tmpFilename = XS_CS_FILENAME(filename); |
224 gtk_entry_set_text(GTK_ENTRY(LUW("fileinfo_filename")), tmpFilename); | 224 gtk_entry_set_text(GTK_ENTRY(LUW("fileinfo_filename")), tmpFilename); |
225 g_free(tmpFilename); | 225 g_free(tmpFilename); |
226 gtk_entry_set_text(GTK_ENTRY(LUW("fileinfo_songname")), tmpInfo->sidName); | 226 gtk_entry_set_text(GTK_ENTRY(LUW("fileinfo_songname")), tmpInfo->sidName); |
227 gtk_entry_set_text(GTK_ENTRY(LUW("fileinfo_composer")), tmpInfo->sidComposer); | 227 gtk_entry_set_text(GTK_ENTRY(LUW("fileinfo_composer")), tmpInfo->sidComposer); |
228 gtk_entry_set_text(GTK_ENTRY(LUW("fileinfo_copyright")), tmpInfo->sidCopyright); | 228 gtk_entry_set_text(GTK_ENTRY(LUW("fileinfo_copyright")), tmpInfo->sidCopyright); |