summaryrefslogtreecommitdiff
path: root/gtk-recordmydesktop
diff options
context:
space:
mode:
Diffstat (limited to 'gtk-recordmydesktop')
-rw-r--r--gtk-recordmydesktop/src/rmdSimple.py12
1 files changed, 8 insertions, 4 deletions
diff --git a/gtk-recordmydesktop/src/rmdSimple.py b/gtk-recordmydesktop/src/rmdSimple.py
index ffaf5da..1cdf17d 100644
--- a/gtk-recordmydesktop/src/rmdSimple.py
+++ b/gtk-recordmydesktop/src/rmdSimple.py
@@ -204,14 +204,18 @@ class simpleWidget(object):
def __fileSelOk__(self,Event=None):
self.values[4]=self.fileSel.get_filename()
#self.pathEntry.set_text(self.fileSel.get_filename())
- self.fileSel.destroy()
def __fileSelect__(self,Event=None):
- self.fileSel = gtk.FileSelection(title=None)
- self.fileSel.ok_button.connect("clicked", self.__fileSelOk__)
- self.fileSel.cancel_button.connect("clicked", self.__fileSelQuit__)
+ self.fileSel = gtk.FileChooserDialog(title=None,
+ action=gtk.FILE_CHOOSER_ACTION_SAVE,
+ buttons=(gtk.STOCK_CANCEL,gtk.RESPONSE_CANCEL,
+ gtk.STOCK_SAVE,gtk.RESPONSE_OK))
self.fileSel.set_filename(self.values[4])
self.fileSel.show()
+ if self.fileSel.run() == gtk.RESPONSE_OK:
+ self.__fileSelOk__()
+ self.__fileSelQuit__()
+
def __select_window__(self,button):
xwininfo_com=['xwininfo','-frame']
if self.values[21]==1:
© All Rights Reserved