summaryrefslogtreecommitdiff
path: root/gtk/gtkcssimage.c
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2012-04-18 21:44:08 +0200
committerBenjamin Otte <otte@redhat.com>2012-05-11 16:42:12 +0200
commitc9f01ffb43378b6e44e420f79bc49cb5c8fe0706 (patch)
tree782eea4bae6104d6e6fe4b0b0a2d066e3108340c /gtk/gtkcssimage.c
parente1317268a338589fd6fa01c303569cdc111b3f5e (diff)
downloadgtk+-c9f01ffb43378b6e44e420f79bc49cb5c8fe0706.tar.gz
cssimage: No need to pass base file anymore
The file is now part of the GtkCssParser
Diffstat (limited to 'gtk/gtkcssimage.c')
-rw-r--r--gtk/gtkcssimage.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/gtk/gtkcssimage.c b/gtk/gtkcssimage.c
index 66ceffe771..f92d4e9d6e 100644
--- a/gtk/gtkcssimage.c
+++ b/gtk/gtkcssimage.c
@@ -357,15 +357,13 @@ _gtk_css_image_can_parse (GtkCssParser *parser)
}
GtkCssImage *
-_gtk_css_image_new_parse (GtkCssParser *parser,
- GFile *base)
+_gtk_css_image_new_parse (GtkCssParser *parser)
{
GtkCssImageClass *klass;
GtkCssImage *image;
GType image_type;
g_return_val_if_fail (parser != NULL, NULL);
- g_return_val_if_fail (G_IS_FILE (base), NULL);
image_type = gtk_css_image_get_parser_type (parser);
if (image_type == G_TYPE_INVALID)
@@ -377,7 +375,7 @@ _gtk_css_image_new_parse (GtkCssParser *parser,
image = g_object_new (image_type, NULL);
klass = GTK_CSS_IMAGE_GET_CLASS (image);
- if (!klass->parse (image, parser, base))
+ if (!klass->parse (image, parser))
{
g_object_unref (image);
return NULL;