Mercurial > hg > xmms-sid
comparison src/xmms-sid.c @ 943:04dc44e87e03
Add a automatic pestering dialog if the user has not configured XMMS-SID or
the current configuration in XMMS's config file is otherwise incompatible.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Mon, 19 Nov 2012 18:24:13 +0200 |
parents | 2a50d36215c3 |
children | ede5374e9294 |
comparison
equal
deleted
inserted
replaced
942:b133f822b91e | 943:04dc44e87e03 |
---|---|
119 xs_error("Error initializing STIL database!\n"); | 119 xs_error("Error initializing STIL database!\n"); |
120 } | 120 } |
121 } | 121 } |
122 | 122 |
123 | 123 |
124 gboolean xs_configure_pester(gpointer data) | |
125 { | |
126 xs_configure(); | |
127 | |
128 xs_messagebox(_("Attention!"), | |
129 _("It seems you haven't yet configured XMMS-SID plugin, " | |
130 "or the configuration is from another version. " | |
131 "Opening the configuration dialog for it now.")); | |
132 return FALSE; | |
133 } | |
134 | |
135 | |
124 /* | 136 /* |
125 * Initialize XMMS-SID | 137 * Initialize XMMS-SID |
126 */ | 138 */ |
127 void xs_init(void) | 139 void xs_init(void) |
128 { | 140 { |
129 XSDEBUG("xs_init()\n"); | 141 XSDEBUG("xs_init()\n"); |
130 | 142 |
131 /* Initialize and get configuration */ | 143 /* Initialize and get configuration */ |
132 xs_init_configuration(); | 144 xs_init_configuration(); |
133 xs_read_configuration(); | 145 |
146 if (!xs_read_configuration()) | |
147 { | |
148 g_timeout_add(1500, xs_configure_pester, NULL); | |
149 } | |
134 | 150 |
135 /* Initialize subsystems */ | 151 /* Initialize subsystems */ |
136 xs_reinit(); | 152 xs_reinit(); |
137 | 153 |
138 XSDEBUG("OK\n"); | 154 XSDEBUG("OK\n"); |