prefs.c File Reference

Go to the source code of this file.

Data Structures

struct  MetaPrefsListener
struct  MetaEnumPreference
 The details of one preference which is constrained to be one of a small number of string values-- in other words, an enumeration. More...
struct  MetaBoolPreference
struct  MetaStringPreference
struct  MetaIntPreference

Defines

#define MAX_REASONABLE_WORKSPACES   36
#define MAX_COMMANDS   (32 + NUM_EXTRA_COMMANDS)
#define NUM_EXTRA_COMMANDS   2
#define SCREENSHOT_COMMAND_IDX   (MAX_COMMANDS - 2)
#define WIN_SCREENSHOT_COMMAND_IDX   (MAX_COMMANDS - 1)
#define KEY_TITLEBAR_FONT   "/apps/metacity/general/titlebar_font"
#define KEY_NUM_WORKSPACES   "/apps/metacity/general/num_workspaces"
#define KEY_GNOME_ACCESSIBILITY   "/desktop/gnome/interface/accessibility"
#define KEY_COMMAND_PREFIX   "/apps/metacity/keybinding_commands/command_"
#define KEY_TERMINAL_DIR   "/desktop/gnome/applications/terminal"
#define KEY_TERMINAL_COMMAND   KEY_TERMINAL_DIR "/exec"
#define KEY_SCREEN_BINDINGS_PREFIX   "/apps/metacity/global_keybindings"
#define KEY_WINDOW_BINDINGS_PREFIX   "/apps/metacity/window_keybindings"
#define KEY_LIST_BINDINGS_SUFFIX   "_list"
#define KEY_WORKSPACE_NAME_PREFIX   "/apps/metacity/workspace_names/name_"
#define METAINTPREFERENCE_NO_CHANGE_ON_DESTROY   G_MININT
#define MAX_REASONABLE_AUTO_RAISE_DELAY   10000

Enumerations

enum  MetaStringListType { META_LIST_OF_STRINGS, META_LIST_OF_GCONFVALUE_STRINGS }

Functions

static gboolean handle_preference_update_enum (const gchar *key, GConfValue *value)
static gboolean update_window_binding (const char *name, const char *value)
static gboolean update_screen_binding (const char *name, const char *value)
static gboolean find_and_update_list_binding (MetaKeyPref *bindings, const char *name, GSList *value)
static gboolean update_window_list_binding (const char *name, GSList *value)
static gboolean update_screen_list_binding (const char *name, GSList *value)
static gboolean update_command (const char *name, const char *value)
static gboolean update_workspace_name (const char *name, const char *value)
static void change_notify (GConfClient *client, guint cnxn_id, GConfEntry *entry, gpointer user_data)
static char * gconf_key_for_workspace_name (int i)
static void queue_changed (MetaPreference pref)
static gboolean update_list_binding (MetaKeyPref *binding, GSList *value, MetaStringListType type_of_value)
static void cleanup_error (GError **error)
static gboolean get_bool (const char *key, gboolean *val)
static void maybe_give_disable_workarounds_warning (void)
 Special case: give a warning the first time disable_workarounds is turned on.
