Fiexd the cancel button of the new project dialog. Closes #7

This commit is contained in:
Einar Ryeng 2006-04-26 14:01:46 +00:00
parent a0ad4bdf54
commit 2b0fdc186c

View File

@ -48,6 +48,7 @@ class CreateProjectDruid(gtk.Window):
self['druidpagefinish1'].connect('finish', self.finish)
self['workflow_list'].connect('cursor_changed', self.selection_updated)
self['druid'].connect('cancel', self.cancel)
self.connect('destroy', self.delete)
def delete(self, widget):
@ -68,6 +69,10 @@ class CreateProjectDruid(gtk.Window):
self.hide()
self.destroy()
def cancel(self, *ignored):
self.hide()
self.destroy()
def selection_updated(self, *rest):
tree, it = self['workflow_list'].get_selection().get_selected()
wf = self.workflows.get_value(it, 1)