diff options
author | iovar <iovar@f606c939-3180-4ac9-a4b8-4b8779d57d0a> | 2007-08-09 23:11:43 +0000 |
---|---|---|
committer | iovar <iovar@f606c939-3180-4ac9-a4b8-4b8779d57d0a> | 2007-08-09 23:11:43 +0000 |
commit | c364387c6657769e29ade8fe16038a1c9b6fa1e0 (patch) | |
tree | 57e4a0e606ec4c32c70d41b185fe5e399801063d /gtk-recordmydesktop/src/rmdSelectThumb.py | |
parent | b5244639d1b3e38b1c56e03e7f65b8da44970233 (diff) |
rmdConfig.py.in, rmdFrame.py, rmdPrefsWidget.py,
rmdSelectThumb.py, rmdSimple.py, rmdStrings.py,
rmdTrayIcon.py : Added follow mouse option in the
Preferences Widget and all relevant functionality
( save/load , defaults, string/tooltip). Also added
moveFrame method so that the frame can follow
the mouse.
git-svn-id: https://recordmydesktop.svn.sourceforge.net/svnroot/recordmydesktop/trunk@406 f606c939-3180-4ac9-a4b8-4b8779d57d0a
Diffstat (limited to 'gtk-recordmydesktop/src/rmdSelectThumb.py')
-rwxr-xr-x | gtk-recordmydesktop/src/rmdSelectThumb.py | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/gtk-recordmydesktop/src/rmdSelectThumb.py b/gtk-recordmydesktop/src/rmdSelectThumb.py index 5e305a5..b9533aa 100755 --- a/gtk-recordmydesktop/src/rmdSelectThumb.py +++ b/gtk-recordmydesktop/src/rmdSelectThumb.py @@ -192,8 +192,11 @@ class GtkThumbSelector(gtk.DrawingArea): if self.area_return[3]>=0: vals[3]=self.area_return[3]-self.area_return[1] if vals[0] >0 or vals[1] >0 or vals[2] <self.wwidth or vals[3] <self.wheight: - if self.selecting==0: + if self.selecting==0 and self.caller.values[15]==1: self.__draw_lines__(self.root,vals,self.factor) + elif self.selecting==0 and self.caller.values[15]==0: + self.__check_frame__() + elif self.realFrame!=None: self.realFrame.destroy() self.realFrame=None @@ -210,9 +213,13 @@ class GtkThumbSelector(gtk.DrawingArea): img.put_pixel(vals[0]/factor+k,i,0xff0000) img.put_pixel((vals[0]+vals[2]/2-k)/factor,i,0xff0000) img.put_pixel((vals[0]+vals[2]-1-k)/factor,i,0xff0000) + self.__check_frame__() + + def __check_frame__(self): if self.realFrame!=None: - if (self.area_return[0]!=self.realFrame.x or - self.area_return[1]!=self.realFrame.y or + if (((self.area_return[0]!=self.realFrame.x or + self.area_return[1]!=self.realFrame.y) and + self.caller.values[15]==1) or self.area_return[2]-self.area_return[0]!=self.realFrame.w or self.area_return[3]-self.area_return[1]!=self.realFrame.h or self.caller.values[25]): @@ -228,7 +235,8 @@ class GtkThumbSelector(gtk.DrawingArea): self.realFrame=rmdFrame(self.area_return[0], self.area_return[1], self.area_return[2]-self.area_return[0], - self.area_return[3]-self.area_return[1]) + self.area_return[3]-self.area_return[1], + self.caller) #area_return=[-1,-1,-1,-1] |