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
This commit is contained in:
Jasper St. Pierre 2013-03-18 14:32:37 -04:00
parent 5ceffe86ee
commit af01ddaf5d

View File

@ -25,7 +25,7 @@ G_DEFINE_TYPE (MetaBackgroundGroup, meta_background_group, CLUTTER_TYPE_ACTOR);
struct _MetaBackgroundGroupPrivate struct _MetaBackgroundGroupPrivate
{ {
ClutterLayoutManager *layout_manager; gpointer dummy;
}; };
static void static void
@ -59,11 +59,6 @@ meta_background_group_init (MetaBackgroundGroup *self)
self->priv = G_TYPE_INSTANCE_GET_PRIVATE (self, self->priv = G_TYPE_INSTANCE_GET_PRIVATE (self,
META_TYPE_BACKGROUND_GROUP, META_TYPE_BACKGROUND_GROUP,
MetaBackgroundGroupPrivate); 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);
} }
/** /**