Fixed bug that caused right-click in the identifier list to change the list's selection status.

This commit is contained in:
Einar Ryeng 2013-09-17 11:11:13 +00:00
parent 1f2055d6b7
commit c612724378
5 changed files with 4 additions and 3 deletions

View File

@ -73,7 +73,6 @@ class LogView(gtk.TreeView):
# Make sure tree view displays bottom entry when entered
def scroll_to_last(model, path, it):
print path
if path:
self.scroll_to_cell(path)
self.model.connect('row-changed', scroll_to_last)

View File

@ -333,6 +333,7 @@ class SelectionDirectory(Directory):
Warnings are printed to terminal on duplicated ids and invalid ids.
"""
print "read_selection_file(%s)" % (fn,)
fd = open(fn)
ids = []
for line in fd.readlines():

View File

@ -37,7 +37,7 @@ class ProjectView:
def _load_datasets(self):
print "load datasets from project..."
print self.project.data.datasets
print "datasets: ", self.project.data.datasets
for ds in self.project.data.datasets:
if isinstance(ds, dataset.GraphDataset):
icon = laydi.icon_factory.get("graph_dataset")

View File

@ -255,6 +255,7 @@ class IdListController:
if event.button == 3:
self._update_annotations_menu()
self._menu.popup(None, None, None, event.button, event.time)
return True
def _on_export_list(self, menuitem):
self.export_annotations()

View File

@ -93,7 +93,7 @@ class Workflow:
self.stages_by_id[stage.id] = stage
def print_tree(self):
print self.name
print "Workflow:", self.name
for stage in self.stages:
print ' %s' % stage.name
for fun in stage.functions: