[gnome-shell] [ShellGenericContainer] add _get_skip_paint()



commit 1816a6339df20d0e9b18d7fc8b67d6e52b92877c
Author: Dan Winship <danw gnome org>
Date:   Thu Apr 29 11:15:22 2010 -0400

    [ShellGenericContainer] add _get_skip_paint()
    
    https://bugzilla.gnome.org/show_bug.cgi?id=608667

 src/shell-generic-container.c |   18 +++++++++++++++++-
 src/shell-generic-container.h |   14 ++++++++------
 2 files changed, 25 insertions(+), 7 deletions(-)
---
diff --git a/src/shell-generic-container.c b/src/shell-generic-container.c
index caba274..9143368 100644
--- a/src/shell-generic-container.c
+++ b/src/shell-generic-container.c
@@ -174,10 +174,26 @@ shell_generic_container_get_n_skip_paint (ShellGenericContainer  *self)
 }
 
 /**
+ * shell_generic_container_get_skip_paint:
+ * @container: A #ShellGenericContainer
+ * @child: Child #ClutterActor
+ *
+ * Gets whether or not @actor is skipped when painting.
+ *
+ * Return value: %TRUE or %FALSE
+ */
+gboolean
+shell_generic_container_get_skip_paint (ShellGenericContainer  *self,
+                                        ClutterActor           *child)
+{
+  return g_hash_table_lookup (self->priv->skip_paint, child) != NULL;
+}
+
+/**
  * shell_generic_container_set_skip_paint:
  * @container: A #ShellGenericContainer
  * @child: Child #ClutterActor
- * @skip %TRUE if we should skip painting
+ * @skip: %TRUE if we should skip painting
  *
  * Set whether or not we should skip painting @actor.  Workaround for
  * lack of gjs ability to override _paint vfunc.
diff --git a/src/shell-generic-container.h b/src/shell-generic-container.h
index 8f9ab20..e14ef45 100644
--- a/src/shell-generic-container.h
+++ b/src/shell-generic-container.h
@@ -39,13 +39,15 @@ struct _ShellGenericContainerClass
     StWidgetClass parent_class;
 };
 
-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 *self);
+guint    shell_generic_container_get_n_skip_paint (ShellGenericContainer *self);
 
-void  shell_generic_container_set_skip_paint   (ShellGenericContainer *self,
-                                                ClutterActor          *actor,
-                                                gboolean               skip);
-void  shell_generic_container_remove_all       (ShellGenericContainer *self);
+gboolean shell_generic_container_get_skip_paint   (ShellGenericContainer *self,
+                                                   ClutterActor          *actor);
+void     shell_generic_container_set_skip_paint   (ShellGenericContainer *self,
+                                                   ClutterActor          *actor,
+                                                   gboolean               skip);
+void     shell_generic_container_remove_all       (ShellGenericContainer *self);
 
 #endif /* __SHELL_GENERIC_CONTAINER_H__ */



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