plugins/default: Make the background a vignette

Make the default plugin background a vignette in order to see that it
properly draws using the correct scale.

https://bugzilla.gnome.org/show_bug.cgi?id=768976
This commit is contained in:
Jonas Ådahl 2015-04-09 17:31:47 +08:00
parent f31d71ce63
commit 085df1170e

View File

@ -357,6 +357,11 @@ on_monitors_changed (MetaScreen *screen,
meta_background_actor_set_background (META_BACKGROUND_ACTOR (background_actor), background); meta_background_actor_set_background (META_BACKGROUND_ACTOR (background_actor), background);
g_object_unref (background); g_object_unref (background);
meta_background_actor_set_vignette (META_BACKGROUND_ACTOR (background_actor),
TRUE,
0.5,
0.5);
clutter_actor_add_child (self->priv->background_group, background_actor); clutter_actor_add_child (self->priv->background_group, background_actor);
} }