[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:
parent
dd23a61dbb
commit
c635cb7016
@ -234,6 +234,18 @@ shell_generic_container_pick (ClutterActor *actor,
|
|||||||
g_list_free (children);
|
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:
|
* shell_generic_container_set_skip_paint:
|
||||||
* @container: A #ShellGenericContainer
|
* @container: A #ShellGenericContainer
|
||||||
|
@ -42,6 +42,8 @@ struct _ShellGenericContainerClass
|
|||||||
|
|
||||||
GType shell_generic_container_get_type (void) G_GNUC_CONST;
|
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,
|
void shell_generic_container_set_skip_paint (ShellGenericContainer *container,
|
||||||
ClutterActor *actor,
|
ClutterActor *actor,
|
||||||
gboolean skip);
|
gboolean skip);
|
||||||
|
Loading…
Reference in New Issue
Block a user