static void titlebar_handler (MetaPreference, const gchar *, gboolean *)
static void theme_name_handler (MetaPreference, const gchar *, gboolean *)
static void mouse_button_mods_handler (MetaPreference, const gchar *, gboolean *)
static void button_layout_handler (MetaPreference, const gchar *, gboolean *)
static gboolean update_binding (MetaKeyPref *binding, const char *value)
static void init_bindings (void)
static void init_commands (void)
static void init_workspace_names (void)
static void handle_preference_init_enum (void)
static void handle_preference_init_bool (void)
static void handle_preference_init_string (void)
static void handle_preference_init_int (void)
static gboolean handle_preference_update_bool (const gchar *key, GConfValue *value)
static gboolean handle_preference_update_string (const gchar *key, GConfValue *value)
static gboolean handle_preference_update_int (const gchar *key, GConfValue *value)
void meta_prefs_add_listener (MetaPrefsChangedFunc func, gpointer data)
void meta_prefs_remove_listener (MetaPrefsChangedFunc func, gpointer data)
static void emit_changed (MetaPreference pref)
static gboolean changed_idle_handler (gpointer data)
void meta_prefs_init (void)
MetaVirtualModifier meta_prefs_get_mouse_button_mods (void)
MetaFocusMode meta_prefs_get_focus_mode (void)
MetaFocusNewWindows meta_prefs_get_focus_new_windows (void)
gboolean meta_prefs_get_raise_on_click (void)
const char * meta_prefs_get_theme (void)
const char * meta_prefs_get_cursor_theme (void)
int meta_prefs_get_cursor_size (void)
static gboolean button_layout_equal (const MetaButtonLayout *a, const MetaButtonLayout *b)
static MetaButtonFunction button_function_from_string (const char *str)
static MetaButtonFunction button_opposite_function (MetaButtonFunction ofwhat)
const PangoFontDescription * meta_prefs_get_titlebar_font (void)
int meta_prefs_get_num_workspaces (void)
gboolean meta_prefs_get_application_based (void)
gboolean meta_prefs_get_disable_workarounds (void)
const char * meta_preference_to_string (MetaPreference pref)
void meta_prefs_set_num_workspaces (int n_workspaces)
static const gchar * relative_key (const gchar *key)
static gboolean find_and_update_binding (MetaKeyPref *bindings, const char *name, const char *value)
const char * meta_prefs_get_command (int i)
char * meta_prefs_get_gconf_key_for_command (int i)
const char * meta_prefs_get_terminal_command (void)
const char * meta_prefs_get_gconf_key_for_terminal_command (void)
const char * meta_prefs_get_workspace_name (int i)
void meta_prefs_change_workspace_name (int i, const char *name)
void meta_prefs_get_button_layout (MetaButtonLayout *button_layout_p)
gboolean meta_prefs_get_visual_bell (void)
gboolean meta_prefs_bell_is_audible (void)
MetaVisualBellType meta_prefs_get_visual_bell_type (void)
void meta_prefs_get_screen_bindings (const MetaKeyPref **bindings, int *n_bindings)
void meta_prefs_get_window_bindings (const MetaKeyPref **bindings, int *n_bindings)
MetaActionTitlebar meta_prefs_get_action_double_click_titlebar (void)
MetaActionTitlebar meta_prefs_get_action_middle_click_titlebar (void)
MetaActionTitlebar meta_prefs_get_action_right_click_titlebar (void)
gboolean meta_prefs_get_auto_raise (void)
int meta_prefs_get_auto_raise_delay (void)
gboolean meta_prefs_get_reduced_resources (void)
gboolean meta_prefs_get_gnome_accessibility ()
gboolean meta_prefs_get_gnome_animations ()
MetaKeyBindingAction meta_prefs_get_keybinding_action (const char *name)
void meta_prefs_get_window_binding (const char *name, unsigned int *keysym, MetaVirtualModifier *modifiers)
gboolean meta_prefs_get_compositing_manager (void)

Variables

