~3v1n0/compiz/add-cursor-update-notify

« back to all changes in this revision

Viewing changes to debian/patches/ccsm_disable_unity_checkbox.patch

  • Committer: Marco Trevisan (Treviño)
  • Date: 2015-10-09 17:21:28 UTC
  • Revision ID: mail@3v1n0.net-20151009172128-xmpaytubn6sejuvp
debian/patches: remove them all, we now apply them uptream

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
Description: If in a Unity session, don't allow the user to disable Unity from main view.
2
 
Author: Andrew Starr-Bochicchio <a.starr.b@gmail.com>
3
 
 
4
 
=== modified file 'ccm/Widgets.py'
5
 
diff -Nur -x '*.orig' -x '*~' a/compizconfig/ccsm/ccm/Widgets.py b/compiconfig/ccsm/ccm/Widgets.py
6
 
--- a/compizconfig/ccsm/ccm/Widgets.py  2012-02-02 19:05:53.690931000 -0500
7
 
+++ b/compizconfig/ccsm/ccm/Widgets.py  2012-02-13 18:42:47.612544975 -0500
8
 
@@ -1401,7 +1401,11 @@
9
 
         button.set_tooltip_text (plugin.LongDesc)
10
 
         button.add (box)
11
 
 
12
 
-        if plugin.Name != 'core':
13
 
+        blacklist_plugins = ['core']
14
 
+        if os.getenv('DESKTOP_SESSION') == 'ubuntu':
15
 
+            blacklist_plugins.append('unityshell')
16
 
+
17
 
+        if plugin.Name not in blacklist_plugins:
18
 
             enable = gtk.CheckButton ()
19
 
             enable.set_tooltip_text(_("Enable %s") % plugin.ShortDesc)
20
 
             enable.set_active (plugin.Enabled)