diff options
author | Benjamin Otte <otte@redhat.com> | 2015-01-27 05:03:52 +0100 |
---|---|---|
committer | Benjamin Otte <otte@redhat.com> | 2015-01-27 05:04:34 +0100 |
commit | aa1b7fab9c6a2b39ccdf90c8ee1e04e583815424 (patch) | |
tree | fdf73cb68531894f160b97b65a91b4439452de74 /gtk/gtkcssstyleproperty.c | |
parent | 488ea44a597063ecd9d1354bc01b1e165670a98d (diff) | |
download | gtk+-aa1b7fab9c6a2b39ccdf90c8ee1e04e583815424.tar.gz |
css: Remove _gtk_css_style_property_changes_affect_size()
... and _gtk_css_style_property_changes_affect_font().
Replace it with _gtk_css_style_property_get_mask_affecting().
Diffstat (limited to 'gtk/gtkcssstyleproperty.c')
-rw-r--r-- | gtk/gtkcssstyleproperty.c | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/gtk/gtkcssstyleproperty.c b/gtk/gtkcssstyleproperty.c index 55da7d17de..9f6dca23f2 100644 --- a/gtk/gtkcssstyleproperty.c +++ b/gtk/gtkcssstyleproperty.c @@ -47,9 +47,6 @@ enum { G_DEFINE_TYPE (GtkCssStyleProperty, _gtk_css_style_property, GTK_TYPE_STYLE_PROPERTY) -static GtkBitmask *_properties_affecting_size = NULL; -static GtkBitmask *_properties_affecting_font = NULL; - static GtkCssStylePropertyClass *gtk_css_style_property_class = NULL; static void @@ -61,12 +58,6 @@ gtk_css_style_property_constructed (GObject *object) property->id = klass->style_properties->len; g_ptr_array_add (klass->style_properties, property); - if (property->affects & (GTK_CSS_AFFECTS_SIZE | GTK_CSS_AFFECTS_CLIP)) - _properties_affecting_size = _gtk_bitmask_set (_properties_affecting_size, property->id, TRUE); - - if (property->affects & GTK_CSS_AFFECTS_FONT) - _properties_affecting_font = _gtk_bitmask_set (_properties_affecting_font, property->id, TRUE); - G_OBJECT_CLASS (_gtk_css_style_property_parent_class)->constructed (object); } @@ -253,9 +244,6 @@ _gtk_css_style_property_class_init (GtkCssStylePropertyClass *klass) klass->style_properties = g_ptr_array_new (); - _properties_affecting_size = _gtk_bitmask_new (); - _properties_affecting_font = _gtk_bitmask_new (); - gtk_css_style_property_class = klass; } @@ -435,14 +423,3 @@ _gtk_css_style_property_get_mask_affecting (GtkCssAffects affects) return result; } -gboolean -_gtk_css_style_property_changes_affect_size (const GtkBitmask *changes) -{ - return _gtk_bitmask_intersects (changes, _properties_affecting_size); -} - -gboolean -_gtk_css_style_property_changes_affect_font (const GtkBitmask *changes) -{ - return _gtk_bitmask_intersects (changes, _properties_affecting_font); -} |