[mutter] background-group: Use a default FixedLayout manager
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter] background-group: Use a default FixedLayout manager
- Date: Mon, 18 Mar 2013 18:52:43 +0000 (UTC)
commit af01ddaf5d820b82e72fac81defed8f1bd264406
Author: Jasper St. Pierre <jstpierre mecheye net>
Date: Mon Mar 18 14:32:37 2013 -0400
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 files changed, 1 insertions(+), 6 deletions(-)
---
diff --git a/src/compositor/meta-background-group.c b/src/compositor/meta-background-group.c
index e413a8e..01dd27a 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);
}
/**
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]