diff options
author | Benjamin Otte <otte@redhat.com> | 2012-08-28 15:29:56 +0200 |
---|---|---|
committer | Benjamin Otte <otte@redhat.com> | 2012-08-28 15:42:25 +0200 |
commit | e1a1432bd36cdb3ce4cc4364c9aa098c354e6246 (patch) | |
tree | 3101d1948cccacb5c3b39f669956090917b7dd94 /gtk/gtkcssimage.c | |
parent | 3a65fbfc136b95b51a2248ad0b8382ab173c205a (diff) | |
download | gtk+-e1a1432bd36cdb3ce4cc4364c9aa098c354e6246.tar.gz |
cssimage: Implement dependencies for images
Diffstat (limited to 'gtk/gtkcssimage.c')
-rw-r--r-- | gtk/gtkcssimage.c | 21 |
1 files changed, 14 insertions, 7 deletions
diff --git a/gtk/gtkcssimage.c b/gtk/gtkcssimage.c index e10de72d03..d990fc79fe 100644 --- a/gtk/gtkcssimage.c +++ b/gtk/gtkcssimage.c @@ -57,9 +57,10 @@ gtk_css_image_real_get_aspect_ratio (GtkCssImage *image) } static GtkCssImage * -gtk_css_image_real_compute (GtkCssImage *image, - guint property_id, - GtkStyleContext *context) +gtk_css_image_real_compute (GtkCssImage *image, + guint property_id, + GtkStyleContext *context, + GtkCssDependencies *dependencies) { return g_object_ref (image); } @@ -115,18 +116,24 @@ _gtk_css_image_get_aspect_ratio (GtkCssImage *image) } GtkCssImage * -_gtk_css_image_compute (GtkCssImage *image, - guint property_id, - GtkStyleContext *context) +_gtk_css_image_compute (GtkCssImage *image, + guint property_id, + GtkStyleContext *context, + GtkCssDependencies *dependencies) { + GtkCssDependencies unused; GtkCssImageClass *klass; g_return_val_if_fail (GTK_IS_CSS_IMAGE (image), NULL); g_return_val_if_fail (GTK_IS_STYLE_CONTEXT (context), NULL); + if (dependencies == NULL) + dependencies = &unused; + *dependencies = 0; + klass = GTK_CSS_IMAGE_GET_CLASS (image); - return klass->compute (image, property_id, context); + return klass->compute (image, property_id, context, dependencies); } void |