static GConfClient * default_client = NULL
static GList * changes = NULL
static guint changed_idle
static GList * listeners = NULL
static gboolean use_system_font = FALSE
static PangoFontDescription * titlebar_font = NULL
static MetaVirtualModifier mouse_button_mods = Mod1Mask
static MetaFocusMode focus_mode = META_FOCUS_MODE_CLICK
static MetaFocusNewWindows focus_new_windows = META_FOCUS_NEW_WINDOWS_SMART
static gboolean raise_on_click = TRUE
static char * current_theme = NULL
static int num_workspaces = 4
static MetaActionTitlebar action_double_click_titlebar = META_ACTION_TITLEBAR_TOGGLE_MAXIMIZE
static MetaActionTitlebar action_middle_click_titlebar = META_ACTION_TITLEBAR_LOWER
static MetaActionTitlebar action_right_click_titlebar = META_ACTION_TITLEBAR_MENU
static gboolean application_based = FALSE
static gboolean disable_workarounds = FALSE
static gboolean auto_raise = FALSE
static gboolean auto_raise_delay = 500
static gboolean provide_visual_bell = FALSE
static gboolean bell_is_audible = TRUE
static gboolean reduced_resources = FALSE
static gboolean gnome_accessibility = FALSE
static gboolean gnome_animations = TRUE
static char * cursor_theme = NULL
static int cursor_size = 24
static gboolean compositing_manager = FALSE
static MetaVisualBellType visual_bell_type = META_VISUAL_BELL_FULLSCREEN_FLASH
static MetaButtonLayout button_layout
static char * commands [MAX_COMMANDS] = { NULL, }
static char * terminal_command = NULL
static char * workspace_names [MAX_REASONABLE_WORKSPACES] = { NULL, }
static GConfEnumStringPair symtab_focus_mode []
static GConfEnumStringPair symtab_focus_new_windows []
static GConfEnumStringPair symtab_visual_bell_type []
static GConfEnumStringPair symtab_titlebar_action []
static MetaEnumPreference preferences_enum []
static MetaBoolPreference preferences_bool []
static MetaStringPreference preferences_string []
static MetaIntPreference preferences_int []
static gchar * gconf_dirs_we_are_interested_in []
gboolean(* preference_update_handler [])(const gchar *, GConfValue *)
static MetaKeyPref screen_bindings []
static MetaKeyPref window_bindings []


Define Documentation

#define KEY_COMMAND_PREFIX   "/apps/metacity/keybinding_commands/command_"

Definition at line 54 of file prefs.c.

Referenced by change_notify(), and meta_prefs_get_gconf_key_for_command().

#define KEY_GNOME_ACCESSIBILITY   "/desktop/gnome/interface/accessibility"

Definition at line 52 of file prefs.c.

#define KEY_LIST_BINDINGS_SUFFIX   "_list"

Definition at line 61 of file prefs.c.

Referenced by change_notify(), find_and_update_list_binding(), and init_bindings().

#define KEY_NUM_WORKSPACES   "/apps/metacity/general/num_workspaces"

Definition at line 51 of file prefs.c.

Referenced by meta_prefs_set_num_workspaces().

#define KEY_SCREEN_BINDINGS_PREFIX   "/apps/metacity/global_keybindings"

Definition at line 59 of file prefs.c.

Referenced by change_notify(), init_bindings(), and update_binding().

#define KEY_TERMINAL_COMMAND   KEY_TERMINAL_DIR "/exec"

Definition at line 57 of file prefs.c.

Referenced by meta_prefs_get_gconf_key_for_terminal_command().

#define KEY_TERMINAL_DIR   "/desktop/gnome/applications/terminal"

Definition at line 56 of file prefs.c.

#define KEY_TITLEBAR_FONT   "/apps/metacity/general/titlebar_font"

Definition at line 50 of file prefs.c.

Referenced by titlebar_handler().

#define KEY_WINDOW_BINDINGS_PREFIX   "/apps/metacity/window_keybindings"

Definition at line 60 of file prefs.c.

Referenced by change_notify(), and init_bindings().

#define KEY_WORKSPACE_NAME_PREFIX   "/apps/metacity/workspace_names/name_"

Definition at line 63 of file prefs.c.

Referenced by change_notify(), and gconf_key_for_workspace_name().

#define MAX_COMMANDS   (32 + NUM_EXTRA_COMMANDS)

Definition at line 38 of file prefs.c.

Referenced by init_commands(), meta_prefs_get_command(), and update_command().

#define MAX_REASONABLE_AUTO_RAISE_DELAY   10000

Definition at line 1684 of file prefs.c.

#define MAX_REASONABLE_WORKSPACES   36

#define METAINTPREFERENCE_NO_CHANGE_ON_DESTROY   G_MININT

Definition at line 292 of file prefs.c.

Referenced by handle_preference_update_int().

#define NUM_EXTRA_COMMANDS   2

Definition at line 39 of file prefs.c.

#define SCREENSHOT_COMMAND_IDX   (MAX_COMMANDS - 2)

Definition at line 40 of file prefs.c.

Referenced by meta_prefs_get_gconf_key_for_command(), and update_command().

