[gnome-shell] [ShellGenericContainer] Add method to get number of skipped children



commit c635cb701680b1d4b1b2a399ad0c612a383cd7a3
Author: Colin Walters <walters verbum org>
Date:   Mon Feb 22 16:22:38 2010 -0500

    [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(+), 0 deletions(-)
---
diff --git a/src/shell-generic-container.c b/src/shell-generic-container.c
index 90465ab..9eacb13 100644
--- a/src/shell-generic-container.c
+++ b/src/shell-generic-container.c
@@ -235,6 +235,18 @@ shell_generic_container_pick (ClutterActor        *actor,
 }
 
 /**
+ * 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
  * @child: Child #ClutterActor
diff --git a/src/shell-generic-container.h b/src/shell-generic-container.h
index 009df55..50f6570 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);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]