diff options
author | Jasper St. Pierre <jstpierre@mecheye.net> | 2013-12-03 14:32:21 -0500 |
---|---|---|
committer | Jasper St. Pierre <jstpierre@mecheye.net> | 2013-12-03 14:32:28 -0500 |
commit | 899570d2131ac4978264b6b935d5a9e6b31ee17b (patch) | |
tree | 8d0aff8c7b08593fe7b063be06c9627842a1a292 /src/compositor/meta-background-actor.c | |
parent | 3b2506851c7a491fd918fbfea87939601fb7ad25 (diff) | |
download | mutter-899570d2131ac4978264b6b935d5a9e6b31ee17b.tar.gz |
background-actor: Remove custom get_paint_volume
The paint volume should be based on what we paint, not what the content
wants to be painted as. Thus, it should be the allocation.
Diffstat (limited to 'src/compositor/meta-background-actor.c')
-rw-r--r-- | src/compositor/meta-background-actor.c | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/src/compositor/meta-background-actor.c b/src/compositor/meta-background-actor.c index 20744587a..b5270c5eb 100644 --- a/src/compositor/meta-background-actor.c +++ b/src/compositor/meta-background-actor.c @@ -119,26 +119,6 @@ meta_background_actor_get_preferred_height (ClutterActor *actor, *natural_height_p = height; } -static gboolean -meta_background_actor_get_paint_volume (ClutterActor *actor, - ClutterPaintVolume *volume) -{ - ClutterContent *content; - gfloat width, height; - - content = clutter_actor_get_content (actor); - - if (!content) - return FALSE; - - clutter_content_get_preferred_size (content, &width, &height); - - clutter_paint_volume_set_width (volume, width); - clutter_paint_volume_set_height (volume, height); - - return TRUE; -} - static void meta_background_actor_class_init (MetaBackgroundActorClass *klass) { @@ -151,7 +131,6 @@ meta_background_actor_class_init (MetaBackgroundActorClass *klass) actor_class->get_preferred_width = meta_background_actor_get_preferred_width; actor_class->get_preferred_height = meta_background_actor_get_preferred_height; - actor_class->get_paint_volume = meta_background_actor_get_paint_volume; } static void |