#define WIN_SCREENSHOT_COMMAND_IDX   (MAX_COMMANDS - 1)

Definition at line 41 of file prefs.c.

Referenced by meta_prefs_get_gconf_key_for_command(), and update_command().


Enumeration Type Documentation

Enumerator:
META_LIST_OF_STRINGS 
META_LIST_OF_GCONFVALUE_STRINGS 

Definition at line 135 of file prefs.c.


Function Documentation

static MetaButtonFunction button_function_from_string ( const char *  str  )  [static]

static gboolean button_layout_equal ( const MetaButtonLayout a,
const MetaButtonLayout b 
) [static]

static void button_layout_handler ( MetaPreference  pref,
const gchar *  string_value,
gboolean *  inform_listeners 
) [static]

static MetaButtonFunction button_opposite_function ( MetaButtonFunction  ofwhat  )  [static]

static void change_notify ( GConfClient *  client,
guint  cnxn_id,
GConfEntry *  entry,
gpointer  user_data 
) [static]

static gboolean changed_idle_handler ( gpointer  data  )  [static]

Definition at line 911 of file prefs.c.

References changed_idle, changes, emit_changed(), FALSE, and NULL.

Referenced by queue_changed().

static void cleanup_error ( GError **  error  )  [static]

static void emit_changed ( MetaPreference  pref  )  [static]

static gboolean find_and_update_binding ( MetaKeyPref bindings,
const char *  name,
const char *  value 
) [static]

Definition at line 2437 of file prefs.c.

References FALSE, relative_key(), and update_binding().

Referenced by update_screen_binding(), and update_window_binding().

static gboolean find_and_update_list_binding ( MetaKeyPref bindings,
const char *  name,
GSList *  value 
) [static]

static char * gconf_key_for_workspace_name ( int  i  )  [static]

Definition at line 2782 of file prefs.c.

References KEY_WORKSPACE_NAME_PREFIX.

Referenced by init_workspace_names(), and meta_prefs_change_workspace_name().

static gboolean get_bool ( const char *  key,
gboolean *  val 
) [static]

Definition at line 1228 of file prefs.c.

References cleanup_error(), default_client, FALSE, NULL, and TRUE.

Referenced by handle_preference_init_bool().

static void handle_preference_init_bool ( void   )  [static]

static void handle_preference_init_enum ( void   )  [static]

static void handle_preference_init_int ( void   )  [static]

static void handle_preference_init_string ( void   )  [static]

static gboolean handle_preference_update_bool ( const gchar *  key,
GConfValue *  value 
) [static]

static gboolean handle_preference_update_enum ( const gchar *  key,
GConfValue *  value 
) [static]

static gboolean handle_preference_update_int ( const gchar *  key,
GConfValue *  value 
) [static]

static gboolean handle_preference_update_string ( const gchar *  key,
GConfValue *  value 
) [static]

static void init_bindings ( void   )  [static]

static void init_commands ( void   )  [static]

static void init_workspace_names ( void   )  [static]

static void maybe_give_disable_workarounds_warning ( void   )  [static]

Special case: give a warning the first time disable_workarounds is turned on.

Definition at line 1254 of file prefs.c.

References _, disable_workarounds, FALSE, meta_warning(), and TRUE.

Referenced by handle_preference_init_bool(), and handle_preference_update_bool().

const char* meta_preference_to_string ( MetaPreference  pref  ) 

void meta_prefs_add_listener ( MetaPrefsChangedFunc  func,
gpointer  data 
)

gboolean meta_prefs_bell_is_audible ( void   ) 

Definition at line 2805 of file prefs.c.

References bell_is_audible.

Referenced by meta_bell_init(), and prefs_changed_callback().

void meta_prefs_change_workspace_name ( int  i,
const char *  name 
)

MetaActionTitlebar meta_prefs_get_action_double_click_titlebar ( void   ) 

Definition at line 2834 of file prefs.c.

References action_double_click_titlebar.

Referenced by meta_frame_double_click_event().

MetaActionTitlebar meta_prefs_get_action_middle_click_titlebar ( void   ) 

Definition at line 2840 of file prefs.c.

