[ShellGenericContainer] add _get_skip_paint()

https://bugzilla.gnome.org/show_bug.cgi?id=608667
This commit is contained in:
Dan Winship 2010-04-29 11:15:22 -04:00
parent e9e2786fa3
commit 1816a6339d
2 changed files with 25 additions and 7 deletions

View File

@ -173,11 +173,27 @@ shell_generic_container_get_n_skip_paint (ShellGenericContainer *self)
return g_hash_table_size (self->priv->skip_paint); return g_hash_table_size (self->priv->skip_paint);
} }
/**
* 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: * shell_generic_container_set_skip_paint:
* @container: A #ShellGenericContainer * @container: A #ShellGenericContainer
* @child: Child #ClutterActor * @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 * Set whether or not we should skip painting @actor. Workaround for
* lack of gjs ability to override _paint vfunc. * lack of gjs ability to override _paint vfunc.

View File

@ -39,13 +39,15 @@ struct _ShellGenericContainerClass
StWidgetClass parent_class; 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, gboolean shell_generic_container_get_skip_paint (ShellGenericContainer *self,
ClutterActor *actor, ClutterActor *actor);
gboolean skip); void shell_generic_container_set_skip_paint (ShellGenericContainer *self,
void shell_generic_container_remove_all (ShellGenericContainer *self); ClutterActor *actor,
gboolean skip);
void shell_generic_container_remove_all (ShellGenericContainer *self);
#endif /* __SHELL_GENERIC_CONTAINER_H__ */ #endif /* __SHELL_GENERIC_CONTAINER_H__ */