From ac740eb5388270cdac07829645c4b9f652db83e2 Mon Sep 17 00:00:00 2001 From: Jon Lund Steffensen Date: Mon, 14 Jun 2010 19:37:28 +0200 Subject: Toggle icon of status icon. --- src/gtk-redshift/statusicon.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src') 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) -- cgit v1.2.3-70-g09d2