Browse the code
Differences between 237 and 238 on /. | |||||||
---|---|---|---|---|---|---|---|
Number of edited files: | 1 (0 added, 0 deleted and 1 modified) | ||||||
Revision 238 About 2 months and 11 days ago. |
Restores configuration window (references #57) |
||||||
|
Old | New | Code |
---|---|---|
33 |
33 |
def __init__(self, widgets): |
34 |
34 |
self.config_button = widgets[0][12] |
35 |
35 |
self.config_button.connect('clicked', self.on_open_config) |
36 |
self.popup = None | |
36 |
37 |
|
37 |
38 |
def on_open_config(self, wdg): |
39 |
if self.popup is not None: | |
40 |
self.popup.show_all() | |
41 |
return | |
42 |
||
38 |
43 |
popup = Popover.new(self.config_button) |
39 |
44 |
popup.set_size_request(400, 420) |
40 |
45 |
contentbox = Box.new(Orientation.VERTICAL, 5) |
221 |
226 |
|
222 |
227 |
|
223 |
228 |
|
224 |
popup.show_all() | |
229 |
self.popup = popup
| |
230 |
self.popup.show_all() | |
225 |
231 |
|
226 |
232 |
|
227 |
233 |
def on_replaygain_analysis(self, widget, hbox, rgain): |
228 |
234 |