aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJon Lund Steffensen <jonlst@gmail.com>2019-03-04 08:40:16 -0800
committerGitHub <noreply@github.com>2019-03-04 08:40:16 -0800
commit04760afe31bff5b26cf18fe51606e7bdeac15504 (patch)
treee70f3a6060b9c3eef097766088f8082b04620067
parentMerge pull request #679 from jonls/ini-hash-comment (diff)
parentFix #386: added more suspend durations as requested (diff)
downloadredshift-ng-04760afe31bff5b26cf18fe51606e7bdeac15504.tar.gz
redshift-ng-04760afe31bff5b26cf18fe51606e7bdeac15504.tar.bz2
redshift-ng-04760afe31bff5b26cf18fe51606e7bdeac15504.tar.xz
Merge pull request #710 from hubvu/suspend-feature
Fix #386: added more suspend durations as requested
-rw-r--r--src/redshift-gtk/statusicon.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/redshift-gtk/statusicon.py b/src/redshift-gtk/statusicon.py
index a0ffd7a..b4adfb0 100644
--- a/src/redshift-gtk/statusicon.py
+++ b/src/redshift-gtk/statusicon.py
@@ -84,7 +84,9 @@ class RedshiftStatusIcon(object):
suspend_menu = Gtk.Menu()
for minutes, label in [(30, _('30 minutes')),
(60, _('1 hour')),
- (120, _('2 hours'))]:
+ (120, _('2 hours')),
+ (240, _('4 hours')),
+ (480, _('8 hours'))]:
suspend_item = Gtk.MenuItem.new_with_label(label)
suspend_item.connect('activate', self.suspend_cb, minutes)
suspend_menu.append(suspend_item)