forked from AuroraMiddleware/gtk
GtkThemingEngine: Do not require a default value when registering properties
NULL should work for 0 for int/double/enum/... types and NULL for pointer types, this should be sane enough to not require a default value.
This commit is contained in:
parent
765f653df6
commit
df95a74a27
@ -377,7 +377,7 @@ gtk_theming_engine_register_property (GtkThemingEngine *engine,
|
||||
g_return_if_fail (GTK_IS_THEMING_ENGINE (engine));
|
||||
g_return_if_fail (property_name != NULL);
|
||||
g_return_if_fail (type != G_TYPE_INVALID);
|
||||
g_return_if_fail (default_value != NULL && G_IS_VALUE (default_value));
|
||||
g_return_if_fail (default_value == NULL || G_IS_VALUE (default_value));
|
||||
|
||||
priv = engine->priv;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user