Only allow local background files and set the current value. Also close the window when Apply is pressed

This commit is contained in:
Chris Jones 2008-11-12 11:58:01 +00:00
parent e01d69346f
commit 2ccd5962c1
1 changed files with 5 additions and 0 deletions

View File

@ -168,6 +168,8 @@ class ProfileEditor:
filter = gtk.FileFilter()
filter.add_mime_type ('image/*')
widget.add_filter (filter)
widget.set_local_only (True)
widget.set_filename (value)
elif key == 'tab_position':
widget = gtk.combo_box_new_text()
for item in self.tab_position:
@ -269,6 +271,9 @@ class ProfileEditor:
self.term.reconfigure_vtes()
# We're not actually cancelling, but since all it does is close the window, we might as well use it
self.cancel(None)
def cancel (self, data):
self.window.destroy()
self.term.options = None