diff options
author | Benjamin Otte <otte@redhat.com> | 2012-09-28 13:42:21 +0200 |
---|---|---|
committer | Benjamin Otte <otte@redhat.com> | 2012-09-28 18:27:49 +0200 |
commit | 0cc32eae6219599882e7dc75115050ce77607887 (patch) | |
tree | 8a587d18c369dbf4ae630796435058bfee4ce06d /gtk/gtkstyleproviderprivate.c | |
parent | 448cdb07370a20e0ba5efe061ec86193a72afcda (diff) | |
download | gtk+-0cc32eae6219599882e7dc75115050ce77607887.tar.gz |
symboliccolor: Change prototype of _gtk_symbolic_color_resolve_full()
We can juts pass a GtkStyleProviderPrivate, that one has the vfunc we
want already. So no need to pass vfuncs anymore.
Diffstat (limited to 'gtk/gtkstyleproviderprivate.c')
-rw-r--r-- | gtk/gtkstyleproviderprivate.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gtk/gtkstyleproviderprivate.c b/gtk/gtkstyleproviderprivate.c index a0b75a9618..936f191190 100644 --- a/gtk/gtkstyleproviderprivate.c +++ b/gtk/gtkstyleproviderprivate.c @@ -50,6 +50,10 @@ _gtk_style_provider_private_get_color (GtkStyleProviderPrivate *provider, { GtkStyleProviderPrivateInterface *iface; + /* for compat with gtk_symbolic_color_resolve() */ + if (provider == NULL) + return NULL; + g_return_val_if_fail (GTK_IS_STYLE_PROVIDER_PRIVATE (provider), NULL); iface = GTK_STYLE_PROVIDER_PRIVATE_GET_INTERFACE (provider); |