summaryrefslogtreecommitdiff
path: root/src/core/prefs.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/prefs.c')
-rw-r--r--src/core/prefs.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/core/prefs.c b/src/core/prefs.c
index 8669df5d1..fd76102da 100644
--- a/src/core/prefs.c
+++ b/src/core/prefs.c
@@ -88,6 +88,7 @@ static gboolean application_based = FALSE;
static gboolean disable_workarounds = FALSE;
static gboolean auto_raise = FALSE;
static gboolean auto_raise_delay = 500;
+static gboolean bell_is_visible = FALSE;
static gboolean bell_is_audible = TRUE;
static gboolean gnome_accessibility = FALSE;
static gboolean gnome_animations = TRUE;
@@ -303,6 +304,13 @@ static MetaBoolPreference preferences_bool[] =
&auto_raise,
},
{
+ { "visual-bell",
+ SCHEMA_GENERAL,
+ META_PREF_VISUAL_BELL,
+ },
+ &bell_is_visible, /* FIXME: change the name: it's confusing */
+ },
+ {
{ "audible-bell",
SCHEMA_GENERAL,
META_PREF_AUDIBLE_BELL,
@@ -1913,6 +1921,12 @@ meta_prefs_get_button_layout (MetaButtonLayout *button_layout_p)
}
gboolean
+meta_prefs_get_visual_bell (void)
+{
+ return bell_is_visible;
+}
+
+gboolean
meta_prefs_bell_is_audible (void)
{
return bell_is_audible;