References action_middle_click_titlebar.

Referenced by meta_frame_middle_click_event().

MetaActionTitlebar meta_prefs_get_action_right_click_titlebar ( void   ) 

Definition at line 2846 of file prefs.c.

References action_right_click_titlebar.

Referenced by meta_frame_right_click_event().

gboolean meta_prefs_get_application_based ( void   ) 

Definition at line 1670 of file prefs.c.

References application_based, and FALSE.

Referenced by event_callback().

gboolean meta_prefs_get_auto_raise ( void   ) 

Definition at line 2852 of file prefs.c.

References auto_raise.

Referenced by event_callback(), and meta_workspace_focus_default_window().

int meta_prefs_get_auto_raise_delay ( void   ) 

Definition at line 2858 of file prefs.c.

References auto_raise_delay.

Referenced by meta_display_queue_autoraise_callback().

void meta_prefs_get_button_layout ( MetaButtonLayout button_layout_p  ) 

Definition at line 2793 of file prefs.c.

Referenced by meta_frames_calc_geometry(), and meta_frames_paint_to_drawable().

const char* meta_prefs_get_command ( int  i  ) 

Definition at line 2588 of file prefs.c.

References commands, MAX_COMMANDS, and NULL.

Referenced by handle_run_command().

gboolean meta_prefs_get_compositing_manager ( void   ) 

Definition at line 2942 of file prefs.c.

References compositing_manager.

Referenced by prefs_changed_callback().

int meta_prefs_get_cursor_size ( void   ) 

Definition at line 1309 of file prefs.c.

References cursor_size.

Referenced by prefs_changed_callback().

const char* meta_prefs_get_cursor_theme ( void   ) 

Definition at line 1303 of file prefs.c.

References cursor_theme.

Referenced by prefs_changed_callback().

gboolean meta_prefs_get_disable_workarounds ( void   ) 

MetaFocusMode meta_prefs_get_focus_mode ( void   ) 

MetaFocusNewWindows meta_prefs_get_focus_new_windows ( void   ) 

Definition at line 1282 of file prefs.c.

References focus_new_windows.

Referenced by meta_window_set_user_time(), and window_state_on_map().

char* meta_prefs_get_gconf_key_for_command ( int  i  ) 

Definition at line 2596 of file prefs.c.

References KEY_COMMAND_PREFIX, SCREENSHOT_COMMAND_IDX, and WIN_SCREENSHOT_COMMAND_IDX.

Referenced by error_on_command(), and init_commands().

const char* meta_prefs_get_gconf_key_for_terminal_command ( void   ) 

Definition at line 2623 of file prefs.c.

References KEY_TERMINAL_COMMAND.

Referenced by error_on_terminal_command().

gboolean meta_prefs_get_gnome_accessibility ( void   ) 

Definition at line 2870 of file prefs.c.

References gnome_accessibility.

Referenced by meta_display_begin_grab_op().

gboolean meta_prefs_get_gnome_animations ( void   ) 

Definition at line 2876 of file prefs.c.

References gnome_animations.

Referenced by run_handler().

MetaKeyBindingAction meta_prefs_get_keybinding_action ( const char *  name  ) 

Definition at line 2882 of file prefs.c.

References META_KEYBINDING_ACTION_NONE.

Referenced by display_get_keybinding_action().

MetaVirtualModifier meta_prefs_get_mouse_button_mods ( void   ) 

Definition at line 1270 of file prefs.c.

References mouse_button_mods.

Referenced by update_window_grab_modifiers().

int meta_prefs_get_num_workspaces ( void   ) 

Definition at line 1664 of file prefs.c.

References num_workspaces.

Referenced by update_num_workspaces().

gboolean meta_prefs_get_raise_on_click ( void   ) 

gboolean meta_prefs_get_reduced_resources ( void   ) 

Definition at line 2864 of file prefs.c.

References reduced_resources.

Referenced by implement_showing(), and meta_display_begin_grab_op().

void meta_prefs_get_screen_bindings ( const MetaKeyPref **  bindings,
int *  n_bindings 
)

