Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--NEWS1
-rwxr-xr-xactivity/activity.info2
-rw-r--r--constants.py4
-rw-r--r--model.py8
-rw-r--r--ui.py3
-rw-r--r--utils.py9
6 files changed, 3 insertions, 24 deletions
diff --git a/NEWS b/NEWS
index bf7629c..0e4bdde 100644
--- a/NEWS
+++ b/NEWS
@@ -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
diff --git a/model.py b/model.py
index caafa8a..bec3662 100644
--- a/model.py
+++ b/model.py
@@ -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])):
diff --git a/ui.py b/ui.py
index a4eedd9..bf1613f 100644
--- a/ui.py
+++ b/ui.py
@@ -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
diff --git a/utils.py b/utils.py
index dfdeb25..b17dbfe 100644
--- a/utils.py
+++ b/utils.py
@@ -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