Fiexd the cancel button of the new project dialog. Closes #7
This commit is contained in:
parent
a0ad4bdf54
commit
2b0fdc186c
|
@ -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)
|
||||
|
|
Reference in New Issue