Mercurial > hg > xmms-sid
comparison src/xs_fileinfo.c @ 751:55eea3fa8868
Rename some structures.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Mon, 05 Nov 2012 18:42:57 +0200 |
parents | 9321ffa2ea7e |
children | 36c6a6e629bb |
comparison
equal
deleted
inserted
replaced
750:3180bf22090f | 751:55eea3fa8868 |
---|---|
31 #include "xs_glade.h" | 31 #include "xs_glade.h" |
32 #include "xs_slsup.h" | 32 #include "xs_slsup.h" |
33 | 33 |
34 | 34 |
35 static GtkWidget *xs_fileinfowin = NULL; | 35 static GtkWidget *xs_fileinfowin = NULL; |
36 static stil_node_t *xs_fileinfostil = NULL; | 36 static XSSTILNode *xs_fileinfostil = NULL; |
37 XS_MUTEX(xs_fileinfowin); | 37 XS_MUTEX(xs_fileinfowin); |
38 | 38 |
39 #define LUW(x) lookup_widget(xs_fileinfowin, x) | 39 #define LUW(x) lookup_widget(xs_fileinfowin, x) |
40 | 40 |
41 | 41 |
118 } | 118 } |
119 | 119 |
120 | 120 |
121 static void xs_fileinfo_subtune(GtkWidget * widget, void *data) | 121 static void xs_fileinfo_subtune(GtkWidget * widget, void *data) |
122 { | 122 { |
123 stil_subnode_t *tmpNode; | 123 XSSTILSubNode *tmpNode; |
124 GtkWidget *tmpText; | 124 GtkWidget *tmpText; |
125 gchar *subName, *subAuthor, *subInfo; | 125 gchar *subName, *subAuthor, *subInfo; |
126 | 126 |
127 (void) widget; | 127 (void) widget; |
128 (void) data; | 128 (void) data; |
134 gtk_text_set_point(GTK_TEXT(tmpText), 0); | 134 gtk_text_set_point(GTK_TEXT(tmpText), 0); |
135 gtk_text_forward_delete(GTK_TEXT(tmpText), gtk_text_get_length(GTK_TEXT(tmpText))); | 135 gtk_text_forward_delete(GTK_TEXT(tmpText), gtk_text_get_length(GTK_TEXT(tmpText))); |
136 #endif | 136 #endif |
137 | 137 |
138 /* Get subtune information */ | 138 /* Get subtune information */ |
139 tmpNode = (stil_subnode_t *) data; | 139 tmpNode = (XSSTILSubNode *) data; |
140 if (!tmpNode && xs_fileinfostil) | 140 if (!tmpNode && xs_fileinfostil) |
141 tmpNode = xs_fileinfostil->subTunes[0]; | 141 tmpNode = xs_fileinfostil->subTunes[0]; |
142 | 142 |
143 if (tmpNode) { | 143 if (tmpNode) { |
144 subName = tmpNode->name; | 144 subName = tmpNode->name; |
168 | 168 |
169 | 169 |
170 void xs_fileinfo(gchar * filename) | 170 void xs_fileinfo(gchar * filename) |
171 { | 171 { |
172 GtkWidget *tmpMenuItem, *tmpMenu, *tmpOptionMenu; | 172 GtkWidget *tmpMenuItem, *tmpMenu, *tmpOptionMenu; |
173 xs_tuneinfo_t *tmpInfo; | 173 XSTuneInfo *tmpInfo; |
174 stil_subnode_t *tmpNode; | 174 XSSTILSubNode *tmpNode; |
175 gchar tmpStr[256], *tmpFilename; | 175 gchar tmpStr[256], *tmpFilename; |
176 gint n; | 176 gint n; |
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... |