From 38e5f710d89a05afd414bab2a84d47a7573317a4 Mon Sep 17 00:00:00 2001 From: iovar Date: Thu, 16 Nov 2006 19:10:23 +0000 Subject: advanced window closes and changes are applied ,when recording starts git-svn-id: https://recordmydesktop.svn.sourceforge.net/svnroot/recordmydesktop/trunk@174 f606c939-3180-4ac9-a4b8-4b8779d57d0a --- gtk-recordmydesktop/src/rmdSimple.py | 6 +++++- gtk-recordmydesktop/src/rmdTrayIcon.py | 1 + 2 files changed, 6 insertions(+), 1 deletion(-) (limited to 'gtk-recordmydesktop') diff --git a/gtk-recordmydesktop/src/rmdSimple.py b/gtk-recordmydesktop/src/rmdSimple.py index 290ad7f..50f60d6 100644 --- a/gtk-recordmydesktop/src/rmdSimple.py +++ b/gtk-recordmydesktop/src/rmdSimple.py @@ -188,7 +188,11 @@ class simpleWidget(object): if self.options != None: self.options.window.destroy() self.optionsOpen[0]=0 - + def close_advanced(self): + if self.options != None: + if self.optionsOpen[0] ==1: + self.options.window.destroy() + self.optionsOpen[0]=0 def __fileSelQuit__(self,Event=None): self.fileSel.destroy() diff --git a/gtk-recordmydesktop/src/rmdTrayIcon.py b/gtk-recordmydesktop/src/rmdTrayIcon.py index 049f149..52faaa7 100644 --- a/gtk-recordmydesktop/src/rmdTrayIcon.py +++ b/gtk-recordmydesktop/src/rmdTrayIcon.py @@ -152,6 +152,7 @@ class trayIcon(object): self.__execRMD__() def __execRMD__(self): + self.parent.close_advanced() self.parent.update() execargs=["recordmydesktop","-o",'%s'%self.parent.values[4], "-fps","%d"%self.parent.values[0]] -- cgit v1.2.3