diff options
Diffstat (limited to 'gtk-recordmydesktop')
| -rw-r--r-- | gtk-recordmydesktop/src/rmdPrefsWidget.py | 264 | ||||
| -rw-r--r-- | gtk-recordmydesktop/src/rmdSimple.py | 56 | ||||
| -rw-r--r-- | gtk-recordmydesktop/src/rmdTrayIcon.py | 10 | 
3 files changed, 151 insertions, 179 deletions
| diff --git a/gtk-recordmydesktop/src/rmdPrefsWidget.py b/gtk-recordmydesktop/src/rmdPrefsWidget.py index 2e8a553..2f5f1b3 100644 --- a/gtk-recordmydesktop/src/rmdPrefsWidget.py +++ b/gtk-recordmydesktop/src/rmdPrefsWidget.py @@ -39,33 +39,32 @@ import os  class prefsWidget(object): -    labelStrings=[_('Frames Per Second'),_(' '),_('Startup Delay(secs)'), -                    _('Channels'),_('Frequency'),_('Device'),_('Video Quality'),_('Sound Quality'), -                    _('Display'),_('Mouse Cursor'),_('Full shots at every frame'),_('MIT-Shm extension'), -                    _('Drop Frames(encoder)'),_('Shared Threshold'),_('Quick Subsampling')] +    labelStrings=[_('Overwite Existing Files'),_('Working Directory'), +                    _('Frames Per Second'),_('Encode On the Fly'),_('Zero Compression'), +                    _('Quick Subsampling'),_('Shared Threshold'),_('Full shots at every frame'), +                    _('Channels'),_('Frequency'),_('Device'),_('Display'),_('Mouse Cursor'), +                    _('MIT-Shm extension'),_('Video Quality'),_('Sound Quality'), +                    _('Drop Frames(encoder)'),_('Startup Delay(secs)'),]      mouseStrings=[_('Normal'),_('White'),_('Black'),_('None')] -    stateStrings=[_('Enabled'),_('Disabled')] -    tabStrings=[_('Basic'),_('Sound'),_('Advanced')] -     +    stateStrings=[_('Enabled'),_('Disabled')]#0,1 +    tabStrings=[_('Files'),_('Performance'),_('Sound'),_('Advanced')] +      def destroy(self,Event=None):          self.values[0]=self.fpsSpinButton.get_value_as_int()          self.values[1]=self.mouseComboBox.get_active() -        #self.values[2]=self.soundComboBox.get_active()          self.values[3]=self.fullComboBox.get_active() -        #self.values[4]=self.pathEntry.get_text() -        #self.values[5]=self.are -        self.values[6]=self.delaySpinButton.get_value_as_int()          self.values[7]=self.channelsSpinButton.get_value_as_int()          self.values[8]=self.freqSpinButton.get_value_as_int()          self.values[9]=self.deviceEntry.get_text().replace(' ','') -        #self.values[10]=self.vidqSpinButton.get_value_as_int() -        #self.values[11]=self.soundqSpinButton.get_value_as_int()          self.values[12]=self.displayEntry.get_text().replace(' ','')          self.values[13]=self.sharedComboBox.get_active() -        self.values[14]=self.frdropComboBox.get_active()          self.values[15]=self.thresSpinButton.get_value_as_int()          self.values[16]=self.quickComboBox.get_active() -         +        self.values[17]=self.workdirEntry.get_text() +        self.values[18]=self.onTheFlyComboBox.get_active() +        self.values[19]=self.zeroCmpComboBox.get_active() +        self.values[20]=self.overwriteFilesButton.get_active() +          self.window.destroy()          self.optionsOpen[0]=0 @@ -74,189 +73,158 @@ class prefsWidget(object):          self.values[0]=-1          self.optionsOpen[0]=0          self.window.destroy() -         -        + +      def __subWidgets__(self):          self.labels={}          self.boxes={}          self.labelbox={} -        #self.labelbox[0]=gtk.VBox(homogeneous=False, spacing=20) -        for i in range(3): +        for i in range(4):              self.labelbox[i]=gtk.VBox(homogeneous=False, spacing=20)          self.notebook = gtk.Notebook() -#basic page -        self.fpsAdjustment=gtk.Adjustment(value=self.values[0], lower=1, upper=50, step_incr=1, page_incr=5, page_size=0) -        self.fpsSpinButton= gtk.SpinButton(self.fpsAdjustment, climb_rate=0.5, digits=0) +#Files page +        for i in range(2): +            self.labels[i]=gtk.Label(self.labelStrings[i]) +            self.labels[i].set_justify(gtk.JUSTIFY_LEFT) +            self.boxes[i]=gtk.HBox(homogeneous=False, spacing=40) +            self.boxes[i].pack_start(self.labels[i],expand=False,fill=False) +            self.labels[i].show() +            self.labelbox[0].pack_start(self.boxes[i],expand=False,fill=False) +        self.overwriteFilesButton=gtk.CheckButton(label=None) +        self.overwriteFilesButton.set_active(self.values[20]) +        self.overwriteFilesButton.show() +        self.boxes[0].pack_end(self.overwriteFilesButton,expand=False,fill=False) -        #self.soundComboBox = gtk.combo_box_new_text() -        #for i in range(2): -            #self.soundComboBox.append_text(self.stateStrings[i]) -        #self.soundComboBox.set_active(self.values[2]) -         -        self.delayAdjustment=gtk.Adjustment(value=self.values[6], lower=0,upper=10000, step_incr=1, page_incr=5, page_size=0) -        self.delaySpinButton= gtk.SpinButton(self.delayAdjustment, climb_rate=0.5, digits=0) - -        #self.pathEntry= gtk.Entry(max=0) -        #self.pathEntry.set_text(self.values[4]) -        #self.pathButton = gtk.Button(None,gtk.STOCK_SAVE_AS) -         -        self.okButton=gtk.Button(None,gtk.STOCK_CLOSE) -         -        for i in xrange(0,3,2): +        self.workdirEntry= gtk.Entry(max=0) +        self.workdirEntry.set_text(self.values[17]) +        self.workdirEntry.show() +        self.boxes[1].pack_end(self.workdirEntry,expand=True,fill=True) +        for i in range(2): +            self.boxes[i].show() +#Performance page +        for i in xrange(2,8):              self.labels[i]=gtk.Label(self.labelStrings[i])              self.labels[i].set_justify(gtk.JUSTIFY_LEFT) -            self.boxes[i]=gtk.HBox(homogeneous=False, spacing=0) +            self.boxes[i]=gtk.HBox(homogeneous=False, spacing=40)              self.boxes[i].pack_start(self.labels[i],expand=False,fill=False)              self.labels[i].show() -            self.labelbox[0].pack_start(self.boxes[i],expand=False,fill=False) +            self.labelbox[1].pack_start(self.boxes[i],expand=False,fill=False) -        self.boxes[3]=gtk.HBox(homogeneous=False, spacing=20) -        self.labelbox[0].pack_start(self.boxes[3],expand=False,fill=False)                        -        placeholder2=gtk.Label("\n\n\n\n\n\n") -        placeholder2.show() -        self.labelbox[0].pack_start(placeholder2,True,True) -        self.boxes[4]=gtk.HBox(homogeneous=False, spacing=0) -        self.labelbox[0].pack_end(self.boxes[4]) -     +        self.fpsAdjustment=gtk.Adjustment(value=self.values[0], lower=1, upper=50, step_incr=1, page_incr=5, page_size=0) +        self.fpsSpinButton= gtk.SpinButton(self.fpsAdjustment, climb_rate=0.5, digits=0)          self.fpsSpinButton.show() -        self.boxes[0].pack_end(self.fpsSpinButton,expand=False,fill=False) -        #self.soundComboBox.show() -        #self.boxes[1].pack_end(self.soundComboBox,expand=False,fill=False) -        self.delaySpinButton.show() -        self.boxes[2].pack_end(self.delaySpinButton,expand=False,fill=False) -        #self.pathEntry.show() -        #self.boxes[3].pack_start(self.pathEntry,expand=False,fill=False) -        #self.pathButton.show() -        #self.boxes[3].pack_end(self.pathButton,expand=False,fill=False) -        self.okButton.show() -        self.boxes[4].pack_end(self.okButton,expand=False,fill=False) -        for i in range(5): -            if i!=1: -                self.boxes[i].show() +        self.boxes[2].pack_end(self.fpsSpinButton,expand=False,fill=False) + +        self.onTheFlyComboBox = gtk.combo_box_new_text() +        for i in range(2): +            self.onTheFlyComboBox.append_text(self.stateStrings[i]) +        self.onTheFlyComboBox.set_active(self.values[18]) +        self.onTheFlyComboBox.show() +        self.boxes[3].pack_end(self.onTheFlyComboBox,expand=False,fill=False) + +        self.zeroCmpComboBox = gtk.combo_box_new_text() +        for i in range(2): +            self.zeroCmpComboBox.append_text(self.stateStrings[i]) +        self.zeroCmpComboBox.set_active(self.values[19]) +        self.zeroCmpComboBox.show() +        self.boxes[4].pack_end(self.zeroCmpComboBox,expand=False,fill=False) + +        self.quickComboBox = gtk.combo_box_new_text() +        for i in range(2): +            self.quickComboBox.append_text(self.stateStrings[i]) +        self.quickComboBox.set_active(self.values[16]) +        self.quickComboBox.show() +        self.boxes[5].pack_end(self.quickComboBox,expand=False,fill=False) + +        self.thresAdjustment=gtk.Adjustment(value=self.values[15], lower=0,upper=100, step_incr=1, page_incr=5, page_size=1) +        self.thresSpinButton= gtk.SpinButton(self.thresAdjustment, climb_rate=0.5, digits=0) +        self.thresSpinButton.show() +        self.boxes[6].pack_end(self.thresSpinButton,expand=False,fill=False) + +        self.fullComboBox = gtk.combo_box_new_text() +        for i in range(2): +            self.fullComboBox.append_text(self.stateStrings[i]) +        self.fullComboBox.set_active(self.values[3]) +        self.fullComboBox.show() +        self.boxes[7].pack_end(self.fullComboBox,expand=False,fill=False) + + +        for i in xrange(2,8): +            self.boxes[i].show()  #sound page -        for i in xrange(3,6): +        for i in xrange(8,11):              self.labels[i]=gtk.Label(self.labelStrings[i])              self.labels[i].set_justify(gtk.JUSTIFY_LEFT) -            self.boxes[i+5]=gtk.HBox(homogeneous=False, spacing=0) -            self.boxes[i+5].pack_start(self.labels[i],expand=False,fill=False) +            self.boxes[i]=gtk.HBox(homogeneous=False, spacing=0) +            self.boxes[i].pack_start(self.labels[i],expand=False,fill=False)              self.labels[i].show() -            #self.boxes[i+5].show() -            self.labelbox[1].pack_start(self.boxes[i+5],expand=False,fill=False) +            self.labelbox[2].pack_start(self.boxes[i],expand=False,fill=False) + +          self.channelsAdjustment=gtk.Adjustment(value=self.values[7], lower=1,upper=2, step_incr=1, page_incr=1, page_size=1)          self.channelsSpinButton= gtk.SpinButton(self.channelsAdjustment, climb_rate=0.5, digits=0) -        self.boxes[8].pack_end(self.channelsSpinButton,expand=False,fill=False)          self.channelsSpinButton.show() -        self.boxes[8].show() -         +        self.boxes[8].pack_end(self.channelsSpinButton,expand=False,fill=False) + +          self.freqAdjustment=gtk.Adjustment(value=self.values[8], lower=0,upper=44100, step_incr=1, page_incr=100, page_size=0)          self.freqSpinButton= gtk.SpinButton(self.freqAdjustment, climb_rate=0.5, digits=0) -        self.boxes[9].pack_end(self.freqSpinButton,expand=False,fill=False)          self.freqSpinButton.show() -        self.boxes[9].show() -         +        self.boxes[9].pack_end(self.freqSpinButton,expand=False,fill=False) + +          self.deviceEntry= gtk.Entry(max=0)          self.deviceEntry.set_text(self.values[9]) -        self.boxes[10].pack_end(self.deviceEntry,expand=False,fill=False)          self.deviceEntry.show() -        self.boxes[10].show() -         -         -#encoding page         -        #for i in xrange(6,8): -            #self.labels[i]=gtk.Label(self.labelStrings[i]) -            #self.labels[i].set_justify(gtk.JUSTIFY_LEFT) -            #self.boxes[i+5]=gtk.HBox(homogeneous=False, spacing=0) -            #self.boxes[i+5].pack_start(self.labels[i],expand=False,fill=False) -            #self.labels[i].show() -            ##self.boxes[i+5].show() -            #self.labelbox[2].pack_start(self.boxes[i+5],expand=False,fill=False) -        #self.vidqAdjustment=gtk.Adjustment(value=self.values[10], lower=0,upper=63, step_incr=1, page_incr=1, page_size=1) -        #self.vidqSpinButton= gtk.SpinButton(self.vidqAdjustment, climb_rate=0.5, digits=0) -        #self.boxes[11].pack_end(self.vidqSpinButton,expand=False,fill=False) -        #self.vidqSpinButton.show() -        #self.boxes[11].show() -        #self.soundqAdjustment=gtk.Adjustment(value=self.values[11], lower=-1,upper=10, step_incr=1, page_incr=1, page_size=1) -        #self.soundqSpinButton= gtk.SpinButton(self.soundqAdjustment, climb_rate=0.5, digits=0) -        #self.boxes[12].pack_end(self.soundqSpinButton,expand=False,fill=False) -        #self.soundqSpinButton.show() -        #self.boxes[12].show() +        self.boxes[10].pack_end(self.deviceEntry,expand=False,fill=False) +        for i in xrange(8,11): +            self.boxes[i].show()  #misc page -        for i in xrange(8,15): +        for i in xrange(11,14):              self.labels[i]=gtk.Label(self.labelStrings[i])              self.labels[i].set_justify(gtk.JUSTIFY_LEFT) -            self.boxes[i+5]=gtk.HBox(homogeneous=False, spacing=0) -            self.boxes[i+5].pack_start(self.labels[i],expand=False,fill=False) +            self.boxes[i]=gtk.HBox(homogeneous=False, spacing=0) +            self.boxes[i].pack_start(self.labels[i],expand=False,fill=False)              self.labels[i].show() -            #self.boxes[i+5].show() -            self.labelbox[2].pack_start(self.boxes[i+5],expand=False,fill=False) +            self.labelbox[3].pack_start(self.boxes[i],expand=False,fill=False) +          self.displayEntry= gtk.Entry(max=0)          self.displayEntry.set_text(self.values[12]) -        self.boxes[13].pack_end(self.displayEntry,expand=False,fill=False)          self.displayEntry.show() -        self.boxes[13].show() +        self.boxes[11].pack_end(self.displayEntry,expand=False,fill=False) +          self.mouseComboBox = gtk.combo_box_new_text()          for i in range(4):              self.mouseComboBox.append_text(self.mouseStrings[i])          self.mouseComboBox.set_active(self.values[1]) -        self.boxes[14].pack_end(self.mouseComboBox,expand=False,fill=False)          self.mouseComboBox.show() -        self.boxes[14].show() -         -        self.fullComboBox = gtk.combo_box_new_text() -        for i in range(2): -            self.fullComboBox.append_text(self.stateStrings[i]) -        self.fullComboBox.set_active(self.values[3]) -        self.boxes[15].pack_end(self.fullComboBox,expand=False,fill=False) -        self.fullComboBox.show() -        self.boxes[15].show() -         +        self.boxes[12].pack_end(self.mouseComboBox,expand=False,fill=False) + +          self.sharedComboBox = gtk.combo_box_new_text()          for i in range(2):              self.sharedComboBox.append_text(self.stateStrings[i])          self.sharedComboBox.set_active(self.values[13]) -        self.boxes[16].pack_end(self.sharedComboBox,expand=False,fill=False)          self.sharedComboBox.show() -        self.boxes[16].show() -         -         -        self.frdropComboBox = gtk.combo_box_new_text() -        for i in range(2): -            self.frdropComboBox.append_text(self.stateStrings[i]) -        self.frdropComboBox.set_active(self.values[14]) -        self.boxes[17].pack_end(self.frdropComboBox,expand=False,fill=False) -        self.frdropComboBox.show() -        self.boxes[17].show() -         -        self.thresAdjustment=gtk.Adjustment(value=self.values[15], lower=0,upper=100, step_incr=1, page_incr=5, page_size=1) -        self.thresSpinButton= gtk.SpinButton(self.thresAdjustment, climb_rate=0.5, digits=0) -        self.boxes[18].pack_end(self.thresSpinButton,expand=False,fill=False) -        self.thresSpinButton.show() -        self.boxes[18].show() +        self.boxes[13].pack_end(self.sharedComboBox,expand=False,fill=False) -        self.quickComboBox = gtk.combo_box_new_text() -        for i in range(2): -            self.quickComboBox.append_text(self.stateStrings[i]) -        self.quickComboBox.set_active(self.values[16]) -        self.boxes[19].pack_end(self.quickComboBox,expand=False,fill=False) -        self.quickComboBox.show() -        self.boxes[19].show()         -         -#append and show         -        for i in range(3): +        for i in xrange(11,14): +            self.boxes[i].show() + + +#append and show +        for i in range(4):              self.notebook.append_page(self.labelbox[i],gtk.Label(self.tabStrings[i]))          self.window.add(self.notebook) -        for i in range(3): +        for i in range(4):              self.labelbox[i].show()          self.notebook.show() -    def __makeCons__(self): -        #self.pathButton.connect("clicked",self.__fileSelect__) -        self.okButton.connect("clicked",self.destroy)      def __init__(self,values,optionsOpen):          self.values=values @@ -266,12 +234,10 @@ class prefsWidget(object):          self.window.set_border_width(10)          self.window.set_title("recordMyDesktop")          self.__subWidgets__() -        self.__makeCons__() -         -         -        self.window.set_size_request(350,-1) + +        #self.window.set_size_request(350,-1)          self.window.show() -         +      def main(self):          gtk.main() diff --git a/gtk-recordmydesktop/src/rmdSimple.py b/gtk-recordmydesktop/src/rmdSimple.py index 3dcc7db..290ad7f 100644 --- a/gtk-recordmydesktop/src/rmdSimple.py +++ b/gtk-recordmydesktop/src/rmdSimple.py @@ -56,7 +56,7 @@ class simpleWidget(object):                     _('Select the audio quality of your recording.'),                     _('Click here to access more options.')]      tipLabelStrings=[_('\nLeft click and drag, on the preview image,\nto select an area for recording.\nRight click on it, to reset the area.')] -     +      options=None      optionsOpen=[0]      def __subWidgets__(self): @@ -68,27 +68,27 @@ class simpleWidget(object):          self.NESQBox=gtk.HBox(homogeneous=False, spacing=10)          self.NETABox=gtk.VBox(homogeneous=False, spacing=10)          self.NWBox=gtk.VBox(homogeneous=False, spacing=0) -         -         -         + + +          self.NBox.pack_start(self.NWBox,expand=False,fill=False)          self.NBox.pack_start(self.NEBox,expand=True,fill=True)          self.NEBox.pack_start(self.NEVQBox,expand=False,fill=False)          self.NEBox.pack_start(self.NESQBox,expand=False,fill=False)          self.NEBox.pack_start(self.NETABox,expand=False,fill=False) -         +          self.SBox=gtk.HBox(homogeneous=True, spacing=0)          self.SEBox=gtk.HBox(homogeneous=False, spacing=10)          self.SWBox=gtk.HBox(homogeneous=False, spacing=10)          self.SBox.pack_start(self.SWBox,expand=True,fill=True) -        self.SBox.pack_start(self.SEBox,expand=True,fill=True)         -         +        self.SBox.pack_start(self.SEBox,expand=True,fill=True) +          self.labelbox.pack_start(self.NBox,expand=False,fill=False)          self.labelbox.pack_end(self.SBox,expand=False,fill=False) -         +          self.wroot = gtk.gdk.get_default_root_window()          (self.wwidth, self.wheight) = self.wroot.get_size() -         +          self.factor=1;          twidth=self.wwidth          while twidth>320 or self.factor<4: @@ -111,7 +111,7 @@ class simpleWidget(object):          self.s_quality.set_digits(0)          self.v_label=gtk.Label("         "+self.labelStrings[0])          self.s_label=gtk.Label(self.labelStrings[1]) -         +          self.advanced_button=gtk.Button(self.buttonStrings[0])          self.tipLabel=gtk.Label(self.tipLabelStrings[0])          self.NEVQBox.pack_start(self.v_label,expand=False,fill=False) @@ -121,7 +121,7 @@ class simpleWidget(object):          self.NESQBox.pack_start(self.s_quality,expand=True,fill=True)          self.NETABox.pack_start(self.advanced_button,expand=False,fill=False)          self.NETABox.pack_start(self.tipLabel,expand=False,fill=False) -         +          self.win_button=gtk.Button(self.buttonStrings[1])          self.start_button=gtk.Button(None,gtk.STOCK_MEDIA_RECORD)          self.file_button=gtk.Button(None,gtk.STOCK_SAVE_AS) @@ -130,12 +130,12 @@ class simpleWidget(object):          self.SWBox.pack_start(self.start_button,False,False)          self.SEBox.pack_end(self.quit_button,False,False)          self.SEBox.pack_end(self.file_button,False,False) -         +          self.win_button.show()          self.start_button.show()          self.file_button.show()          self.quit_button.show() -         +          self.v_quality.show()          self.s_button.show()          self.s_quality.show() @@ -152,14 +152,14 @@ class simpleWidget(object):          self.SEBox.show()          self.SWBox.show()          self.SBox.show() -         +          self.labelbox.show()          self.window.add(self.labelbox)      def __tooltips__(self):          self.tooltips=gtk.Tooltips()          self.tooltips.set_tip(self.win_button,self.tooltipLabels[0])          self.tooltips.set_tip(self.start_button,self.tooltipLabels[1]) -        self.tooltips.set_tip(self.file_button,self.tooltipLabels[2])         +        self.tooltips.set_tip(self.file_button,self.tooltipLabels[2])          self.tooltips.set_tip(self.quit_button,self.tooltipLabels[3])          self.tooltips.set_tip(self.v_quality,self.tooltipLabels[4])          self.tooltips.set_tip(self.v_label,self.tooltipLabels[4]) @@ -167,7 +167,7 @@ class simpleWidget(object):          self.tooltips.set_tip(self.s_quality,self.tooltipLabels[6])          self.tooltips.set_tip(self.s_label,self.tooltipLabels[6])          self.tooltips.set_tip(self.advanced_button,self.tooltipLabels[7]) -         +      def __exit__(self,Event=None):          gtk.main_quit()          self.values[0]=-1 @@ -177,7 +177,7 @@ class simpleWidget(object):          self.window.hide()          self.hidden[0]=1      def show(self,Event=None): -        self.window.show()         +        self.window.show()          self.hidden[0]=0      def advanced(self,button=None):          if self.optionsOpen[0] ==0: @@ -188,10 +188,10 @@ class simpleWidget(object):              if self.options != None:                  self.options.window.destroy()                  self.optionsOpen[0]=0 -     +      def __fileSelQuit__(self,Event=None):          self.fileSel.destroy() -         +      def __fileSelOk__(self,Event=None):          self.values[4]=self.fileSel.get_filename()          #self.pathEntry.set_text(self.fileSel.get_filename()) @@ -199,10 +199,10 @@ class simpleWidget(object):      def __fileSelect__(self,Event=None):          self.fileSel = gtk.FileSelection(title=None) -        self.fileSel.ok_button.connect("clicked", self.__fileSelOk__)  +        self.fileSel.ok_button.connect("clicked", self.__fileSelOk__)          self.fileSel.cancel_button.connect("clicked", self.__fileSelQuit__)          self.fileSel.set_filename(self.values[4]) -        self.fileSel.show()  +        self.fileSel.show()      def __select_window__(self,button):          (stdin,stdout,stderr)=os.popen3('xwininfo','t')          wid=stdout.readlines() @@ -218,7 +218,7 @@ class simpleWidget(object):              elif i.lstrip().startswith('Width:'):                  width=int(i.split(' ')[len(i.split(' '))-1])              elif i.lstrip().startswith('Height:'): -                height=int(i.split(' ')[len(i.split(' '))-1])             +                height=int(i.split(' ')[len(i.split(' '))-1])          if x<0:              width+=x              x=0 @@ -226,13 +226,13 @@ class simpleWidget(object):              height+=y              y=0          if width+x>self.wwidth: width=self.wwidth-x -        if height+y>self.wheight: height=self.wheight-y     +        if height+y>self.wheight: height=self.wheight-y          self.values[5][0]=x          self.values[5][1]=y          self.values[5][2]=width+x          self.values[5][3]=height+y          self.image.update_image() -               +      def __makeCons__(self):          self.advanced_button.connect("clicked",self.advanced)          self.file_button.connect("clicked",self.__fileSelect__) @@ -247,23 +247,23 @@ class simpleWidget(object):      def update(self)  :          self.values[10]=int((self.v_quality.get_value()*63)/100)          self.values[11]=int(self.v_quality.get_value()/10) -         +      def __init__(self):          self.values= [15,0,True,1,os.path.join(os.getenv('HOME'),'out.ogg'),[-1,-1,-1,-1],0, -            1,22050,'hw:0,0',63,10,"$DISPLAY",0,1,75,1] +            1,22050,'hw:0,0',63,10,"$DISPLAY",0,1,75,1,os.path.join(os.getenv('HOME')),1,1,False]          self.optionsOpen=[0]          self.window = gtk.Window(gtk.WINDOW_TOPLEVEL)          self.window.connect("destroy", self.__exit__)          self.window.set_border_width(10)          self.window.set_title("recordMyDesktop")          self.__subWidgets__() -         +          #self.timed_id=gobject.timeout_add(2000,self.__update_image__)          #if resolution is low let it decide size on it's own          if self.wwidth>640:              self.window.set_size_request(int(self.wwidth/self.factor*2.3),-1)          self.window.set_resizable(False) -         +          self.trayIcon=trayIcon(self)          self.__makeCons__()          self.__tooltips__() diff --git a/gtk-recordmydesktop/src/rmdTrayIcon.py b/gtk-recordmydesktop/src/rmdTrayIcon.py index 7744f75..049f149 100644 --- a/gtk-recordmydesktop/src/rmdTrayIcon.py +++ b/gtk-recordmydesktop/src/rmdTrayIcon.py @@ -208,8 +208,14 @@ class trayIcon(object):          execargs.append('%d'%self.parent.values[15])          if self.parent.values[16] == 0:              execargs.append('--quick-subsampling') - - +        execargs.append('-workdir') +        execargs.append('%s'%self.parent.values[17]) +        if self.parent.values[18] == 0: +            execargs.append('--on-the-fly-encoding') +        if self.parent.values[19] == 0: +            execargs.append('--zero-compression') +        if self.parent.values[20] == True: +            execargs.append('--overwrite')          #print execargs | 
