~dobey/redshift/packaging-dailies

« back to all changes in this revision

Viewing changes to patches/remove_autostart.patch

  • Committer: Rodney Dawes
  • Date: 2017-08-19 17:08:18 UTC
  • Revision ID: dobey@wayofthemonkey.com-20170819170818-h4ufobn0zrm56buf
Remove obsolete patches.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
This patch removes the invocation of get_autostart() and
2
 
set_autostart(active). So gtk-redshift won't autostart (see #619699)
3
 
Index: redshift/src/redshift-gtk/statusicon.py
4
 
===================================================================
5
 
--- redshift.orig/src/redshift-gtk/statusicon.py        2014-08-05 15:03:21.262084904 +0530
6
 
+++ redshift/src/redshift-gtk/statusicon.py     2014-08-05 15:04:16.034652291 +0530
7
 
@@ -94,18 +94,6 @@
8
 
         suspend_menu_item.set_submenu(suspend_menu)
9
 
         self.status_menu.append(suspend_menu_item)
10
 
 
11
 
-        # Add autostart option
12
 
-        autostart_item = Gtk.CheckMenuItem.new_with_label(_('Autostart'))
13
 
-        try:
14
 
-            autostart_item.set_active(utils.get_autostart())
15
 
-        except IOError as strerror:
16
 
-            print(strerror)
17
 
-            autostart_item.set_property('sensitive', False)
18
 
-        else:
19
 
-            autostart_item.connect('toggled', self.autostart_cb)
20
 
-        finally:
21
 
-            self.status_menu.append(autostart_item)
22
 
-
23
 
         # Add info action
24
 
         info_item = Gtk.MenuItem.new_with_label(_('Info'))
25
 
         info_item.connect('activate', self.show_info_cb)