Merge lp:~compiz-team/compiz/compiz.gnome-control-center-integration into lp:compiz/0.9.8

Proposed by Sam Spilsbury
Status: Merged
Approved by: Sam Spilsbury
Approved revision: 3312
Merged at revision: 3310
Proposed branch: lp:~compiz-team/compiz/compiz.gnome-control-center-integration
Merge into: lp:compiz/0.9.8
Diff against target: 242 lines (+178/-2)
8 files modified
cmake/CompizCommon.cmake (+17/-2)
gtk/gnome/50-compiz-launchers.xml.in (+6/-0)
gtk/gnome/50-compiz-navigation.xml.in (+74/-0)
gtk/gnome/50-compiz-screenshot.xml.in (+8/-0)
gtk/gnome/50-compiz-system.xml.in (+8/-0)
gtk/gnome/50-compiz-windows.xml.in (+32/-0)
gtk/gnome/CMakeLists.txt (+28/-0)
po/POTFILES.in (+5/-0)
To merge this branch: bzr merge lp:~compiz-team/compiz/compiz.gnome-control-center-integration
Reviewer Review Type Date Requested Status
Timo Jyrinki Approve
Review via email: mp+120543@code.launchpad.net

Commit message

Adds keybinding integration for g-c-c

Description of the change

Adds keybinding integration for g-c-c

To post a comment you must log in.
Revision history for this message
Timo Jyrinki (timo-jyrinki) wrote :

