[ShellGenericContainer] add _get_skip_paint()
https://bugzilla.gnome.org/show_bug.cgi?id=608667
This commit is contained in:
parent
e9e2786fa3
commit
1816a6339d
@ -173,11 +173,27 @@ shell_generic_container_get_n_skip_paint (ShellGenericContainer *self)
|
||||
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:
|
||||
* @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.
|
||||
|
@ -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__ */
|
||||
|
Loading…
Reference in New Issue
Block a user