summaryrefslogtreecommitdiff
path: root/gtk/gtkstyleproperties.c
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2011-12-31 23:04:32 +0100
committerBenjamin Otte <otte@redhat.com>2012-01-09 18:37:53 +0100
commit73a632a4ae0f15fb46d558d7b6aa6694563aca15 (patch)
tree84eca33e9890aa236b2cd545ea6037a43ea405d5 /gtk/gtkstyleproperties.c
parent55a38f474690a10e4d8b9735693357f8eca43049 (diff)
downloadgtk+-73a632a4ae0f15fb46d558d7b6aa6694563aca15.tar.gz
css: Handle custom properties in a custom object
This way we can also get rid of the hack where we required modifying the pspec after creation, as the name is now a separate property.
Diffstat (limited to 'gtk/gtkstyleproperties.c')
-rw-r--r--gtk/gtkstyleproperties.c68
1 files changed, 0 insertions, 68 deletions
diff --git a/gtk/gtkstyleproperties.c b/gtk/gtkstyleproperties.c
index 9d26f3a117..bef1fbfc48 100644
--- a/gtk/gtkstyleproperties.c
+++ b/gtk/gtkstyleproperties.c
@@ -352,74 +352,6 @@ gtk_style_properties_provider_private_init (GtkStyleProviderPrivateInterface *if
iface->lookup = gtk_style_properties_provider_lookup;
}
-/* Property registration functions */
-
-/**
- * gtk_style_properties_register_property: (skip)
- * @parse_func: parsing function to use, or %NULL
- * @pspec: the #GParamSpec for the new property
- *
- * Registers a property so it can be used in the CSS file format.
- * This function is the low-level equivalent of
- * gtk_theming_engine_register_property(), if you are implementing
- * a theming engine, you want to use that function instead.
- *
- * Since: 3.0
- **/
-void
-gtk_style_properties_register_property (GtkStylePropertyParser parse_func,
- GParamSpec *pspec)
-{
- g_return_if_fail (G_IS_PARAM_SPEC (pspec));
-
- _gtk_style_property_register (pspec,
- 0,
- parse_func,
- NULL,
- NULL,
- NULL);
-}
-
-/**
- * gtk_style_properties_lookup_property: (skip)
- * @property_name: property name to look up
- * @parse_func: (out): return location for the parse function
- * @pspec: (out) (transfer none): return location for the #GParamSpec
- *
- * Returns %TRUE if a property has been registered, if @pspec or
- * @parse_func are not %NULL, the #GParamSpec and parsing function
- * will be respectively returned.
- *
- * Returns: %TRUE if the property is registered, %FALSE otherwise
- *
- * Since: 3.0
- **/
-gboolean
-gtk_style_properties_lookup_property (const gchar *property_name,
- GtkStylePropertyParser *parse_func,
- GParamSpec **pspec)
-{
- GtkStyleProperty *node;
- gboolean found = FALSE;
-
- g_return_val_if_fail (property_name != NULL, FALSE);
-
- node = _gtk_style_property_lookup (property_name);
-
- if (node)
- {
- if (pspec)
- *pspec = node->pspec;
-
- if (parse_func)
- *parse_func = node->property_parse_func;
-
- found = TRUE;
- }
-
- return found;
-}
-
/* GtkStyleProperties methods */
/**