* The New project toolbar button now works. A druid will display the
available workflows and ask you to select one of them. There are still a couple of unresolved issues, but it works, so i upload it to ease the use of the program.
This commit is contained in:
@@ -9,10 +9,13 @@ import project
|
||||
class NavigatorView (gtk.TreeView):
|
||||
def __init__(self, project, app):
|
||||
self.project = project
|
||||
self.data_tree = project.data_tree
|
||||
self.app = app
|
||||
if project:
|
||||
self.data_tree = project.data_tree
|
||||
else:
|
||||
self.data_tree = None
|
||||
|
||||
gtk.TreeView.__init__(self, self.data_tree)
|
||||
gtk.TreeView.__init__(self) #, self.data_tree)
|
||||
|
||||
self.set_headers_visible(False)
|
||||
self.connect('cursor_changed', self.cursor_changed_handler)
|
||||
@@ -24,6 +27,11 @@ class NavigatorView (gtk.TreeView):
|
||||
|
||||
logger.log('debug', 'Initializing navigator window.')
|
||||
|
||||
def add_project(self, project):
|
||||
self.project = project
|
||||
self.data_tree = project.data_tree
|
||||
self.set_model(project.data_tree)
|
||||
|
||||
def cursor_changed_handler(self, widget):
|
||||
selection = widget.get_selection()
|
||||
model, tree_iter = selection.get_selected()
|
||||
|
Reference in New Issue
Block a user