[ShellGenericContainer] minor style fixes
https://bugzilla.gnome.org/show_bug.cgi?id=611647
This commit is contained in:
parent
0f0e3d9644
commit
0f81c7efe0
@ -54,9 +54,7 @@ static void
|
|||||||
shell_generic_container_allocation_unref (ShellGenericContainerAllocation *alloc)
|
shell_generic_container_allocation_unref (ShellGenericContainerAllocation *alloc)
|
||||||
{
|
{
|
||||||
if (--alloc->_refcount == 0)
|
if (--alloc->_refcount == 0)
|
||||||
{
|
g_slice_free (ShellGenericContainerAllocation, alloc);
|
||||||
g_slice_free1 (sizeof (ShellGenericContainerAllocation), alloc);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
@ -77,7 +75,8 @@ shell_generic_container_get_preferred_width (ClutterActor *actor,
|
|||||||
gfloat *min_width_p,
|
gfloat *min_width_p,
|
||||||
gfloat *natural_width_p)
|
gfloat *natural_width_p)
|
||||||
{
|
{
|
||||||
ShellGenericContainerAllocation *alloc = g_slice_alloc0 (sizeof (ShellGenericContainerAllocation));
|
ShellGenericContainerAllocation *alloc = g_slice_new0 (ShellGenericContainerAllocation);
|
||||||
|
|
||||||
alloc->_refcount = 1;
|
alloc->_refcount = 1;
|
||||||
g_signal_emit (G_OBJECT (actor), shell_generic_container_signals[GET_PREFERRED_WIDTH], 0,
|
g_signal_emit (G_OBJECT (actor), shell_generic_container_signals[GET_PREFERRED_WIDTH], 0,
|
||||||
for_height, alloc);
|
for_height, alloc);
|
||||||
@ -94,7 +93,8 @@ shell_generic_container_get_preferred_height (ClutterActor *actor,
|
|||||||
gfloat *min_height_p,
|
gfloat *min_height_p,
|
||||||
gfloat *natural_height_p)
|
gfloat *natural_height_p)
|
||||||
{
|
{
|
||||||
ShellGenericContainerAllocation *alloc = g_slice_alloc0 (sizeof (ShellGenericContainerAllocation));
|
ShellGenericContainerAllocation *alloc = g_slice_new0 (ShellGenericContainerAllocation);
|
||||||
|
|
||||||
alloc->_refcount = 1;
|
alloc->_refcount = 1;
|
||||||
g_signal_emit (G_OBJECT (actor), shell_generic_container_signals[GET_PREFERRED_HEIGHT], 0,
|
g_signal_emit (G_OBJECT (actor), shell_generic_container_signals[GET_PREFERRED_HEIGHT], 0,
|
||||||
for_width, alloc);
|
for_width, alloc);
|
||||||
@ -269,7 +269,8 @@ shell_generic_container_init (ShellGenericContainer *area)
|
|||||||
area->priv->skip_paint = g_hash_table_new (NULL, NULL);
|
area->priv->skip_paint = g_hash_table_new (NULL, NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
GType shell_generic_container_allocation_get_type (void)
|
GType
|
||||||
|
shell_generic_container_allocation_get_type (void)
|
||||||
{
|
{
|
||||||
static GType gtype = G_TYPE_INVALID;
|
static GType gtype = G_TYPE_INVALID;
|
||||||
if (gtype == G_TYPE_INVALID)
|
if (gtype == G_TYPE_INVALID)
|
||||||
|
Loading…
Reference in New Issue
Block a user