~ubuntu-branches/ubuntu/raring/metacity/raring

« back to all changes in this revision

Viewing changes to .pc/16-capture-before-unmap.patch/src/include/prefs.h

  • Committer: Package Import Robot
  • Author(s): Jeremy Bicha
  • Date: 2012-08-23 11:12:43 UTC
  • mfrom: (1.2.64) (2.1.13 quantal-proposed)
  • Revision ID: package-import@ubuntu.com-20120823111243-v2ome3yisozc1dhw
* Resync with Debian & refresh patches. (LP: #1032120, LP: #1035261)
  Remaining changes:
* debian/control:
  - Suggest gnome-themes-standard instead of recommend
  - Add Vcs-Bzr link
* debian/metacity-common.gsettings-override:
  - Set Ubuntu default button layout order for Classic session
  - Drop previous gconf overrides as obsolete
* debian/patches/04_support_drag_drop_with_alt_tab.patch:
  - Support alt-tab during drag and drop.
* debian/patches/05_raise_on_click_for_click_mode.patch:
  - Use raise on click option.
* debian/patches/06_Add_UXD_shadows_and_borders.patch:
  - patch for a new key in the ubuntu theme for shows and borders
* debian/patches/10_no-ws-switcher.patch:
  - Don't show the workspace switcher if we only have one.
* debian/patches/12_dont-show-as-user.patch:
  - Don't show "as user" in title bar.
* debian/patches/13_better_support_for_button_layout.patch:
  - Corrected support for buttons backgrounds with transparency
* debian/patches/14_wrong_colormap.patch:
  - Use correct colormap to avoid crash with client side decorations
* debian/patches/20_do-not-place-windows-over-the-launcher.patch:
  - Try to avoid an already visible launcher in intellihide mode when
    initially positioning new windows.
* debian/patches/21_fix_compositing_startup.patch:
  Fix some weird rendering effect at startup with compositing activated
* debian/patches/100_fade_on_long_title.patch:
  - Fade on the end if the title is too long.
* debian/patches/102_workarea.patch,
  debian/patches/103_struts_in_the_middle.patch,
  debian/patches/104_workarea_union.patch:
  - Add barriers and multimonitor strut support for unity-2d
* debian/patches/104_workarea_union.patch:
  - Ensure each screen_region generated by
    meta_rectangle_get_minimal_spanning_set_for_region is not outside
    the xinerama screens
* Dropped patch:
  - 11_hide_tooltip_on_decorator.patch: Obsolete
* debian/patches/03_strict_focus.patch:
  - Disabled. This needs gsettings-desktop-schemas to be patched if
    we want to bring this back
* Disabled Unity 2D-related patches that need porting to gsettings:
  - 15_show_maximized_titlebars.patch
  - 16-capture-before-unmap.patch
  - 17-workspace-switcher-cycle.patch
  - 18-auto-maximize-windows.patch
  - 19_add_unity_hud_configuration.patch
  - 101_override_gconf_settings.patch

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*- */
2
 
 
3
 
/* Metacity preferences */
4
 
 
5
 
/* 
6
 
 * Copyright (C) 2001 Havoc Pennington
7
 
 * Copyright (C) 2006 Elijah Newren
8
 
 * 
9
 
 * This program is free software; you can redistribute it and/or
10
 
 * modify it under the terms of the GNU General Public License as
11
 
 * published by the Free Software Foundation; either version 2 of the
12
 
 * License, or (at your option) any later version.
13
 
 *
14
 
 * This program is distributed in the hope that it will be useful, but
15
 
 * WITHOUT ANY WARRANTY; without even the implied warranty of
16
 
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
17
 
 * General Public License for more details.
18
 
 * 
19
 
 * You should have received a copy of the GNU General Public License
20
 
 * along with this program; if not, write to the Free Software
21
 
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
22
 
 * 02111-1307, USA.
23
 
 */
24
 
 
25
 
#ifndef META_PREFS_H
26
 
#define META_PREFS_H
27
 
 
28
 
/* This header is a "common" one between the UI and core side */
29
 
#include "common.h"
30
 
#include <pango/pango-font.h>
31
 
 
32
 
typedef enum
33
 
{
34
 
  META_PREF_MOUSE_BUTTON_MODS,
35
 
  META_PREF_FOCUS_MODE,
36
 
  META_PREF_FOCUS_NEW_WINDOWS,
37
 
  META_PREF_RAISE_ON_CLICK,
38
 
  META_PREF_ACTION_DOUBLE_CLICK_TITLEBAR,
39
 
  META_PREF_ACTION_MIDDLE_CLICK_TITLEBAR,
40
 
  META_PREF_ACTION_RIGHT_CLICK_TITLEBAR,
41
 
  META_PREF_AUTO_RAISE,
42
 
  META_PREF_AUTO_RAISE_DELAY,
43
 
  META_PREF_THEME,
44
 
  META_PREF_TITLEBAR_FONT,
45
 
  META_PREF_NUM_WORKSPACES,
46
 
  META_PREF_APPLICATION_BASED,
47
 
  META_PREF_KEYBINDINGS,
48
 
  META_PREF_DISABLE_WORKAROUNDS,
49
 
  META_PREF_COMMANDS,
50
 
  META_PREF_TERMINAL_COMMAND,
51
 
  META_PREF_BUTTON_LAYOUT,
52
 
  META_PREF_WORKSPACE_NAMES,
53
 
  META_PREF_VISUAL_BELL,
54
 
  META_PREF_AUDIBLE_BELL,
55
 
  META_PREF_VISUAL_BELL_TYPE,
56
 
  META_PREF_REDUCED_RESOURCES,
57
 
  META_PREF_GNOME_ACCESSIBILITY,
58
 
  META_PREF_GNOME_ANIMATIONS,
59
 
  META_PREF_CURSOR_THEME,
60
 
  META_PREF_CURSOR_SIZE,
61
 
  META_PREF_COMPOSITING_MANAGER,
62
 
  META_PREF_RESIZE_WITH_RIGHT_BUTTON,
63
 
  META_PREF_FORCE_FULLSCREEN,
64
 
  META_PREF_HIDE_DECORATOR_TOOLTIP,
65
 
  META_PREF_SHOW_MAXIMIZED_TITLEBARS
66
 
} MetaPreference;
67
 
 
68
 
typedef void (* MetaPrefsChangedFunc) (MetaPreference pref,
69
 
                                       gpointer       data);
70
 
 
71
 
void meta_prefs_add_listener    (MetaPrefsChangedFunc func,
72
 
                                 gpointer             data);
73
 
void meta_prefs_remove_listener (MetaPrefsChangedFunc func,
74
 
                                 gpointer             data);
75
 
 
76
 
void meta_prefs_init (void);
77
 
const char* meta_preference_to_string (MetaPreference pref);
78
 
 
79
 
MetaVirtualModifier         meta_prefs_get_mouse_button_mods  (void);
80
 
guint                       meta_prefs_get_mouse_button_resize (void);
81
 
guint                       meta_prefs_get_mouse_button_menu  (void);
82
 
MetaFocusMode               meta_prefs_get_focus_mode         (void);
83
 
MetaFocusNewWindows         meta_prefs_get_focus_new_windows  (void);
84
 
gboolean                    meta_prefs_get_raise_on_click     (void);
85
 
gboolean                    meta_prefs_get_hide_decorator_tooltip (void);
86
 
gboolean                    meta_prefs_get_show_maximized_titlebars (void);
87
 
const char*                 meta_prefs_get_theme              (void);
88
 
/* returns NULL if GTK default should be used */
89
 
const PangoFontDescription* meta_prefs_get_titlebar_font      (void);
90
 
int                         meta_prefs_get_num_workspaces     (void);
91
 
gboolean                    meta_prefs_get_application_based  (void);
92
 
gboolean                    meta_prefs_get_disable_workarounds (void);
93
 
gboolean                    meta_prefs_get_auto_raise         (void);
94
 
int                         meta_prefs_get_auto_raise_delay   (void);
95
 
gboolean                    meta_prefs_get_reduced_resources  (void);
96
 
gboolean                    meta_prefs_get_gnome_accessibility (void);
97
 
gboolean                    meta_prefs_get_gnome_animations   (void);
98
 
 
99
 
const char*                 meta_prefs_get_command            (int i);
100
 
 
101
 
char*                       meta_prefs_get_gconf_key_for_command (int i);
102
 
 
103
 
const char*                 meta_prefs_get_terminal_command   (void);
104
 
const char*                 meta_prefs_get_gconf_key_for_terminal_command (void);
105
 
 
106
 
void                        meta_prefs_get_button_layout (MetaButtonLayout *button_layout);
107
 
 
108
 
/* Double, right, middle click can be configured to any titlebar meta-action */
109
 
MetaActionTitlebar          meta_prefs_get_action_double_click_titlebar (void);
110
 
MetaActionTitlebar          meta_prefs_get_action_middle_click_titlebar (void);
111
 
MetaActionTitlebar          meta_prefs_get_action_right_click_titlebar (void);
112
 
 
113
 
void meta_prefs_set_num_workspaces (int n_workspaces);
114
 
 
115
 
const char* meta_prefs_get_workspace_name    (int         i);
116
 
void        meta_prefs_change_workspace_name (int         i,
117
 
                                              const char *name);
118
 
 
119
 
const char* meta_prefs_get_cursor_theme      (void);
120
 
int         meta_prefs_get_cursor_size       (void);
121
 
gboolean    meta_prefs_get_compositing_manager (void);
122
 
gboolean    meta_prefs_get_force_fullscreen  (void);
123
 
 
124
 
/**
125
 
 * Sets whether the compositor is turned on.
126
 
 *
127
 
 * \param whether   TRUE to turn on, FALSE to turn off
128
 
 */
129
 
void meta_prefs_set_compositing_manager (gboolean whether);
130
 
 
131
 
void meta_prefs_set_force_fullscreen (gboolean whether);
132
 
 
133
 
/* XXX FIXME This should be x-macroed, but isn't yet because it would be
134
 
 * difficult (or perhaps impossible) to add the suffixes using the current
135
 
 * system.  It needs some more thought, perhaps after the current system
136
 
 * evolves a little.
137
 
 */
138
 
typedef enum _MetaKeyBindingAction
139
 
{
140
 
  META_KEYBINDING_ACTION_NONE = -1,
141
 
  META_KEYBINDING_ACTION_WORKSPACE_1,
142
 
  META_KEYBINDING_ACTION_WORKSPACE_2,
143
 
  META_KEYBINDING_ACTION_WORKSPACE_3,
144
 
  META_KEYBINDING_ACTION_WORKSPACE_4,
145
 
  META_KEYBINDING_ACTION_WORKSPACE_5,
146
 
  META_KEYBINDING_ACTION_WORKSPACE_6,
147
 
  META_KEYBINDING_ACTION_WORKSPACE_7,
148
 
  META_KEYBINDING_ACTION_WORKSPACE_8,
149
 
  META_KEYBINDING_ACTION_WORKSPACE_9,
150
 
  META_KEYBINDING_ACTION_WORKSPACE_10,
151
 
  META_KEYBINDING_ACTION_WORKSPACE_11,
152
 
  META_KEYBINDING_ACTION_WORKSPACE_12,
153
 
  META_KEYBINDING_ACTION_WORKSPACE_LEFT,
154
 
  META_KEYBINDING_ACTION_WORKSPACE_RIGHT,
155
 
  META_KEYBINDING_ACTION_WORKSPACE_UP,
156
 
  META_KEYBINDING_ACTION_WORKSPACE_DOWN,
157
 
  META_KEYBINDING_ACTION_SWITCH_GROUP,
158
 
  META_KEYBINDING_ACTION_SWITCH_GROUP_BACKWARD,
159
 
  META_KEYBINDING_ACTION_SWITCH_WINDOWS,
160
 
  META_KEYBINDING_ACTION_SWITCH_WINDOWS_BACKWARD,
161
 
  META_KEYBINDING_ACTION_SWITCH_PANELS,
162
 
  META_KEYBINDING_ACTION_SWITCH_PANELS_BACKWARD,
163
 
  META_KEYBINDING_ACTION_CYCLE_GROUP,
164
 
  META_KEYBINDING_ACTION_CYCLE_GROUP_BACKWARD,
165
 
  META_KEYBINDING_ACTION_CYCLE_WINDOWS,
166
 
  META_KEYBINDING_ACTION_CYCLE_WINDOWS_BACKWARD,
167
 
  META_KEYBINDING_ACTION_CYCLE_PANELS,
168
 
  META_KEYBINDING_ACTION_CYCLE_PANELS_BACKWARD,
169
 
  META_KEYBINDING_ACTION_SHOW_DESKTOP,
170
 
  META_KEYBINDING_ACTION_PANEL_MAIN_MENU,
171
 
  META_KEYBINDING_ACTION_PANEL_RUN_DIALOG,
172
 
  META_KEYBINDING_ACTION_COMMAND_1,
173
 
  META_KEYBINDING_ACTION_COMMAND_2,
174
 
  META_KEYBINDING_ACTION_COMMAND_3,
175
 
  META_KEYBINDING_ACTION_COMMAND_4,
176
 
  META_KEYBINDING_ACTION_COMMAND_5,
177
 
  META_KEYBINDING_ACTION_COMMAND_6,
178
 
  META_KEYBINDING_ACTION_COMMAND_7,
179
 
  META_KEYBINDING_ACTION_COMMAND_8,
180
 
  META_KEYBINDING_ACTION_COMMAND_9,
181
 
  META_KEYBINDING_ACTION_COMMAND_10,
182
 
  META_KEYBINDING_ACTION_COMMAND_11,
183
 
  META_KEYBINDING_ACTION_COMMAND_12
184
 
} MetaKeyBindingAction;
185
 
 
186
 
typedef struct
187
 
{
188
 
  unsigned int keysym;
189
 
  unsigned int keycode;
190
 
  MetaVirtualModifier modifiers;
191
 
} MetaKeyCombo;
192
 
 
193
 
typedef struct
194
 
{
195
 
  const char   *name;
196
 
  /**
197
 
   * A list of MetaKeyCombos. Each of them is bound to
198
 
   * this keypref. If one has keysym==modifiers==0, it is
199
 
   * ignored. For historical reasons, the first entry is
200
 
   * governed by the pref FOO and the remainder are
201
 
   * governed by the pref FOO_list.
202
 
   */
203
 
  GSList *bindings;
204
 
 
205
 
  /** for keybindings that can have shift or not like Alt+Tab */
206
 
  gboolean      add_shift:1;
207
 
 
208
 
  /** for keybindings that apply only to a window */
209
 
  gboolean      per_window:1;
210
 
} MetaKeyPref;
211
 
 
212
 
void meta_prefs_get_key_bindings (const MetaKeyPref **bindings,
213
 
                                  int                *n_bindings);
214
 
 
215
 
MetaKeyBindingAction meta_prefs_get_keybinding_action (const char *name);
216
 
 
217
 
void meta_prefs_get_window_binding (const char          *name,
218
 
                                    unsigned int        *keysym,
219
 
                                    MetaVirtualModifier *modifiers);
220
 
 
221
 
typedef enum
222
 
{
223
 
  META_VISUAL_BELL_INVALID = 0,
224
 
  META_VISUAL_BELL_FULLSCREEN_FLASH,
225
 
  META_VISUAL_BELL_FRAME_FLASH
226
 
 
227
 
} MetaVisualBellType;
228
 
 
229
 
gboolean           meta_prefs_get_visual_bell      (void);
230
 
gboolean           meta_prefs_bell_is_audible      (void);
231
 
MetaVisualBellType meta_prefs_get_visual_bell_type (void);
232
 
 
233
 
#endif
234
 
 
235
 
 
236
 
 
237