Projects/laydi
Projects
/
laydi
Archived
7
0
Fork 0

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
1 changed files with 5 additions and 0 deletions

View File

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