From a5770cef36d08c8539d31aca6256b7fc158d2f9c Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Fri, 30 Nov 2012 18:57:56 +0100 Subject: styleproperty: Add an affects-size property This property will be used to avoid gtk_widget_queue_resize() calls in favor of gtk_widget_queue_draw(). --- gtk/gtkcssstylepropertyprivate.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'gtk/gtkcssstylepropertyprivate.h') diff --git a/gtk/gtkcssstylepropertyprivate.h b/gtk/gtkcssstylepropertyprivate.h index b04b2679a9..34411e0693 100644 --- a/gtk/gtkcssstylepropertyprivate.h +++ b/gtk/gtkcssstylepropertyprivate.h @@ -49,6 +49,7 @@ struct _GtkCssStyleProperty guint id; guint inherit :1; guint animated :1; + guint affects_size :1; GtkCssStylePropertyParseFunc parse_value; GtkCssStylePropertyQueryFunc query_value; @@ -71,6 +72,7 @@ GtkCssStyleProperty * _gtk_css_style_property_lookup_by_id (guint gboolean _gtk_css_style_property_is_inherit (GtkCssStyleProperty *property); gboolean _gtk_css_style_property_is_animated (GtkCssStyleProperty *property); +gboolean _gtk_css_style_property_affects_size (GtkCssStyleProperty *property); guint _gtk_css_style_property_get_id (GtkCssStyleProperty *property); GtkCssValue * _gtk_css_style_property_get_initial_value (GtkCssStyleProperty *property); -- cgit v1.2.1