From 2ccd5962c19ea5f1f650563906ce5fa9882bd207 Mon Sep 17 00:00:00 2001 From: Chris Jones Date: Wed, 12 Nov 2008 11:58:01 +0000 Subject: [PATCH] Only allow local background files and set the current value. Also close the window when Apply is pressed --- terminatorlib/prefs_profile.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/terminatorlib/prefs_profile.py b/terminatorlib/prefs_profile.py index 66eae2c8..bff1929b 100644 --- a/terminatorlib/prefs_profile.py +++ b/terminatorlib/prefs_profile.py @@ -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: @@ -268,6 +270,9 @@ class ProfileEditor: self.term.fullscreen_absolute(values[changer]) 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()