This seems to be working as intended.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'cmake/CompizCommon.cmake'
2--- cmake/CompizCommon.cmake 2012-08-02 23:42:20 +0000
3+++ cmake/CompizCommon.cmake 2012-08-21 11:38:10 +0000
4@@ -457,14 +457,29 @@
5 find_program (INTLTOOL_MERGE_EXECUTABLE intltool-merge)
6 mark_as_advanced (FORCE INTLTOOL_MERGE_EXECUTABLE)
7
8+ set (_additional_arg
9+ -x
10+ -u
11+ ${COMPIZ_I18N_DIR})
12+
13+ foreach (_arg ${ARGN})
14+ if ("${_arg}" STREQUAL "NOTRANSLATIONS")
15+ set (_additional_arg
16+ --no-translations
17+ -x
18+ -u)
19+ endif ("${_arg}" STREQUAL "NOTRANSLATIONS")
20+ endforeach (_arg ${ARGN})
21+
22 if (INTLTOOL_MERGE_EXECUTABLE
23 AND COMPIZ_I18N_DIR
24 AND EXISTS ${COMPIZ_I18N_DIR})
25 add_custom_command (
26 OUTPUT ${_dst}
27- COMMAND ${INTLTOOL_MERGE_EXECUTABLE} -x -u -c
28+ COMMAND ${INTLTOOL_MERGE_EXECUTABLE}
29+ -c
30 ${CMAKE_BINARY_DIR}/.intltool-merge-cache
31- ${COMPIZ_I18N_DIR}
32+ ${_additional_arg}
33 ${_src}
34 ${_dst}
35 DEPENDS ${_src}
36
37=== added file 'gtk/gnome/50-compiz-launchers.xml.in'
38--- gtk/gnome/50-compiz-launchers.xml.in 1970-01-01 00:00:00 +0000
39+++ gtk/gnome/50-compiz-launchers.xml.in 2012-08-21 11:38:10 +0000
40@@ -0,0 +1,6 @@
41+<?xml version="1.0" encoding="UTF-8"?>
42+<KeyListEntries schema="org.compiz.integrated" wm_name="Compiz" group="system" _name="Launchers" package="compiz">
43+
44+ <KeyListEntry name="exec" _description="Launch Terminal"/>
45+
46+</KeyListEntries>
47
48=== added file 'gtk/gnome/50-compiz-navigation.xml.in'
49--- gtk/gnome/50-compiz-navigation.xml.in 1970-01-01 00:00:00 +0000
50+++ gtk/gnome/50-compiz-navigation.xml.in 2012-08-21 11:38:10 +0000
51@@ -0,0 +1,74 @@
52+<?xml version="1.0" encoding="UTF-8"?>
53+<KeyListEntries schema="org.gnome.desktop.wm.keybindings" wm_name="Compiz" group="system" _name="Navigation" package="compiz">
54+
55+ <KeyListEntry name="move-to-workspace-1" _description="Move window to workspace 1" />
56+
57+ <KeyListEntry name="move-to-workspace-2" _description="Move window to workspace 2" />
58+
59+ <KeyListEntry name="move-to-workspace-3" _description="Move window to workspace 3" />
60+
61+ <KeyListEntry name="move-to-workspace-4" _description="Move window to workspace 4" />
62+
63+ <KeyListEntry name="move-to-workspace-5" _description="Move window to workspace 5" />
64+
65+ <KeyListEntry name="move-to-workspace-6" _description="Move window to workspace 6" />
66+
67+ <KeyListEntry name="move-to-workspace-7" _description="Move window to workspace 7" />
68+
69+ <KeyListEntry name="move-to-workspace-8" _description="Move window to workspace 8" />
70+
71+ <KeyListEntry name="move-to-workspace-9" _description="Move window to workspace 9" />
72+
73+ <KeyListEntry name="move-to-workspace-10" _description="Move window to workspace 10" />
74+
75+ <KeyListEntry name="move-to-workspace-11" _description="Move window to workspace 11" />
76+
77+ <KeyListEntry name="move-to-workspace-12" _description="Move window to workspace 12" />
78+
79+ <KeyListEntry name="move-to-workspace-left" _description="Move window one workspace to the left" />
80+
81+ <KeyListEntry name="move-to-workspace-right" _description="Move window one workspace to the right" />
82+
83+ <KeyListEntry name="move-to-workspace-up" _description="Move window one workspace up" />
84+
85+ <KeyListEntry name="move-to-workspace-down" _description="Move window one workspace down" />
86+
87+ <KeyListEntry name="switch-windows" _description="Switch applications"/>
88+
89+ <KeyListEntry name="switch-group" _description="Switch windows of an app directly"/>
90+
91+ <KeyListEntry name="show-desktop" _description="Hide all normal windows" />
92+
93+ <KeyListEntry name="switch-to-workspace-1" _description="Switch to workspace 1" />
94+
95+ <KeyListEntry name="switch-to-workspace-2" _description="Switch to workspace 2" />
96+
97+ <KeyListEntry name="switch-to-workspace-3" _description="Switch to workspace 3" />
98+
99+ <KeyListEntry name="switch-to-workspace-4" _description="Switch to workspace 4" />
100+
101+ <KeyListEntry name="switch-to-workspace-5" _description="Switch to workspace 5" />
102+
103+ <KeyListEntry name="switch-to-workspace-6" _description="Switch to workspace 6" />
104+
105+ <KeyListEntry name="switch-to-workspace-7" _description="Switch to workspace 7" />
106+
107+ <KeyListEntry name="switch-to-workspace-8" _description="Switch to workspace 8" />
108+
109+ <KeyListEntry name="switch-to-workspace-9" _description="Switch to workspace 9" />
110+
111+ <KeyListEntry name="switch-to-workspace-10" _description="Switch to workspace 10" />
112+
113+ <KeyListEntry name="switch-to-workspace-11" _description="Switch to workspace 11" />
114+
115+ <KeyListEntry name="switch-to-workspace-12" _description="Switch to workspace 12" />
116+
117+ <KeyListEntry name="switch-to-workspace-left" _description="Switch to workspace left" />
118+
119+ <KeyListEntry name="switch-to-workspace-right" _description="Switch to workspace right"/>
120+
121+ <KeyListEntry name="switch-to-workspace-up" _description="Switch to workspace above"/>
122+
123+ <KeyListEntry name="switch-to-workspace-down" _description="Switch to workspace below"/>
124+
125+</KeyListEntries>
126
127=== added file 'gtk/gnome/50-compiz-screenshot.xml.in'
128--- gtk/gnome/50-compiz-screenshot.xml.in 1970-01-01 00:00:00 +0000
129+++ gtk/gnome/50-compiz-screenshot.xml.in 2012-08-21 11:38:10 +0000
130@@ -0,0 +1,8 @@
131+<?xml version="1.0" encoding="UTF-8"?>
132+<KeyListEntries schema="org.compiz.integrated" wm_name="Compiz" group="system" _name="Screenshots" package="compiz">
133+
134+ <KeyListEntry name="run-command-screenshot" _description="Take a screenshot" />
135+
136+ <KeyListEntry name="run-command-window-screenshot" _description="Take a screenshot of a window"/>
137+
138+</KeyListEntries>
139
140=== added file 'gtk/gnome/50-compiz-system.xml.in'
141--- gtk/gnome/50-compiz-system.xml.in 1970-01-01 00:00:00 +0000
142+++ gtk/gnome/50-compiz-system.xml.in 2012-08-21 11:38:10 +0000
143@@ -0,0 +1,8 @@
144+<?xml version="1.0" encoding="UTF-8"?>
145+<KeyListEntries schema="org.compiz.integrated" wm_name="Compiz" group="system" _name="System" package="compiz">
146+
147+ <KeyListEntry name="panel-run-dialog" _description="Show the run command prompt" />
148+
149+ <KeyListEntry name="panel-main-menu" _description="Show the activities overview" />
150+
151+</KeyListEntries>
152
153=== added file 'gtk/gnome/50-compiz-windows.xml.in'
154--- gtk/gnome/50-compiz-windows.xml.in 1970-01-01 00:00:00 +0000
155+++ gtk/gnome/50-compiz-windows.xml.in 2012-08-21 11:38:10 +0000
156@@ -0,0 +1,32 @@
157+<?xml version="1.0" encoding="UTF-8"?>
158+<KeyListEntries schema="org.gnome.desktop.wm.keybindings" wm_name="Compiz" group="system" _name="Windows" package="compiz">
159+
160+ <KeyListEntry name="activate-window-menu" _description="Activate the window menu" />
161+
162+ <KeyListEntry name="toggle-fullscreen" _description="Toggle fullscreen mode" />
163+
164+ <KeyListEntry name="toggle-maximized" _description="Toggle maximization state" />
165+
166+ <KeyListEntry name="maximize" _description="Maximize window" />
167+
168+ <KeyListEntry name="unmaximize" _description="Restore window" />
169+
170+ <KeyListEntry name="toggle-shaded" _description="Toggle shaded state" />
171+
172+ <KeyListEntry name="close" _description="Close window" />
173+
174+ <KeyListEntry name="minimize" _description="Minimize window" />
175+
176+ <KeyListEntry name="begin-move" _description="Move window" />
177+
178+ <KeyListEntry name="begin-resize" _description="Resize window" />
179+
180+ <KeyListEntry name="raise" _description="Raise window above other windows" />
181+
182+ <KeyListEntry name="lower" _description="Lower window below other windows" />
183+
184+ <KeyListEntry name="maximize-vertically" _description="Maximize window vertically" />
185+
186+ <KeyListEntry name="maximize-horizontally" _description="Maximize window horizontally" />
187+
188+</KeyListEntries>
189
190=== modified file 'gtk/gnome/CMakeLists.txt'
191--- gtk/gnome/CMakeLists.txt 2012-05-24 00:55:17 +0000
192+++ gtk/gnome/CMakeLists.txt 2012-08-21 11:38:10 +0000
193@@ -9,5 +9,33 @@
194 DESTINATION ${datadir}/applications
195 )
196
197+ set (_keybindings_files
198+ 50-compiz-launchers.xml.in
199+ 50-compiz-navigation.xml.in
200+ 50-compiz-screenshot.xml.in
201+ 50-compiz-system.xml.in
202+ 50-compiz-windows.xml.in)
203+
204+ set (_keybindings_files_translated "")
205+
206+ foreach (_keybinding_file ${_keybindings_files})
207+ string (LENGTH ${_keybinding_file} _str_len)
208+ math (EXPR _str_len_no_in "${_str_len} - 3")
209+ string (SUBSTRING ${_keybinding_file} 0 ${_str_len_no_in} _keybinding_file_no_in)
210+
211+ compiz_translate_xml (${CMAKE_CURRENT_SOURCE_DIR}/${_keybinding_file}
212+ ${CMAKE_CURRENT_BINARY_DIR}/${_keybinding_file_no_in} NOTRANSLATIONS)
213+
214+ list (APPEND _keybindings_files_translated ${CMAKE_CURRENT_BINARY_DIR}/${_keybinding_file_no_in})
215+ endforeach (_keybinding_file ${keybinding_files})
216+
217+ add_custom_target (compiz-gnome-keybindings ALL DEPENDS
218+ ${_keybindings_files_translated})
219+
220+ install (
221+ FILES ${_keybinding_files_translated}
222+ DESTINATION ${datadir}/gnome-control-center/keybindings
223+ )
224+
225 add_custom_target (compiz.desktop ALL SOURCES ${desktop_file})
226 endif (BUILD_GNOME)
227
228=== modified file 'po/POTFILES.in'
229--- po/POTFILES.in 2012-02-18 01:34:16 +0000
230+++ po/POTFILES.in 2012-08-21 11:38:10 +0000
231@@ -3,6 +3,11 @@
232 gtk/window-decorator/forcequit.c
233 gtk/window-decorator/gtk-window-decorator.c
234 gtk/window-decorator/gwd.schemas.in
235+gtk/gnome/50-compiz-launchers.xml.in
236+gtk/gnome/50-compiz-navigation.xml.in
237+gtk/gnome/50-compiz-screenshot.xml.in
238+gtk/gnome/50-compiz-windows.xml.in
239+gtk/gnome/50-compiz-system.xml.in
240 metadata/core.xml.in
241 plugins/annotate/annotate.xml.in
242 plugins/blur/blur.xml.in

Subscribers

People subscribed via source and target branches