~muktupavels/compiz/gwd-theme-style-window

« back to all changes in this revision

Viewing changes to debian/patches/ccsm_disable_unity_checkbox.patch

  • Committer: Michael Terry
  • Date: 2012-11-05 20:50:59 UTC
  • mfrom: (3248.1.74 sru-urgent)
  • mto: This revision was merged to the branch mainline in revision 3451.
  • Revision ID: michael.terry@canonical.com-20121105205059-fe1su1x9tobktg8u
move debian/ packaging inline

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)