GTK3 conversion in tools

svn: r20839
This commit is contained in:
Benny Malengier 2012-12-24 12:35:53 +00:00
parent 44e33f0ad6
commit 8a8bf7c72e
2 changed files with 26 additions and 27 deletions

View File

@ -302,7 +302,7 @@ class RemoveUnused(tool.Tool, ManagedWindow, UpdateCallback):
def selection_toggled(self, cell, path_string): def selection_toggled(self, cell, path_string):
sort_path = tuple(map(int, path_string.split(':'))) sort_path = tuple(map(int, path_string.split(':')))
real_path = self.sort_model.convert_path_to_child_path(sort_path) real_path = self.sort_model.convert_path_to_child_path(Gtk.TreePath(sort_path))
row = self.real_model[real_path] row = self.real_model[real_path]
row[RemoveUnused.MARK_COL] = not row[RemoveUnused.MARK_COL] row[RemoveUnused.MARK_COL] = not row[RemoveUnused.MARK_COL]
self.real_model.row_changed(real_path, row.iter) self.real_model.row_changed(real_path, row.iter)

View File

@ -28,13 +28,12 @@ A plugin to verify the data against user-adjusted tests.
This is the research tool, not the low-level data ingerity check. This is the research tool, not the low-level data ingerity check.
""" """
from __future__ import division from __future__ import division, print_function
#------------------------------------------------------------------------ #------------------------------------------------------------------------
# #
# standard python modules # standard python modules
# #
#------------------------------------------------------------------------ #------------------------------------------------------------------------
from __future__ import print_function
import os import os
import sys import sys
@ -610,7 +609,7 @@ class VerifyResults(ManagedWindow):
def selection_toggled(self, cell, path_string): def selection_toggled(self, cell, path_string):
sort_path = tuple(map(int, path_string.split(':'))) sort_path = tuple(map(int, path_string.split(':')))
filt_path = self.sort_model.convert_path_to_child_path(sort_path) filt_path = self.sort_model.convert_path_to_child_path(Gtk.TreePath(sort_path))
real_path = self.filt_model.convert_path_to_child_path(filt_path) real_path = self.filt_model.convert_path_to_child_path(filt_path)
row = self.real_model[real_path] row = self.real_model[real_path]
row[VerifyResults.IGNORE_COL] = not row[VerifyResults.IGNORE_COL] row[VerifyResults.IGNORE_COL] = not row[VerifyResults.IGNORE_COL]