mirror of
https://github.com/brl/mutter.git
synced 2024-11-22 08:00:42 -05:00
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
This commit is contained in:
parent
a1a030e418
commit
7988361eab
14
ChangeLog
14
ChangeLog
@ -1,3 +1,17 @@
|
|||||||
|
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.
|
||||||
|
|
||||||
2008-06-29 Thomas Thurman <tthurman@gnome.org>
|
2008-06-29 Thomas Thurman <tthurman@gnome.org>
|
||||||
|
|
||||||
* src/core/bell.c: remove meta_ prefix on all static functions.
|
* src/core/bell.c: remove meta_ prefix on all static functions.
|
||||||
|
@ -60,6 +60,7 @@
|
|||||||
#include "display-private.h"
|
#include "display-private.h"
|
||||||
#include "ui.h"
|
#include "ui.h"
|
||||||
#include "window-private.h"
|
#include "window-private.h"
|
||||||
|
#include "prefs.h"
|
||||||
|
|
||||||
#ifdef HAVE_SHAPE
|
#ifdef HAVE_SHAPE
|
||||||
#include <X11/extensions/shape.h>
|
#include <X11/extensions/shape.h>
|
||||||
@ -209,7 +210,6 @@ meta_effect_run_minimize (MetaWindow *window,
|
|||||||
gpointer data)
|
gpointer data)
|
||||||
{
|
{
|
||||||
MetaEffect *effect;
|
MetaEffect *effect;
|
||||||
meta_warning ("Well, here we aren't.\n");
|
|
||||||
|
|
||||||
g_return_if_fail (window != NULL);
|
g_return_if_fail (window != NULL);
|
||||||
g_return_if_fail (icon_rect != NULL);
|
g_return_if_fail (icon_rect != NULL);
|
||||||
@ -728,6 +728,8 @@ run_default_effect_handler (MetaEffect *effect)
|
|||||||
static void
|
static void
|
||||||
run_handler (MetaEffect *effect)
|
run_handler (MetaEffect *effect)
|
||||||
{
|
{
|
||||||
run_default_effect_handler (effect);
|
if (meta_prefs_get_gnome_animations ())
|
||||||
|
run_default_effect_handler (effect);
|
||||||
|
|
||||||
effect_free (effect);
|
effect_free (effect);
|
||||||
}
|
}
|
||||||
|
@ -89,6 +89,7 @@ static gboolean provide_visual_bell = FALSE;
|
|||||||
static gboolean bell_is_audible = TRUE;
|
static gboolean bell_is_audible = TRUE;
|
||||||
static gboolean reduced_resources = FALSE;
|
static gboolean reduced_resources = FALSE;
|
||||||
static gboolean gnome_accessibility = FALSE;
|
static gboolean gnome_accessibility = FALSE;
|
||||||
|
static gboolean gnome_animations = TRUE;
|
||||||
static char *cursor_theme = NULL;
|
static char *cursor_theme = NULL;
|
||||||
static int cursor_size = 24;
|
static int cursor_size = 24;
|
||||||
static gboolean compositing_manager = FALSE;
|
static gboolean compositing_manager = FALSE;
|
||||||
@ -395,6 +396,11 @@ static MetaBoolPreference preferences_bool[] =
|
|||||||
&gnome_accessibility,
|
&gnome_accessibility,
|
||||||
FALSE,
|
FALSE,
|
||||||
},
|
},
|
||||||
|
{ "/desktop/gnome/interface/enable_animations",
|
||||||
|
META_PREF_GNOME_ANIMATIONS,
|
||||||
|
&gnome_animations,
|
||||||
|
TRUE,
|
||||||
|
},
|
||||||
{ "/apps/metacity/general/compositing_manager",
|
{ "/apps/metacity/general/compositing_manager",
|
||||||
META_PREF_COMPOSITING_MANAGER,
|
META_PREF_COMPOSITING_MANAGER,
|
||||||
&compositing_manager,
|
&compositing_manager,
|
||||||
@ -976,6 +982,7 @@ static gchar *gconf_dirs_we_are_interested_in[] = {
|
|||||||
KEY_TERMINAL_DIR,
|
KEY_TERMINAL_DIR,
|
||||||
KEY_GNOME_ACCESSIBILITY,
|
KEY_GNOME_ACCESSIBILITY,
|
||||||
"/desktop/gnome/peripherals/mouse",
|
"/desktop/gnome/peripherals/mouse",
|
||||||
|
"/desktop/gnome/interface",
|
||||||
NULL,
|
NULL,
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -1760,6 +1767,9 @@ meta_preference_to_string (MetaPreference pref)
|
|||||||
case META_PREF_GNOME_ACCESSIBILITY:
|
case META_PREF_GNOME_ACCESSIBILITY:
|
||||||
return "GNOME_ACCESSIBILTY";
|
return "GNOME_ACCESSIBILTY";
|
||||||
|
|
||||||
|
case META_PREF_GNOME_ANIMATIONS:
|
||||||
|
return "GNOME_ANIMATIONS";
|
||||||
|
|
||||||
case META_PREF_CURSOR_THEME:
|
case META_PREF_CURSOR_THEME:
|
||||||
return "CURSOR_THEME";
|
return "CURSOR_THEME";
|
||||||
|
|
||||||
@ -2862,6 +2872,12 @@ meta_prefs_get_gnome_accessibility ()
|
|||||||
return gnome_accessibility;
|
return gnome_accessibility;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
gboolean
|
||||||
|
meta_prefs_get_gnome_animations ()
|
||||||
|
{
|
||||||
|
return gnome_animations;
|
||||||
|
}
|
||||||
|
|
||||||
MetaKeyBindingAction
|
MetaKeyBindingAction
|
||||||
meta_prefs_get_keybinding_action (const char *name)
|
meta_prefs_get_keybinding_action (const char *name)
|
||||||
{
|
{
|
||||||
|
@ -56,6 +56,7 @@ typedef enum
|
|||||||
META_PREF_VISUAL_BELL_TYPE,
|
META_PREF_VISUAL_BELL_TYPE,
|
||||||
META_PREF_REDUCED_RESOURCES,
|
META_PREF_REDUCED_RESOURCES,
|
||||||
META_PREF_GNOME_ACCESSIBILITY,
|
META_PREF_GNOME_ACCESSIBILITY,
|
||||||
|
META_PREF_GNOME_ANIMATIONS,
|
||||||
META_PREF_CURSOR_THEME,
|
META_PREF_CURSOR_THEME,
|
||||||
META_PREF_CURSOR_SIZE,
|
META_PREF_CURSOR_SIZE,
|
||||||
META_PREF_COMPOSITING_MANAGER
|
META_PREF_COMPOSITING_MANAGER
|
||||||
@ -86,6 +87,7 @@ gboolean meta_prefs_get_auto_raise (void);
|
|||||||
int meta_prefs_get_auto_raise_delay (void);
|
int meta_prefs_get_auto_raise_delay (void);
|
||||||
gboolean meta_prefs_get_reduced_resources (void);
|
gboolean meta_prefs_get_reduced_resources (void);
|
||||||
gboolean meta_prefs_get_gnome_accessibility (void);
|
gboolean meta_prefs_get_gnome_accessibility (void);
|
||||||
|
gboolean meta_prefs_get_gnome_animations (void);
|
||||||
|
|
||||||
const char* meta_prefs_get_command (int i);
|
const char* meta_prefs_get_command (int i);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user