aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/redshift-gtk/statusicon.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/redshift-gtk/statusicon.py b/src/redshift-gtk/statusicon.py
index 3e66649..04a944f 100644
--- a/src/redshift-gtk/statusicon.py
+++ b/src/redshift-gtk/statusicon.py
@@ -164,9 +164,11 @@ class RedshiftStatusIcon(object):
self.suspend_timer = None
# Handle child input
+ # The buffer is encapsulated in a class so we
+ # can pass an instance to the child callback.
class InputBuffer(object):
- lines = []
buf = ''
+
self.input_buffer = InputBuffer()
self.error_buffer = InputBuffer()
@@ -316,7 +318,6 @@ class RedshiftStatusIcon(object):
if sep == '':
break
ib.buf = last
- ib.lines.append(first)
if stdout:
self.child_stdout_line_cb(first)