ShellGenericContainer: adjust requested height/width for border/padding

https://bugzilla.gnome.org/show_bug.cgi?id=614293
This commit is contained in:
Dan Winship 2010-03-30 10:26:38 -04:00
parent b8647cc00e
commit 8dd572d1cc

View File

@ -95,6 +95,8 @@ shell_generic_container_get_preferred_width (ClutterActor *actor,
if (natural_width_p)
*natural_width_p = alloc->natural_size;
shell_generic_container_allocation_unref (alloc);
st_theme_node_adjust_preferred_width (theme_node, min_width_p, natural_width_p);
}
static void
@ -116,6 +118,8 @@ shell_generic_container_get_preferred_height (ClutterActor *actor,
if (natural_height_p)
*natural_height_p = alloc->natural_size;
shell_generic_container_allocation_unref (alloc);
st_theme_node_adjust_preferred_height (theme_node, min_height_p, natural_height_p);
}
static void