Mercurial > audlegacy
comparison src/audacious/main.c @ 4532:97b29dec6c6b
moved away some stuff from main.c
author | mf0102 <0102@gmx.at> |
---|---|
date | Thu, 08 May 2008 22:49:52 +0200 |
parents | b3e4f5c31546 |
children | 26209b646930 |
comparison
equal
deleted
inserted
replaced
4531:cbb1f66d8971 | 4532:97b29dec6c6b |
---|---|
108 | 108 |
109 typedef struct _AudCmdLineOpt AudCmdLineOpt; | 109 typedef struct _AudCmdLineOpt AudCmdLineOpt; |
110 | 110 |
111 static AudCmdLineOpt options; | 111 static AudCmdLineOpt options; |
112 | 112 |
113 const gchar *aud_titlestring_presets[] = { | |
114 "${title}", | |
115 "${?artist:${artist} - }${title}", | |
116 "${?artist:${artist} - }${?album:${album} - }${title}", | |
117 "${?artist:${artist} - }${?album:${album} - }${?track-number:${track-number}. }${title}", | |
118 "${?artist:${artist} }${?album:[ ${album} ] }${?artist:- }${?track-number:${track-number}. }${title}", | |
119 "${?album:${album} - }${title}" | |
120 }; | |
121 const guint n_titlestring_presets = G_N_ELEMENTS(aud_titlestring_presets); | |
122 | |
123 const gchar *chardet_detector_presets[] = { | |
124 N_("None"), | |
125 N_("Japanese"), | |
126 N_("Taiwanese"), | |
127 N_("Chinese"), | |
128 N_("Korean"), | |
129 N_("Russian"), | |
130 N_("Greek"), | |
131 N_("Hebrew"), | |
132 N_("Turkish"), | |
133 N_("Arabic"), | |
134 #ifdef HAVE_UDET | |
135 N_("Universal") | |
136 #endif | |
137 }; | |
138 const guint n_chardet_detector_presets = G_N_ELEMENTS(chardet_detector_presets); | |
139 | 113 |
140 gchar *aud_paths[BMP_PATH_COUNT] = {}; | 114 gchar *aud_paths[BMP_PATH_COUNT] = {}; |
141 | 115 |
142 GCond *cond_scan; | 116 GCond *cond_scan; |
143 GMutex *mutex_scan; | 117 GMutex *mutex_scan; |
147 | 121 |
148 static void | 122 static void |
149 dump_version(void) | 123 dump_version(void) |
150 { | 124 { |
151 g_printf("%s %s [%s]\n", _(application_name), VERSION, svn_stamp); | 125 g_printf("%s %s [%s]\n", _(application_name), VERSION, svn_stamp); |
152 } | |
153 | |
154 const gchar * | |
155 get_gentitle_format(void) | |
156 { | |
157 guint titlestring_preset = cfg.titlestring_preset; | |
158 | |
159 if (titlestring_preset < n_titlestring_presets) | |
160 return aud_titlestring_presets[titlestring_preset]; | |
161 | |
162 return cfg.gentitle_format; | |
163 } | 126 } |
164 | 127 |
165 static void | 128 static void |
166 aud_make_user_dir(void) | 129 aud_make_user_dir(void) |
167 { | 130 { |