comparison src/xs_fileinfo.c @ 230:608f31f6c095

Raw cleanup.
author Matti Hamalainen <ccr@tnsp.org>
date Tue, 21 Dec 2004 09:25:03 +0000
parents dcf88b73e4c1
children e613873c3379
comparison
equal deleted inserted replaced
229:7bb9e20e3092 230:608f31f6c095
27 #include "xs_config.h" 27 #include "xs_config.h"
28 #include "xs_interface.h" 28 #include "xs_interface.h"
29 #include "xs_glade.h" 29 #include "xs_glade.h"
30 30
31 static GtkWidget *xs_fileinfowin = NULL; 31 static GtkWidget *xs_fileinfowin = NULL;
32 static t_xs_stil_node *xs_fileinfostil = NULL;
33 static t_xs_tuneinfo *xs_fileinfotune = NULL;
32 34
33 #define LUW(x...) lookup_widget(xs_fileinfowin, ## x) 35 #define LUW(x...) lookup_widget(xs_fileinfowin, ## x)
36
37
38 void xs_fileinfo_setsong(void)
39 {
40 }
34 41
35 42
36 void xs_fileinfo_ok(void) 43 void xs_fileinfo_ok(void)
37 { 44 {
38 gtk_widget_destroy(xs_fileinfowin); 45 gtk_widget_destroy(xs_fileinfowin);
93 gchar tmpStr[32], *tmpS; 100 gchar tmpStr[32], *tmpS;
94 gint n; 101 gint n;
95 102
96 /* Free old info, if set */ 103 /* Free old info, if set */
97 if (xs_fileinfotune) 104 if (xs_fileinfotune)
98 xs_tune_free(xs_fileinfotune); 105 xs_tuneinfo_free(xs_fileinfotune);
99 106
100 /* Get new tune information */ 107 /* Get new tune information */
101 if ((xs_fileinfotune = xs_player->plrGetSIDInfo(pcFilename)) == NULL) 108 if ((xs_fileinfotune = xs_player->plrGetSIDInfo(pcFilename)) == NULL)
102 return; 109 return;
103 110
172 } 179 }
173 180
174 /* Set the subtune information */ 181 /* Set the subtune information */
175 xs_fileinfo_subtune(NULL, tmpMenu); 182 xs_fileinfo_subtune(NULL, tmpMenu);
176 183
177 /* Update subtune controls */
178 xs_subctrl_update();
179
180 /* Show the window */ 184 /* Show the window */
181 gtk_widget_show(xs_fileinfowin); 185 gtk_widget_show(xs_fileinfowin);
182 } 186 }
183 187