Definition at line 2817 of file prefs.c.

Referenced by rebuild_screen_binding_table().

const char* meta_prefs_get_terminal_command ( void   ) 

Definition at line 2617 of file prefs.c.

References terminal_command.

Referenced by handle_run_terminal().

const char* meta_prefs_get_theme ( void   ) 

Definition at line 1297 of file prefs.c.

References current_theme.

Referenced by event_callback(), main(), and prefs_changed_callback().

const PangoFontDescription* meta_prefs_get_titlebar_font ( void   ) 

Definition at line 1655 of file prefs.c.

References NULL, titlebar_font, and use_system_font.

Referenced by meta_frames_ensure_layout(), and meta_ui_theme_get_frame_borders().

gboolean meta_prefs_get_visual_bell ( void   ) 

Definition at line 2799 of file prefs.c.

References provide_visual_bell.

Referenced by meta_bell_notify().

MetaVisualBellType meta_prefs_get_visual_bell_type ( void   ) 

Definition at line 2811 of file prefs.c.

References visual_bell_type.

Referenced by bell_visual_notify().

void meta_prefs_get_window_binding ( const char *  name,
unsigned int *  keysym,
MetaVirtualModifier modifiers 
)

void meta_prefs_get_window_bindings ( const MetaKeyPref **  bindings,
int *  n_bindings 
)

Definition at line 2826 of file prefs.c.

Referenced by rebuild_window_binding_table().

const char* meta_prefs_get_workspace_name ( int  i  ) 

void meta_prefs_init ( void   ) 

void meta_prefs_remove_listener ( MetaPrefsChangedFunc  func,
gpointer  data 
)

void meta_prefs_set_num_workspaces ( int  n_workspaces  ) 

static void mouse_button_mods_handler ( MetaPreference  pref,
const gchar *  string_value,
gboolean *  inform_listeners 
) [static]

static void queue_changed ( MetaPreference  pref  )  [static]

static const gchar* relative_key ( const gchar *  key  )  [static]

Definition at line 2422 of file prefs.c.

Referenced by find_and_update_binding(), and find_and_update_list_binding().

static void theme_name_handler ( MetaPreference  pref,
const gchar *  string_value,
gboolean *  inform_listeners 
) [static]

Definition at line 1362 of file prefs.c.

References current_theme, and NULL.

static void titlebar_handler ( MetaPreference  pref,
const gchar *  string_value,
gboolean *  inform_listeners 
) [static]

Definition at line 1322 of file prefs.c.

References _, FALSE, KEY_TITLEBAR_FONT, meta_warning(), NULL, and titlebar_font.

static gboolean update_binding ( MetaKeyPref binding,
const char *  value 
) [static]

static gboolean update_command ( const char *  name,
const char *  value 
) [static]

static gboolean update_list_binding ( MetaKeyPref binding,
GSList *  value,
MetaStringListType  type_of_value 
) [static]

static gboolean update_screen_binding ( const char *  name,
const char *  value 
) [static]

Definition at line 2468 of file prefs.c.

References find_and_update_binding().

Referenced by change_notify().

static gboolean update_screen_list_binding ( const char *  name,
GSList *  value 
) [static]

Definition at line 2511 of file prefs.c.

References find_and_update_list_binding().

Referenced by change_notify().

static gboolean update_window_binding ( const char *  name,
const char *  value 
) [static]

Definition at line 2461 of file prefs.c.

References find_and_update_binding().

Referenced by change_notify().

static gboolean update_window_list_binding ( const char *  name,
GSList *  value 
) [static]

Definition at line 2504 of file prefs.c.

References find_and_update_list_binding().

Referenced by change_notify().

static gboolean update_workspace_name ( const char *  name,
const char *  value 
) [static]

Definition at line 2630 of file prefs.c.

References _, FALSE, MAX_REASONABLE_WORKSPACES, META_DEBUG_PREFS, NULL, TRUE, and workspace_names.

Referenced by change_notify(), and init_workspace_names().


Variable Documentation

MetaActionTitlebar action_double_click_titlebar = META_ACTION_TITLEBAR_TOGGLE_MAXIMIZE [static]

