Browse the code
Differences between 238 and 239 on /. | |||||||
---|---|---|---|---|---|---|---|
Number of edited files: | 1 (0 added, 0 deleted and 1 modified) | ||||||
Revision 239 About 5 months and 8 days ago. |
Fixed one last ui bug related to replaygain configuration (fixes #57) |
||||||
|
Old | New | Code |
---|---|---|
34 |
34 |
self.config_button = widgets[0][12] |
35 |
35 |
self.config_button.connect('clicked', self.on_open_config) |
36 |
36 |
self.popup = None |
37 |
self.popup_lbl = None | |
37 |
38 |
|
38 |
39 |
def on_open_config(self, wdg): |
39 |
40 |
if self.popup is not None: |
222 |
223 |
hbox.pack_start(lbl, True, True, 0) |
223 |
224 |
lbl.show() |
224 |
225 |
|
225 |
||
226 |
||
227 |
||
228 |
||
229 |
226 |
self.popup = popup |
230 |
227 |
self.popup.show_all() |
231 |
228 |
|
234 |
231 |
threads_enter() |
235 |
232 |
|
236 |
233 |
idle_add(widget.set_sensitive, False) |
237 |
spinner = Spinner() | |
238 |
idle_add(spinner.start) | |
239 |
idle_add(hbox.pack_start, spinner, False, False, 0) | |
240 |
lbl = Label(xalign=0) | |
234 |
||
235 |
if self.popup_lbl is not None:
| |
236 |
lbl = self.popup_lbl | |
237 |
else: | |
238 |
lbl = Label(xalign=0) | |
239 |
self.popup_lbl = lbl | |
240 |
||
241 |
241 |
idle_add(lbl.set_markup, '<small>' + _('Checking files… Please wait.') + '</small>') |
242 |
242 |
idle_add(lbl.set_line_wrap_mode, WrapMode.WORD) |
243 |
243 |
idle_add(lbl.set_line_wrap, True) |
244 |
244 |
idle_add(hbox.pack_start, lbl, True, True, 0) |
245 |
||
246 |
spinner = Spinner() | |
247 |
idle_add(spinner.start) | |
248 |
idle_add(hbox.pack_start, spinner, False, False, 0) | |
249 |
||
245 |
250 |
spinner.show() |
246 |
251 |
lbl.show() |
247 |
252 |
|
257 |
262 |
total -= 1 |
258 |
263 |
idle_add(lbl.set_markup, '<small>' + _('Processing %(count)d albums… Time for a coffee!' % {'count': total}) + '</small>') |
259 |
264 |
|
260 |
idle_add(spinner.hide) | |
265 |
idle_add(spinner.destroy)
| |
261 |
266 |
idle_add(lbl.set_markup, '<small>' + _('✔ Files are ready. Listen up!') + '</small>') |
262 |
267 |
idle_add(widget.set_sensitive, True) |
263 |
268 |
|
268 |
273 |
threads_leave() |
269 |
274 |
|
270 |
275 |
|
271 |
||
272 |
276 |
def on_darkmode_activate(self, widget, event): |
273 |
277 |
state = widget.get_active() |
274 |
278 |
|
275 |
279 |