diff options
author | iovar <iovar@f606c939-3180-4ac9-a4b8-4b8779d57d0a> | 2006-09-18 06:36:12 +0000 |
---|---|---|
committer | iovar <iovar@f606c939-3180-4ac9-a4b8-4b8779d57d0a> | 2006-09-18 06:36:12 +0000 |
commit | 775d72f765f238a6e00674987070b34357d7388e (patch) | |
tree | 9f1a5f9d47b15e9ed9ddff67d767d774ceaec7cc | |
parent | 5fb17e6efd666ec3cc6f422e9c9ded7ac7f4ab24 (diff) |
area select fix
git-svn-id: https://recordmydesktop.svn.sourceforge.net/svnroot/recordmydesktop/trunk@59 f606c939-3180-4ac9-a4b8-4b8779d57d0a
-rw-r--r-- | gtk-recordmydesktop/rmdSelect.py | 8 | ||||
-rw-r--r-- | gtk-recordmydesktop/rmdTrayIcon.py | 2 |
2 files changed, 5 insertions, 5 deletions
diff --git a/gtk-recordmydesktop/rmdSelect.py b/gtk-recordmydesktop/rmdSelect.py index a88be50..45dfb2f 100644 --- a/gtk-recordmydesktop/rmdSelect.py +++ b/gtk-recordmydesktop/rmdSelect.py @@ -102,10 +102,10 @@ class GtkAreaSelector(gtk.Window): self.x2 = event.x + 1 self.y2 = event.y + 1 # stop - self.area_return[0]=int(self.x1) - self.area_return[1]=int(self.y1) - self.area_return[2]=int(self.x2) - self.area_return[3]=int(self.y2) + self.area_return[0]=min(int(self.x1),int(self.x2)) + self.area_return[1]=min(int(self.y1),int(self.y2)) + self.area_return[2]=max(int(self.x1),int(self.x2)) + self.area_return[3]=max(int(self.y1),int(self.y2)) dialog = gtk.Dialog(title=None, parent=None, flags=0, buttons=None) label1 = gtk.Label("Recording area for the next session\n\t\t\tis set to:") dialog.vbox.pack_start(label1, True, True, 0) diff --git a/gtk-recordmydesktop/rmdTrayIcon.py b/gtk-recordmydesktop/rmdTrayIcon.py index 69ea055..77423a5 100644 --- a/gtk-recordmydesktop/rmdTrayIcon.py +++ b/gtk-recordmydesktop/rmdTrayIcon.py @@ -204,7 +204,7 @@ class trayIcon(object): else: self.__exit_status_dialog(exit_ret[1]) self.rmdPid=None - print exit_ret + #print exit_ret def __init__(self): |