From c635cb701680b1d4b1b2a399ad0c612a383cd7a3 Mon Sep 17 00:00:00 2001 From: Colin Walters Date: Mon, 22 Feb 2010 16:22:38 -0500 Subject: [PATCH] [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 --- src/shell-generic-container.c | 12 ++++++++++++ src/shell-generic-container.h | 2 ++ 2 files changed, 14 insertions(+) diff --git a/src/shell-generic-container.c b/src/shell-generic-container.c index 90465ab65..9eacb1325 100644 --- a/src/shell-generic-container.c +++ b/src/shell-generic-container.c @@ -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 diff --git a/src/shell-generic-container.h b/src/shell-generic-container.h index 009df5516..50f657063 100644 --- a/src/shell-generic-container.h +++ b/src/shell-generic-container.h @@ -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);