]> git.pld-linux.org Git - packages/control-center.git/blob - control-center-compiz-support.patch
- Requires(post,postun): gtk-update-icon-cache
[packages/control-center.git] / control-center-compiz-support.patch
1 --- control-center-2.15.91/capplets/keybindings/gnome-keybinding-properties.c.orig      2006-08-15 18:56:34.000000000 -0400
2 +++ control-center-2.15.91/capplets/keybindings/gnome-keybinding-properties.c   2006-08-15 18:56:45.000000000 -0400
3 @@ -64,6 +64,28 @@
4    { NULL }
5  };
6  
7 +#define COMPIZ_KEY(k) { "/apps/compiz/general/allscreens/options/" #k, ALWAYS_VISIBLE, 0 }
8 +
9 +static const KeyListEntry compiz_key_list[] =
10 +{
11 +  COMPIZ_KEY (close_window),
12 +  COMPIZ_KEY (lower_window),
13 +  COMPIZ_KEY (main_menu),
14 +  COMPIZ_KEY (maximize_window),
15 +  COMPIZ_KEY (maximize_window_horizontally),
16 +  COMPIZ_KEY (maximize_window_vertically),
17 +  COMPIZ_KEY (minimize_window),
18 +  COMPIZ_KEY (opacity_decrease),
19 +  COMPIZ_KEY (opacity_increase),
20 +  COMPIZ_KEY (show_desktop),
21 +  COMPIZ_KEY (toggle_window_maximized),
22 +  COMPIZ_KEY (toggle_window_maximized_horizontally),
23 +  COMPIZ_KEY (toggle_window_maximized_vertically),
24 +  COMPIZ_KEY (toggle_window_shaded),
25 +  COMPIZ_KEY (unmaximize_window),
26 +  COMPIZ_KEY (window_menu),
27 +};
28 +
29  static const KeyListEntry metacity_key_list[] =
30  {
31    { "/apps/metacity/window_keybindings/activate_window_menu",      ALWAYS_VISIBLE,  0 },
32 @@ -559,6 +581,10 @@
33      {
34        append_keys_to_tree (dialog, _("Window Management"), metacity_key_list);
35      }
36 +  else if (strcmp((char *) wm_name, WM_COMMON_COMPIZ) == 0)
37 +    {
38 +      append_keys_to_tree (dialog, _("Window Management"), compiz_key_list);
39 +    }
40  }
41  
42  static void
43 --- control-center-2.15.91/capplets/common/wm-common.h.orig     2006-08-15 18:56:14.000000000 -0400
44 +++ control-center-2.15.91/capplets/common/wm-common.h  2006-08-15 18:56:45.000000000 -0400
45 @@ -2,6 +2,7 @@
46  #define WM_COMMON_H
47  
48  #define WM_COMMON_METACITY "Metacity"
49 +#define WM_COMMON_COMPIZ   "compiz"
50  #define WM_COMMON_SAWFISH  "Sawfish"
51  #define WM_COMMON_UNKNOWN  "Unknown"
52  
This page took 0.027017 seconds and 3 git commands to generate.