summaryrefslogtreecommitdiff
path: root/src/core/prefs.c
diff options
context:
space:
mode:
authorThomas Thurman <tthurman@gnome.org>2008-06-29 21:57:39 +0000
committerThomas James Alexander Thurman <tthurman@src.gnome.org>2008-06-29 21:57:39 +0000
commit7988361eab183e3b39379dc7b2ee324be58e7a91 (patch)
tree32fba7267d9196d7066e58c4b04ce2c1c844714c /src/core/prefs.c
parenta1a030e418115ff13834b242b04342ad5cbb0012 (diff)
downloadmetacity-7988361eab183e3b39379dc7b2ee324be58e7a91.tar.gz
Allow toggling of non-compositor effects (since there's a non-Metacity key
2008-06-29 Thomas Thurman <tthurman@gnome.org> Allow toggling of non-compositor effects (since there's a non-Metacity key to do so: /desktop/gnome/interface/enable_animations). Closes #92867. * src/include/prefs.h: add META_PREFS_GNOME_ANIMATIONS key and meta_prefs_get_gnome_animations() function * src/include/prefs.c: added meta_prefs_get_gnome_animations() function, and made supporting changes to structs. * src/core/effects.c (run_handler): checked whether enable_animations is set before running an effect. * src/core/effects.c (meta_effect_run_minimize): remove debug message. svn path=/trunk/; revision=3775
Diffstat (limited to 'src/core/prefs.c')
-rw-r--r--src/core/prefs.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/core/prefs.c b/src/core/prefs.c
index c3edebe4..fb3ffa19 100644
--- a/src/core/prefs.c
+++ b/src/core/prefs.c
@@ -89,6 +89,7 @@ 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;
@@ -395,6 +396,11 @@ static MetaBoolPreference preferences_bool[] =
&gnome_accessibility,
FALSE,
},
+ { "/desktop/gnome/interface/enable_animations",
+ META_PREF_GNOME_ANIMATIONS,
+ &gnome_animations,
+ TRUE,
+ },
{ "/apps/metacity/general/compositing_manager",
META_PREF_COMPOSITING_MANAGER,
&compositing_manager,
@@ -976,6 +982,7 @@ static gchar *gconf_dirs_we_are_interested_in[] = {
KEY_TERMINAL_DIR,
KEY_GNOME_ACCESSIBILITY,
"/desktop/gnome/peripherals/mouse",
+ "/desktop/gnome/interface",
NULL,
};
@@ -1760,6 +1767,9 @@ meta_preference_to_string (MetaPreference pref)
case META_PREF_GNOME_ACCESSIBILITY:
return "GNOME_ACCESSIBILTY";
+ case META_PREF_GNOME_ANIMATIONS:
+ return "GNOME_ANIMATIONS";
+
case META_PREF_CURSOR_THEME:
return "CURSOR_THEME";
@@ -2862,6 +2872,12 @@ meta_prefs_get_gnome_accessibility ()
return gnome_accessibility;
}
+gboolean
+meta_prefs_get_gnome_animations ()
+{
+ return gnome_animations;
+}
+
MetaKeyBindingAction
meta_prefs_get_keybinding_action (const char *name)
{