2
# -*- coding: utf-8 -*-
5
# J Phani Mahesh <phanimahesh@gmail.com>
6
# Barneedhar (jokerdino) <barneedhar@ubuntu.com>
7
# Amith KK <amithkumaran@gmail.com>
8
# Georgi Karavasilev <motorslav@gmail.com>
9
# Sam Tran <samvtran@gmail.com>
10
# Sam Hewitt <hewittsamuel@gmail.com>
11
# Angel Araya <al.arayaq@gmail.com>
14
# A One-stop configuration tool for Unity.
18
# This file is a part of Unity Tweak Tool
20
# Unity Tweak Tool is free software; you can redistribute it and/or modify it under
21
# the terms of the GNU General Public License as published by the Free Software
22
# Foundation; version 3.
24
# Unity Tweak Tool is distributed in the hope that it will be useful, but WITHOUT
25
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
26
# FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
29
# You should have received a copy of the GNU General Public License along with
30
# this program; if not, see <https://www.gnu.org/licenses/gpl-3.0.txt>
33
from UnityTweakTool.section.skeletonpage import Section, Tab
34
from UnityTweakTool.elements.switch import Switch
36
from UnityTweakTool.section.sphagetti.compiz import Compizsettings as SphagettiCompizSettings
37
from UnityTweakTool.elements.option import Option,HandlerObject
40
WindowManager=Section(ui='compiz.ui',id='nb_compizsettings')
42
#sw_compiz_zoom= Switch({
43
# 'id' : 'sw_compiz_zoom',
44
# 'builder' : WindowManager.builder,
45
# 'schema' : 'org.compiz.ezoom',
46
# 'path' : '/org/compiz/profiles/unity/plugins/ezoom/',
47
# 'key' : 'integration-allowed',
49
# 'map' : {True:True,False:False},
52
#GeneralIcons=Tab([sw_compiz_zoom])
54
## Each page must be added using add_page
55
#WindowManager.add_page(GeneralIcons)
57
# XXX : Sphagetti bridge
58
wmsettings=HandlerObject(SphagettiCompizSettings(WindowManager.builder))
59
WindowManager.add_page(wmsettings)
61
# After all pages are added, the section needs to be registered to start listening for events
62
WindowManager.register()