Definition at line 81 of file prefs.c.

Referenced by meta_prefs_get_action_double_click_titlebar().

MetaActionTitlebar action_middle_click_titlebar = META_ACTION_TITLEBAR_LOWER [static]

Definition at line 82 of file prefs.c.

Referenced by meta_prefs_get_action_middle_click_titlebar().

MetaActionTitlebar action_right_click_titlebar = META_ACTION_TITLEBAR_MENU [static]

Definition at line 83 of file prefs.c.

Referenced by meta_prefs_get_action_right_click_titlebar().

gboolean application_based = FALSE [static]

Definition at line 84 of file prefs.c.

Referenced by meta_prefs_get_application_based().

gboolean auto_raise = FALSE [static]

Definition at line 86 of file prefs.c.

Referenced by meta_prefs_get_auto_raise(), and window_raise_with_delay_callback().

gboolean auto_raise_delay = 500 [static]

Definition at line 87 of file prefs.c.

Referenced by meta_prefs_get_auto_raise_delay().

gboolean bell_is_audible = TRUE [static]

Definition at line 89 of file prefs.c.

Referenced by meta_prefs_bell_is_audible().

guint changed_idle [static]

Definition at line 69 of file prefs.c.

Referenced by changed_idle_handler(), and queue_changed().

GList* changes = NULL [static]

char* commands[MAX_COMMANDS] = { NULL, } [static]

Definition at line 101 of file prefs.c.

Referenced by init_commands(), meta_prefs_get_command(), and update_command().

gboolean compositing_manager = FALSE [static]

Definition at line 95 of file prefs.c.

Referenced by meta_prefs_get_compositing_manager().

char* current_theme = NULL [static]

Definition at line 79 of file prefs.c.

Referenced by meta_prefs_get_theme(), meta_prefs_init(), and theme_name_handler().

int cursor_size = 24 [static]

Definition at line 94 of file prefs.c.

Referenced by meta_prefs_get_cursor_size().

char* cursor_theme = NULL [static]

Definition at line 93 of file prefs.c.

Referenced by meta_prefs_get_cursor_theme().

GConfClient* default_client = NULL [static]

gboolean disable_workarounds = FALSE [static]

MetaFocusMode focus_mode = META_FOCUS_MODE_CLICK [static]

Definition at line 76 of file prefs.c.

Referenced by meta_prefs_get_focus_mode(), and meta_prefs_get_raise_on_click().

MetaFocusNewWindows focus_new_windows = META_FOCUS_NEW_WINDOWS_SMART [static]

Definition at line 77 of file prefs.c.

Referenced by meta_prefs_get_focus_new_windows().

Initial value:

 {
  "/apps/metacity",
  KEY_TERMINAL_DIR,
  KEY_GNOME_ACCESSIBILITY,
  "/desktop/gnome/peripherals/mouse",
  "/desktop/gnome/interface",
  NULL,
}

Definition at line 980 of file prefs.c.

Referenced by meta_prefs_init().

gboolean gnome_accessibility = FALSE [static]

Definition at line 91 of file prefs.c.

Referenced by meta_prefs_get_gnome_accessibility().

gboolean gnome_animations = TRUE [static]

Definition at line 92 of file prefs.c.

Referenced by meta_prefs_get_gnome_animations().

GList* listeners = NULL [static]

Definition at line 71 of file prefs.c.

Referenced by emit_changed(), meta_prefs_add_listener(), and meta_prefs_remove_listener().

Definition at line 75 of file prefs.c.

Referenced by meta_prefs_get_mouse_button_mods(), and mouse_button_mods_handler().

int num_workspaces = 4 [static]

gboolean(* preference_update_handler[])(const gchar *, GConfValue *)

Definition at line 352 of file prefs.c.

Definition at line 317 of file prefs.c.

