From af01ddaf5d820b82e72fac81defed8f1bd264406 Mon Sep 17 00:00:00 2001 From: "Jasper St. Pierre" Date: Mon, 18 Mar 2013 14:32:37 -0400 Subject: [PATCH] background-group: Use a default FixedLayout manager ClutterBinLayout's get_preferred_width / get_preferred_height doesn't respect fixed child positioning when calculating the size of the layout, but does when allocating. This is absurdly broken, but it's what we're given. Use a ClutterFixedLayout, which doesn't have these issues. https://bugzilla.gnome.org/show_bug.cgi?id=696089 --- src/compositor/meta-background-group.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/compositor/meta-background-group.c b/src/compositor/meta-background-group.c index e413a8e12..01dd27a87 100644 --- a/src/compositor/meta-background-group.c +++ b/src/compositor/meta-background-group.c @@ -25,7 +25,7 @@ G_DEFINE_TYPE (MetaBackgroundGroup, meta_background_group, CLUTTER_TYPE_ACTOR); struct _MetaBackgroundGroupPrivate { - ClutterLayoutManager *layout_manager; + gpointer dummy; }; static void @@ -59,11 +59,6 @@ meta_background_group_init (MetaBackgroundGroup *self) self->priv = G_TYPE_INSTANCE_GET_PRIVATE (self, META_TYPE_BACKGROUND_GROUP, MetaBackgroundGroupPrivate); - - self->priv->layout_manager = clutter_bin_layout_new (CLUTTER_BIN_ALIGNMENT_FIXED, - CLUTTER_BIN_ALIGNMENT_FIXED); - - clutter_actor_set_layout_manager (CLUTTER_ACTOR (self), self->priv->layout_manager); } /**