Don't depend on removed MetaPlugin APIs

Several MetaPlugin APIs that were just wrappers around other functions
were removed - switch to using the other functions directly.

https://bugzilla.gnome.org/show_bug.cgi?id=671103
This commit is contained in:
Jasper St. Pierre
2012-02-29 22:38:35 -05:00
parent 6cde2d8db4
commit 895745ac14
2 changed files with 11 additions and 5 deletions

View File

@ -562,14 +562,18 @@ void
shell_global_set_stage_input_mode (ShellGlobal *global,
ShellStageInputMode mode)
{
MetaScreen *screen;
g_return_if_fail (SHELL_IS_GLOBAL (global));
screen = meta_plugin_get_screen (global->plugin);
if (mode == SHELL_STAGE_INPUT_MODE_NONREACTIVE || global->gtk_grab_active)
meta_plugin_set_stage_reactive (global->plugin, FALSE);
meta_empty_stage_input_region (screen);
else if (mode == SHELL_STAGE_INPUT_MODE_FULLSCREEN || !global->input_region)
meta_plugin_set_stage_reactive (global->plugin, TRUE);
meta_set_stage_input_region (screen, None);
else
meta_plugin_set_stage_input_region (global->plugin, global->input_region);
meta_set_stage_input_region (screen, global->input_region);
if (mode == SHELL_STAGE_INPUT_MODE_FOCUSED)
shell_global_focus_stage (global);
@ -1020,7 +1024,7 @@ _shell_global_set_plugin (ShellGlobal *global,
global->gdk_screen = gdk_display_get_screen (global->gdk_display,
meta_screen_get_screen_number (global->meta_screen));
global->stage = CLUTTER_STAGE (meta_plugin_get_stage (plugin));
global->stage = CLUTTER_STAGE (meta_get_stage_for_screen (global->meta_screen));
global->stage_xwindow = clutter_x11_get_stage_window (global->stage);
global->stage_gdk_window = gdk_x11_window_foreign_new_for_display (global->gdk_display,
global->stage_xwindow);