Use clutter_event_get_* instead of ShellGlobal

Before Clutter gained accessors for event information, we had
shell_global_ functions.  Now that Clutter has them, use them and
delete the ShellGlobal code.

http://bugzilla.gnome.org/show_bug.cgi?id=594561
This commit is contained in:
Colin Walters
2009-09-08 16:58:57 -04:00
parent 5880b3b0ed
commit 37ee16b34d
9 changed files with 10 additions and 56 deletions

View File

@ -155,7 +155,7 @@ function _globalKeyPressHandler(actor, event) {
let type = event.type();
if (type == Clutter.EventType.KEY_PRESS) {
let symbol = Shell.get_event_key_symbol (event);
let symbol = event.get_key_symbol();
if (symbol == Clutter.Print) {
// We want to be able to take screenshots of the shell at all times
let gconf = Shell.GConf.get_default();
@ -169,7 +169,7 @@ function _globalKeyPressHandler(actor, event) {
return true;
}
} else if (type == Clutter.EventType.KEY_RELEASE) {
let symbol = Shell.get_event_key_symbol (event);
let symbol = event.get_key_symbol();
if (symbol == Clutter.Super_L || symbol == Clutter.Super_R) {
// The super key is the default for triggering the overview, and should
// get us out of the overview when we are already in it.