mirror of
https://github.com/brl/mutter.git
synced 2024-12-23 19:42:05 +00:00
shaped-texture: Clean up some internals
These are internal vfuncs, they don't need prechecks.
This commit is contained in:
parent
3962f1d982
commit
84baf4e181
@ -498,11 +498,7 @@ meta_shaped_texture_get_preferred_width (ClutterActor *self,
|
|||||||
gfloat *min_width_p,
|
gfloat *min_width_p,
|
||||||
gfloat *natural_width_p)
|
gfloat *natural_width_p)
|
||||||
{
|
{
|
||||||
MetaShapedTexturePrivate *priv;
|
MetaShapedTexturePrivate *priv = META_SHAPED_TEXTURE (self)->priv;
|
||||||
|
|
||||||
g_return_if_fail (META_IS_SHAPED_TEXTURE (self));
|
|
||||||
|
|
||||||
priv = META_SHAPED_TEXTURE (self)->priv;
|
|
||||||
|
|
||||||
if (min_width_p)
|
if (min_width_p)
|
||||||
*min_width_p = priv->tex_width;
|
*min_width_p = priv->tex_width;
|
||||||
@ -517,11 +513,7 @@ meta_shaped_texture_get_preferred_height (ClutterActor *self,
|
|||||||
gfloat *min_height_p,
|
gfloat *min_height_p,
|
||||||
gfloat *natural_height_p)
|
gfloat *natural_height_p)
|
||||||
{
|
{
|
||||||
MetaShapedTexturePrivate *priv;
|
MetaShapedTexturePrivate *priv = META_SHAPED_TEXTURE (self)->priv;
|
||||||
|
|
||||||
g_return_if_fail (META_IS_SHAPED_TEXTURE (self));
|
|
||||||
|
|
||||||
priv = META_SHAPED_TEXTURE (self)->priv;
|
|
||||||
|
|
||||||
if (min_height_p)
|
if (min_height_p)
|
||||||
*min_height_p = priv->tex_height;
|
*min_height_p = priv->tex_height;
|
||||||
|
Loading…
Reference in New Issue
Block a user