Merge lp:~andrewsomething/compizconfig-settings-manager/disable_unity_checkbox into lp:~compiz/compizconfig-settings-manager/ubuntu

Proposed by Andrew Starr-Bochicchio
Status: Merged
Merged at revision: 60
Proposed branch: lp:~andrewsomething/compizconfig-settings-manager/disable_unity_checkbox
Merge into: lp:~compiz/compizconfig-settings-manager/ubuntu
Diff against target: 40 lines (+28/-0)
2 files modified
debian/changelog (+8/-0)
debian/patches/03_disable_unity_checkbox.patch (+20/-0)
To merge this branch: bzr merge lp:~andrewsomething/compizconfig-settings-manager/disable_unity_checkbox
Reviewer Review Type Date Requested Status
Didier Roche-Tolomelli Approve
Review via email: mp+92879@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Didier Roche-Tolomelli (didrocks) wrote :

nice work! Thanks a lot for taking my advice into account, merging it as well :)

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'debian/changelog'
2--- debian/changelog 2012-02-01 11:50:50 +0000
3+++ debian/changelog 2012-02-13 23:50:24 +0000
4@@ -1,3 +1,11 @@
5+compizconfig-settings-manager (0.9.5.92-0ubuntu3) precise; urgency=low
6+
7+ * debian/patches/03_disable_unity_checkbox.patch:
8+ - If in a Unity session, don't allow the user to disable
9+ Unity from main view.
10+
11+ -- Andrew Starr-Bochicchio <a.starr.b@gmail.com> Thu, 02 Feb 2012 19:07:59 -0500
12+
13 compizconfig-settings-manager (0.9.5.92-0ubuntu2) precise; urgency=low
14
15 [Alan Bell]
16
17=== added file 'debian/patches/03_disable_unity_checkbox.patch'
18--- debian/patches/03_disable_unity_checkbox.patch 1970-01-01 00:00:00 +0000
19+++ debian/patches/03_disable_unity_checkbox.patch 2012-02-13 23:50:24 +0000
20@@ -0,0 +1,20 @@
21+Description: If in a Unity session, don't allow the user to disable Unity from main view.
22+Author: Andrew Starr-Bochicchio <a.starr.b@gmail.com>
23+
24+=== modified file 'ccm/Widgets.py'
25+diff -Nur -x '*.orig' -x '*~' ccsm-checkbox//ccm/Widgets.py ccsm-checkbox.new//ccm/Widgets.py
26+--- ccsm-checkbox//ccm/Widgets.py 2012-02-02 19:05:53.690931000 -0500
27++++ ccsm-checkbox.new//ccm/Widgets.py 2012-02-13 18:42:47.612544975 -0500
28+@@ -1401,7 +1401,11 @@
29+ button.set_tooltip_text (plugin.LongDesc)
30+ button.add (box)
31+
32+- if plugin.Name != 'core':
33++ blacklist_plugins = ['core']
34++ if os.getenv('DESKTOP_SESSION') == 'ubuntu':
35++ blacklist_plugins.append('unityshell')
36++
37++ if plugin.Name not in blacklist_plugins:
38+ enable = gtk.CheckButton ()
39+ enable.set_tooltip_text(_("Enable %s") % plugin.ShortDesc)
40+ enable.set_active (plugin.Enabled)

Subscribers

People subscribed via source and target branches