Initial value:

  {
    { "/apps/metacity/general/num_workspaces",
      META_PREF_NUM_WORKSPACES,
      &num_workspaces,
      
      1, MAX_REASONABLE_WORKSPACES, METAINTPREFERENCE_NO_CHANGE_ON_DESTROY,
    },
    { "/apps/metacity/general/auto_raise_delay",
      META_PREF_AUTO_RAISE_DELAY,
      &auto_raise_delay,
      0, 10000, 0,
      
    },
    { "/desktop/gnome/peripherals/mouse/cursor_size",
      META_PREF_CURSOR_SIZE,
      &cursor_size,
      1, 128, 24,
    },
    { NULL, 0, NULL, 0, 0, 0, },
  }

Definition at line 447 of file prefs.c.

Definition at line 412 of file prefs.c.

gboolean provide_visual_bell = FALSE [static]

Definition at line 88 of file prefs.c.

Referenced by meta_prefs_get_visual_bell().

gboolean raise_on_click = TRUE [static]

Definition at line 78 of file prefs.c.

Referenced by meta_prefs_get_raise_on_click().

gboolean reduced_resources = FALSE [static]

Definition at line 90 of file prefs.c.

Referenced by meta_prefs_get_reduced_resources().

Definition at line 1818 of file prefs.c.

GConfEnumStringPair symtab_focus_mode[] [static]

Initial value:

  {
    { META_FOCUS_MODE_CLICK,  "click" },
    { META_FOCUS_MODE_SLOPPY, "sloppy" },
    { META_FOCUS_MODE_MOUSE,  "mouse" },
    { 0, NULL },
  }

Definition at line 175 of file prefs.c.

GConfEnumStringPair symtab_focus_new_windows[] [static]

Initial value:

  {
    { META_FOCUS_NEW_WINDOWS_SMART,  "smart" },
    { META_FOCUS_NEW_WINDOWS_STRICT, "strict" },
    { 0, NULL },
  }

Definition at line 183 of file prefs.c.

GConfEnumStringPair symtab_titlebar_action[] [static]

Initial value:

  {
    { META_ACTION_TITLEBAR_TOGGLE_SHADE,    "toggle_shade" },
    { META_ACTION_TITLEBAR_TOGGLE_MAXIMIZE, "toggle_maximize" },
    { META_ACTION_TITLEBAR_TOGGLE_MAXIMIZE_HORIZONTALLY,
                                "toggle_maximize_horizontally" },
    { META_ACTION_TITLEBAR_TOGGLE_MAXIMIZE_VERTICALLY,
                                "toggle_maximize_vertically" },
    { META_ACTION_TITLEBAR_MINIMIZE,        "minimize" },
    { META_ACTION_TITLEBAR_NONE,            "none" },
    { META_ACTION_TITLEBAR_LOWER,           "lower" },
    { META_ACTION_TITLEBAR_MENU,            "menu" },
    { META_ACTION_TITLEBAR_TOGGLE_SHADE,    "toggle_shade" },
    { 0, NULL },
  }

Definition at line 198 of file prefs.c.

GConfEnumStringPair symtab_visual_bell_type[] [static]

Initial value:

  {
    
    { META_VISUAL_BELL_FULLSCREEN_FLASH, "fullscreen" },
    { META_VISUAL_BELL_FRAME_FLASH,      "frame_flash" },
    { 0, NULL },
  }

Definition at line 190 of file prefs.c.

char* terminal_command = NULL [static]

Definition at line 103 of file prefs.c.

Referenced by meta_prefs_get_terminal_command().

PangoFontDescription* titlebar_font = NULL [static]

Definition at line 74 of file prefs.c.

Referenced by meta_prefs_get_titlebar_font(), meta_prefs_init(), and titlebar_handler().

gboolean use_system_font = FALSE [static]

Definition at line 73 of file prefs.c.

Referenced by meta_prefs_get_titlebar_font().

MetaVisualBellType visual_bell_type = META_VISUAL_BELL_FULLSCREEN_FLASH [static]

Definition at line 97 of file prefs.c.

Referenced by meta_prefs_get_visual_bell_type().

Definition at line 1889 of file prefs.c.

char* workspace_names[MAX_REASONABLE_WORKSPACES] = { NULL, } [static]


Generated on Sat Aug 23 22:04:21 2008 for metacity by  doxygen 1.5.5