diff options
Diffstat (limited to 'gtk-recordmydesktop')
-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): |