[ShellGenericContainer] Add method to get number of skipped children

This will be used in search results.

https://bugzilla.gnome.org/show_bug.cgi?id=610740
This commit is contained in:
Colin Walters 2010-02-22 16:22:38 -05:00
parent dd23a61dbb
commit c635cb7016
2 changed files with 14 additions and 0 deletions

View File

@ -234,6 +234,18 @@ shell_generic_container_pick (ClutterActor *actor,
g_list_free (children);
}
/**
* shell_generic_container_get_n_skip_paint:
* @container: A #ShellGenericContainer
*
* Returns: Number of children which will not be painted.
*/
guint
shell_generic_container_get_n_skip_paint (ShellGenericContainer *self)
{
return g_hash_table_size (self->priv->skip_paint);
}
/**
* shell_generic_container_set_skip_paint:
* @container: A #ShellGenericContainer

View File

@ -42,6 +42,8 @@ struct _ShellGenericContainerClass
GType shell_generic_container_get_type (void) G_GNUC_CONST;
guint shell_generic_container_get_n_skip_paint (ShellGenericContainer *container);
void shell_generic_container_set_skip_paint (ShellGenericContainer *container,
ClutterActor *actor,
gboolean skip);