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 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" |
| #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" |
| #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" |
| #define KEY_TITLEBAR_FONT "/apps/metacity/general/titlebar_font" |
| #define KEY_WINDOW_BINDINGS_PREFIX "/apps/metacity/window_keybindings" |
| #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_WORKSPACES 36 |
Definition at line 36 of file prefs.c.
Referenced by init_workspace_names(), meta_prefs_change_workspace_name(), meta_prefs_get_workspace_name(), meta_prefs_set_num_workspaces(), and update_workspace_name().
| #define METAINTPREFERENCE_NO_CHANGE_ON_DESTROY G_MININT |
| #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().
| enum MetaStringListType |
| static MetaButtonFunction button_function_from_string | ( | const char * | str | ) | [static] |
Definition at line 1424 of file prefs.c.
References META_BUTTON_FUNCTION_ABOVE, META_BUTTON_FUNCTION_CLOSE, META_BUTTON_FUNCTION_LAST, META_BUTTON_FUNCTION_MAXIMIZE, META_BUTTON_FUNCTION_MENU, META_BUTTON_FUNCTION_MINIMIZE, META_BUTTON_FUNCTION_SHADE, and META_BUTTON_FUNCTION_STICK.
Referenced by button_layout_handler().
| static gboolean button_layout_equal | ( | const MetaButtonLayout * | a, | |
| const MetaButtonLayout * | b | |||
| ) | [static] |
Definition at line 1401 of file prefs.c.
References FALSE, _MetaButtonLayout::left_buttons, _MetaButtonLayout::left_buttons_has_spacer, MAX_BUTTONS_PER_CORNER, _MetaButtonLayout::right_buttons, _MetaButtonLayout::right_buttons_has_spacer, and TRUE.
Referenced by button_layout_handler().
| static void button_layout_handler | ( | MetaPreference | pref, | |
| const gchar * | string_value, | |||
| gboolean * | inform_listeners | |||
| ) | [static] |
Definition at line 1473 of file prefs.c.
References button_function_from_string(), button_layout_equal(), button_opposite_function(), FALSE, _MetaButtonLayout::left_buttons, _MetaButtonLayout::left_buttons_has_spacer, META_BUTTON_FUNCTION_LAST, META_DEBUG_PREFS, META_UI_DIRECTION_RTL, meta_ui_get_direction(), NULL, _MetaButtonLayout::right_buttons, _MetaButtonLayout::right_buttons_has_spacer, and TRUE.
| static MetaButtonFunction button_opposite_function | ( | MetaButtonFunction | ofwhat | ) | [static] |
Definition at line 1448 of file prefs.c.
References META_BUTTON_FUNCTION_ABOVE, META_BUTTON_FUNCTION_LAST, META_BUTTON_FUNCTION_SHADE, META_BUTTON_FUNCTION_STICK, META_BUTTON_FUNCTION_UNABOVE, META_BUTTON_FUNCTION_UNSHADE, and META_BUTTON_FUNCTION_UNSTICK.
Referenced by button_layout_handler().
| static void change_notify | ( | GConfClient * | client, | |
| guint | cnxn_id, | |||
| GConfEntry * | entry, | |||
| gpointer | user_data | |||
| ) | [static] |
Definition at line 1068 of file prefs.c.
References _, KEY_COMMAND_PREFIX, KEY_LIST_BINDINGS_SUFFIX, KEY_SCREEN_BINDINGS_PREFIX, KEY_WINDOW_BINDINGS_PREFIX, KEY_WORKSPACE_NAME_PREFIX, META_DEBUG_PREFS, META_PREF_COMMANDS, META_PREF_SCREEN_KEYBINDINGS, META_PREF_WINDOW_KEYBINDINGS, META_PREF_WORKSPACE_NAMES, meta_warning(), NULL, preference_update_handler, queue_changed(), update_command(), update_screen_binding(), update_screen_list_binding(), update_window_binding(), update_window_list_binding(), and update_workspace_name().
Referenced by meta_prefs_init().
| 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] |
Definition at line 1214 of file prefs.c.
References meta_warning(), and NULL.
Referenced by get_bool(), handle_preference_init_enum(), handle_preference_init_int(), handle_preference_init_string(), init_bindings(), init_commands(), init_workspace_names(), and meta_prefs_init().
| static void emit_changed | ( | MetaPreference | pref | ) | [static] |
Definition at line 886 of file prefs.c.
References MetaPrefsListener::data, MetaPrefsListener::func, listeners, META_DEBUG_PREFS, meta_preference_to_string(), and NULL.
Referenced by changed_idle_handler().
| 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] |
Definition at line 2475 of file prefs.c.
References FALSE, KEY_LIST_BINDINGS_SUFFIX, META_LIST_OF_GCONFVALUE_STRINGS, relative_key(), and update_list_binding().
Referenced by update_screen_list_binding(), and update_window_list_binding().
| 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] |
Definition at line 512 of file prefs.c.
References get_bool(), MetaBoolPreference::key, maybe_give_disable_workarounds_warning(), NULL, and MetaBoolPreference::target.
Referenced by meta_prefs_init().
| static void handle_preference_init_enum | ( | void | ) | [static] |
Definition at line 473 of file prefs.c.
References _, cleanup_error(), default_client, MetaEnumPreference::key, meta_warning(), NULL, MetaEnumPreference::symtab, and MetaEnumPreference::target.
Referenced by meta_prefs_init().
| static void handle_preference_init_int | ( | void | ) | [static] |
Definition at line 566 of file prefs.c.
References _, cleanup_error(), default_client, MetaIntPreference::key, MetaIntPreference::maximum, meta_warning(), MetaIntPreference::minimum, NULL, and MetaIntPreference::target.
Referenced by meta_prefs_init().
| static void handle_preference_init_string | ( | void | ) | [static] |
Definition at line 528 of file prefs.c.
References cleanup_error(), default_client, MetaStringPreference::handler, MetaStringPreference::key, meta_bug(), NULL, MetaStringPreference::pref, MetaStringPreference::target, and TRUE.
Referenced by meta_prefs_init().
| static gboolean handle_preference_update_bool | ( | const gchar * | key, | |
| GConfValue * | value | |||
| ) | [static] |
Definition at line 668 of file prefs.c.
References _, MetaBoolPreference::becomes_true_on_destruction, FALSE, MetaBoolPreference::key, maybe_give_disable_workarounds_warning(), META_PREF_DISABLE_WORKAROUNDS, meta_warning(), NULL, MetaBoolPreference::pref, queue_changed(), MetaBoolPreference::target, and TRUE.
| static gboolean handle_preference_update_enum | ( | const gchar * | key, | |
| GConfValue * | value | |||
| ) | [static] |
Definition at line 604 of file prefs.c.
References _, FALSE, MetaEnumPreference::key, meta_warning(), NULL, MetaEnumPreference::pref, queue_changed(), MetaEnumPreference::symtab, MetaEnumPreference::target, and TRUE.
| static gboolean handle_preference_update_int | ( | const gchar * | key, | |
| GConfValue * | value | |||
| ) | [static] |
Definition at line 783 of file prefs.c.
References _, FALSE, MetaIntPreference::key, MetaIntPreference::maximum, meta_warning(), METAINTPREFERENCE_NO_CHANGE_ON_DESTROY, MetaIntPreference::minimum, NULL, MetaIntPreference::pref, queue_changed(), MetaIntPreference::target, TRUE, and MetaIntPreference::value_if_destroyed.
| static gboolean handle_preference_update_string | ( | const gchar * | key, | |
| GConfValue * | value | |||
| ) | [static] |
Definition at line 729 of file prefs.c.
References _, FALSE, MetaStringPreference::handler, MetaStringPreference::key, meta_warning(), NULL, MetaStringPreference::pref, queue_changed(), MetaStringPreference::target, and TRUE.
| static void init_bindings | ( | void | ) | [static] |
Definition at line 1982 of file prefs.c.
References cleanup_error(), default_client, KEY_LIST_BINDINGS_SUFFIX, KEY_SCREEN_BINDINGS_PREFIX, KEY_WINDOW_BINDINGS_PREFIX, META_LIST_OF_STRINGS, NULL, update_binding(), and update_list_binding().
Referenced by meta_prefs_init().
| static void init_commands | ( | void | ) | [static] |
Definition at line 2111 of file prefs.c.
References cleanup_error(), commands, default_client, MAX_COMMANDS, meta_prefs_get_gconf_key_for_command(), NULL, and update_command().
Referenced by meta_prefs_init().
| static void init_workspace_names | ( | void | ) | [static] |
Definition at line 2144 of file prefs.c.
References _, cleanup_error(), default_client, gconf_key_for_workspace_name(), MAX_REASONABLE_WORKSPACES, META_DEBUG_PREFS, NULL, update_workspace_name(), and workspace_names.
Referenced by meta_prefs_init().
| 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 | ) |
Definition at line 1690 of file prefs.c.
References META_PREF_ACTION_DOUBLE_CLICK_TITLEBAR, META_PREF_ACTION_MIDDLE_CLICK_TITLEBAR, META_PREF_ACTION_RIGHT_CLICK_TITLEBAR, META_PREF_APPLICATION_BASED, META_PREF_AUDIBLE_BELL, META_PREF_AUTO_RAISE, META_PREF_AUTO_RAISE_DELAY, META_PREF_BUTTON_LAYOUT, META_PREF_COMMANDS, META_PREF_COMPOSITING_MANAGER, META_PREF_CURSOR_SIZE, META_PREF_CURSOR_THEME, META_PREF_DISABLE_WORKAROUNDS, META_PREF_FOCUS_MODE, META_PREF_FOCUS_NEW_WINDOWS, META_PREF_GNOME_ACCESSIBILITY, META_PREF_GNOME_ANIMATIONS, META_PREF_MOUSE_BUTTON_MODS, META_PREF_NUM_WORKSPACES, META_PREF_RAISE_ON_CLICK, META_PREF_REDUCED_RESOURCES, META_PREF_SCREEN_KEYBINDINGS, META_PREF_TERMINAL_COMMAND, META_PREF_THEME, META_PREF_TITLEBAR_FONT, META_PREF_VISUAL_BELL, META_PREF_VISUAL_BELL_TYPE, META_PREF_WINDOW_KEYBINDINGS, and META_PREF_WORKSPACE_NAMES.
Referenced by emit_changed(), and queue_changed().
| void meta_prefs_add_listener | ( | MetaPrefsChangedFunc | func, | |
| gpointer | data | |||
| ) |
Definition at line 847 of file prefs.c.
References MetaPrefsListener::data, MetaPrefsListener::func, and listeners.
Referenced by main(), meta_display_init_keys(), meta_frames_init(), and meta_screen_new().
| 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 | |||
| ) |
Definition at line 2722 of file prefs.c.
References _, default_client, gconf_key_for_workspace_name(), MAX_REASONABLE_WORKSPACES, META_DEBUG_PREFS, meta_warning(), NULL, and workspace_names.
Referenced by meta_screen_update_workspace_names().
| 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 | ) |
Definition at line 1678 of file prefs.c.
References disable_workarounds.
Referenced by meta_window_configure_request(), meta_window_move_resize_request(), meta_window_place(), and update_sm_hints().
| MetaFocusMode meta_prefs_get_focus_mode | ( | void | ) |
Definition at line 1276 of file prefs.c.
References focus_mode.
Referenced by bell_flash_screen(), event_callback(), focus_ancestor_or_mru_window(), idle_calc_showing(), meta_core_user_lower_and_unfocus(), meta_display_grab_focus_window_button(), meta_window_notify_focus(), meta_window_show(), and meta_workspace_focus_default_window().
| 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 | ) |
| 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 | ) |
Definition at line 1288 of file prefs.c.
References focus_mode, META_FOCUS_MODE_CLICK, and raise_on_click.
Referenced by event_callback(), meta_core_maximize(), meta_core_show_window_menu(), meta_core_toggle_maximize(), meta_core_toggle_maximize_horizontally(), meta_core_toggle_maximize_vertically(), meta_core_unmaximize(), meta_core_user_lower_and_unfocus(), meta_display_begin_grab_op(), meta_display_check_threshold_reached(), meta_display_end_grab_op(), meta_window_client_message(), meta_window_configure_request(), meta_window_notify_focus(), meta_window_show(), and window_activate().
| 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 | |||
| ) |
| 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 | |||
| ) |
Definition at line 2903 of file prefs.c.
References MetaKeyPref::bindings, MetaKeyCombo::keysym, and MetaKeyCombo::modifiers.
Referenced by meta_core_get_menu_accelerator().
| void meta_prefs_get_window_bindings | ( | const MetaKeyPref ** | bindings, | |
| int * | n_bindings | |||
| ) |
| const char* meta_prefs_get_workspace_name | ( | int | i | ) |
Definition at line 2708 of file prefs.c.
References MAX_REASONABLE_WORKSPACES, META_DEBUG_PREFS, NULL, and workspace_names.
Referenced by meta_workspace_get_name(), and set_workspace_names().
| void meta_prefs_init | ( | void | ) |
Definition at line 990 of file prefs.c.
References change_notify(), cleanup_error(), current_theme, default_client, gconf_dirs_we_are_interested_in, handle_preference_init_bool(), handle_preference_init_enum(), handle_preference_init_int(), handle_preference_init_string(), init_bindings(), init_commands(), init_workspace_names(), NULL, and titlebar_font.
Referenced by main().
| void meta_prefs_remove_listener | ( | MetaPrefsChangedFunc | func, | |
| gpointer | data | |||
| ) |
Definition at line 860 of file prefs.c.
References MetaPrefsListener::data, MetaPrefsListener::func, listeners, meta_bug(), and NULL.
Referenced by meta_display_close(), meta_display_shutdown_keys(), meta_frames_finalize(), and meta_screen_free().
| void meta_prefs_set_num_workspaces | ( | int | n_workspaces | ) |
Definition at line 1788 of file prefs.c.
References _, default_client, KEY_NUM_WORKSPACES, MAX_REASONABLE_WORKSPACES, meta_warning(), NULL, and num_workspaces.
Referenced by event_callback().
| static void mouse_button_mods_handler | ( | MetaPreference | pref, | |
| const gchar * | string_value, | |||
| gboolean * | inform_listeners | |||
| ) | [static] |
Definition at line 1374 of file prefs.c.
References _, FALSE, META_DEBUG_KEYBINDINGS, meta_ui_parse_modifier(), meta_warning(), and mouse_button_mods.
| static void queue_changed | ( | MetaPreference | pref | ) | [static] |
Definition at line 939 of file prefs.c.
References changed_idle, changed_idle_handler(), changes, META_DEBUG_PREFS, meta_preference_to_string(), META_PRIORITY_PREFS_NOTIFY, and NULL.
Referenced by change_notify(), handle_preference_update_bool(), handle_preference_update_enum(), handle_preference_update_int(), and handle_preference_update_string().
| 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] |
| 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] |
Definition at line 2182 of file prefs.c.
References _, MetaKeyPref::add_shift, MetaKeyPref::bindings, FALSE, KEY_SCREEN_BINDINGS_PREFIX, MetaKeyCombo::keycode, MetaKeyCombo::keysym, META_DEBUG_KEYBINDINGS, meta_ui_accelerator_name(), meta_ui_parse_accelerator(), META_VIRTUAL_SHIFT_MASK, meta_warning(), MetaKeyCombo::modifiers, MetaKeyPref::name, NULL, and TRUE.
Referenced by find_and_update_binding(), and init_bindings().
| static gboolean update_command | ( | const char * | name, | |
| const char * | value | |||
| ) | [static] |
Definition at line 2518 of file prefs.c.
References commands, FALSE, MAX_COMMANDS, META_DEBUG_KEYBINDINGS, NULL, SCREENSHOT_COMMAND_IDX, TRUE, and WIN_SCREENSHOT_COMMAND_IDX.
Referenced by change_notify(), and init_commands().
| static gboolean update_list_binding | ( | MetaKeyPref * | binding, | |
| GSList * | value, | |||
| MetaStringListType | type_of_value | |||
| ) | [static] |
Definition at line 2310 of file prefs.c.
References _, MetaKeyPref::add_shift, MetaKeyPref::bindings, FALSE, MetaKeyCombo::keycode, MetaKeyCombo::keysym, META_DEBUG_KEYBINDINGS, META_LIST_OF_GCONFVALUE_STRINGS, META_LIST_OF_STRINGS, meta_ui_parse_accelerator(), META_VIRTUAL_SHIFT_MASK, meta_warning(), MetaKeyCombo::modifiers, MetaKeyPref::name, NULL, and TRUE.
Referenced by find_and_update_list_binding(), and init_bindings().
| 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().
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 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] |
gboolean bell_is_audible = TRUE [static] |
MetaButtonLayout button_layout [static] |
Definition at line 98 of file prefs.c.
Referenced by meta_frames_calc_geometry(), meta_frames_paint_to_drawable(), and run_theme_benchmark().
guint changed_idle [static] |
GList* changes = NULL [static] |
Definition at line 68 of file prefs.c.
Referenced by changed_idle_handler(), main(), queue_changed(), raise_window_relative_to_managed_windows(), and stack_sync_to_server().
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] |
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] |
char* cursor_theme = NULL [static] |
GConfClient* default_client = NULL [static] |
Definition at line 67 of file prefs.c.
Referenced by get_bool(), handle_preference_init_enum(), handle_preference_init_int(), handle_preference_init_string(), init_bindings(), init_commands(), init_workspace_names(), meta_prefs_change_workspace_name(), meta_prefs_init(), and meta_prefs_set_num_workspaces().
gboolean disable_workarounds = FALSE [static] |
Definition at line 85 of file prefs.c.
Referenced by maybe_give_disable_workarounds_warning(), and meta_prefs_get_disable_workarounds().
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] |
gchar* gconf_dirs_we_are_interested_in[] [static] |
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] |
gboolean gnome_animations = TRUE [static] |
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().
MetaVirtualModifier mouse_button_mods = Mod1Mask [static] |
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] |
Definition at line 80 of file prefs.c.
Referenced by meta_prefs_get_num_workspaces(), meta_prefs_set_num_workspaces(), meta_workspace_get_neighbor(), and set_work_area_hint().
| gboolean(* preference_update_handler[])(const gchar *, GConfValue *) |
Initial value:
{
handle_preference_update_enum,
handle_preference_update_bool,
handle_preference_update_string,
handle_preference_update_int,
NULL
}
Referenced by change_notify().
MetaBoolPreference preferences_bool[] [static] |
MetaEnumPreference preferences_enum[] [static] |
MetaIntPreference preferences_int[] [static] |
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, },
}
MetaStringPreference preferences_string[] [static] |
gboolean provide_visual_bell = FALSE [static] |
gboolean raise_on_click = TRUE [static] |
gboolean reduced_resources = FALSE [static] |
MetaKeyPref screen_bindings[] [static] |
GConfEnumStringPair symtab_focus_mode[] [static] |
Initial value:
{
{ META_FOCUS_MODE_CLICK, "click" },
{ META_FOCUS_MODE_SLOPPY, "sloppy" },
{ META_FOCUS_MODE_MOUSE, "mouse" },
{ 0, NULL },
}
GConfEnumStringPair symtab_focus_new_windows[] [static] |
Initial value:
{
{ META_FOCUS_NEW_WINDOWS_SMART, "smart" },
{ META_FOCUS_NEW_WINDOWS_STRICT, "strict" },
{ 0, NULL },
}
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 },
}
GConfEnumStringPair symtab_visual_bell_type[] [static] |
Initial value:
{
{ META_VISUAL_BELL_FULLSCREEN_FLASH, "fullscreen" },
{ META_VISUAL_BELL_FRAME_FLASH, "frame_flash" },
{ 0, NULL },
}
char* terminal_command = NULL [static] |
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] |
MetaVisualBellType visual_bell_type = META_VISUAL_BELL_FULLSCREEN_FLASH [static] |
MetaKeyPref window_bindings[] [static] |
char* workspace_names[MAX_REASONABLE_WORKSPACES] = { NULL, } [static] |
Definition at line 105 of file prefs.c.
Referenced by init_workspace_names(), meta_prefs_change_workspace_name(), meta_prefs_get_workspace_name(), and update_workspace_name().
1.5.5