diff options
-rw-r--r-- | NEWS | 1 | ||||
-rwxr-xr-x | activity/activity.info | 2 | ||||
-rw-r--r-- | constants.py | 4 | ||||
-rw-r--r-- | model.py | 8 | ||||
-rw-r--r-- | ui.py | 3 | ||||
-rw-r--r-- | utils.py | 9 |
6 files changed, 3 insertions, 24 deletions
@@ -1,7 +1,6 @@ 41 * #5177, fullscreen compliance for u1 * #4813, clipboard files via /instance not /tmp -* address #4983 40 * filepath changes for bitfrost, rainbow diff --git a/activity/activity.info b/activity/activity.info index 0681354..037bfa6 100755 --- a/activity/activity.info +++ b/activity/activity.info @@ -3,5 +3,5 @@ name = Record service_name = org.laptop.RecordActivity class = record.Record icon = activity-record -activity_version = 40 +activity_version = 41 show_launcher = yes
\ No newline at end of file diff --git a/constants.py b/constants.py index 562a3a8..ef2411a 100644 --- a/constants.py +++ b/constants.py @@ -16,7 +16,7 @@ import pangocairo class Constants: - VERSION = 39 + VERSION = 41 SERVICE = "org.laptop.Record" IFACE = SERVICE @@ -155,8 +155,6 @@ class Constants: dim_CONTROLBAR_HT = 55 - keepFreeKbOnXo = 200000 - def __init__( self, ca ): self.__class__.activityId = ca._activity_id @@ -60,14 +60,6 @@ class Model: self.mediaHashs[key] = [] - def isXoFull( self ): - if (utils.getFreespaceKb() <= Constants.keepFreeKbOnXo): - self.ui.setDiskFull() - return True - else: - return False - - def getRecdByMd5( self, md5 ): for mh in range (0, len(self.mediaHashs)): for r in range (0, len(self.mediaHashs[mh])): @@ -1154,9 +1154,6 @@ class UI: def doShutter( self ):
- if (self.ca.m.isXoFull()):
- return
-
if (self.UPDATE_TIMER_ID == 0):
if (not self.ca.m.RECORDING):
#there is no update timer running, so we need to find out if there is a timer needed
@@ -108,11 +108,4 @@ def grayScalePixBuf2( pb, copy ): def grayScalePixBuf( pb, copy ): pb2 = gtk.gdk.Pixbuf(gtk.gdk.COLORSPACE_RGB, False, 8, pb.get_width(), pb.get_height()) pb.saturate_and_pixelate(pb2, 0, 0) - return pb2 - - -def getFreespaceKb( ): - stat = os.statvfs("/home") - freebytes = stat[statvfs.F_BSIZE] * stat[statvfs.F_BAVAIL] - freekb = freebytes / 1024 - return freekb
\ No newline at end of file + return pb2
\ No newline at end of file |