aboutsummaryrefslogtreecommitdiffstats
path: root/src/gtk-redshift
diff options
context:
space:
mode:
authorJon Lund Steffensen <jonlst@gmail.com>2010-06-14 19:37:28 +0200
committerJon Lund Steffensen <jonlst@gmail.com>2010-06-14 19:37:28 +0200
commitac740eb5388270cdac07829645c4b9f652db83e2 (patch)
treefd65416be4a86b5d183a61a4a56922521d1d4bdc /src/gtk-redshift
parentAdd missing file to Makefile.am. (diff)
downloadredshift-ng-ac740eb5388270cdac07829645c4b9f652db83e2.tar.gz
redshift-ng-ac740eb5388270cdac07829645c4b9f652db83e2.tar.bz2
redshift-ng-ac740eb5388270cdac07829645c4b9f652db83e2.tar.xz
Toggle icon of status icon.
Diffstat (limited to 'src/gtk-redshift')
-rw-r--r--src/gtk-redshift/statusicon.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gtk-redshift/statusicon.py b/src/gtk-redshift/statusicon.py
index 2295963..9b544ab 100644
--- a/src/gtk-redshift/statusicon.py
+++ b/src/gtk-redshift/statusicon.py
@@ -49,6 +49,10 @@ def run():
def toggle_cb(widget, data=None):
process.send_signal(signal.SIGUSR1)
+ if status_icon.get_icon_name() == 'redshift':
+ status_icon.set_from_icon_name('redshift-idle')
+ else:
+ status_icon.set_from_icon_name('redshift')
def destroy_cb(widget, data=None):
status_icon.set_visible(False)