GTK3 conversion in tools
svn: r20839
This commit is contained in:
parent
44e33f0ad6
commit
8a8bf7c72e
@ -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)
|
||||||
|
@ -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]
|
||||||
|
Loading…
Reference in New Issue
Block a user