void _shell_global_set_plugin (ShellGlobal *global, MutterPlugin *plugin) { g_return_if_fail (SHELL_IS_GLOBAL (global)); g_return_if_fail (global->plugin == NULL); global->plugin = plugin; global->wm = shell_wm_new (plugin); }
void _shell_global_set_plugin (ShellGlobal *global, MutterPlugin *plugin) { g_return_if_fail (SHELL_IS_GLOBAL (global)); g_return_if_fail (global->plugin == NULL); global->plugin = plugin; global->wm = shell_wm_new (plugin); /* At this point screen is NULL, so we can't yet do signal connections * to the width and height; we wait until the screen property is set * to do that. Note that this is a one time thing - screen will never * change once first set. */ g_signal_connect (plugin, "notify::screen", G_CALLBACK (global_plugin_notify_screen), global); }