Skip to content

Commit 95aaa6d

Browse files
iqracemequozl
authored andcommitted
Port to GTK+ 3.0
Port was incomplete again. A call to main_quit had not been tested, and commented code was not ported or removed. Regression introduced c540bcd Signed-off-by: James Cameron <[email protected]>
1 parent 6a7e56b commit 95aaa6d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

SliderPuzzleUI.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,7 @@ def refresh_labels(self, first_time=False):
311311

312312
@utils.trace
313313
def set_nr_pieces(self, btn=None, nr_pieces=None, path=None, path_from_journal=None):
314-
# if isinstance(btn, gtk.ToggleButton) and not btn.get_active():
314+
# if isinstance(btn, Gtk.ToggleButton) and not btn.get_active():
315315
# return
316316
logger.debug('final path')
317317
if self.is_contest_mode() and nr_pieces == self.game.get_nr_pieces():
@@ -475,7 +475,7 @@ def process_key(self, w, e):
475475
return True
476476

477477
if k in ('Escape', 'q'):
478-
gtk.main_quit()
478+
Gtk.main_quit()
479479
return True
480480
return False
481481

0 commit comments

Comments
 (0)