Remove MetaAltTabHandler

gnome-shell is no longer using MetaAltTabHandler, so there's no need
to keep that abstraction around.

This reverts commit 1d5117a6 (and a comment from 7b0ba87b), with a bit
of rebasing and whitespace cleanup.

https://bugzilla.gnome.org/show_bug.cgi?id=596210
This commit is contained in:
Dan Winship
2009-09-23 21:27:42 -04:00
parent d6143e4c73
commit d04b15ee25
8 changed files with 120 additions and 532 deletions

View File

@@ -2047,15 +2047,11 @@ process_tab_grab (MetaDisplay *display,
action = META_KEYBINDING_ACTION_NONE;
/*
* There are currently two different ways of customizing Alt-Tab, you can either
* provide a replacement AltTabHandler object, or you can hook into the keybindings
* meta_keybindings_set_custom_handler() and call meta_display_begin_grab_op()
* yourself with one of the "tabbing" grab ops META_GRAB_OP_KEYBOARD_TABBING_NORMAL,
* etc. See meta_display_process_key_event() for the complete list. If screen->tab_handler
* is NULL, the latter mechanism is being used. We skip most of our normal
* processing and just make sure that the right custom handlers get called.
* If there is no tab_pop up object, i.e., there is some custom handler
* implementing Alt+Tab & Co., we call this custom handler; we do not
* mess about with the grab, as that is up to the handler to deal with.
*/
if (!screen->tab_handler)
if (!screen->tab_popup)
{
if (event->type == KeyRelease)
{