X-Git-Url: http://git.code-monkey.de/?a=blobdiff_plain;f=src%2Frb_image.c;h=6efca2853fc81471bc6befeb49532e0b4c241bd4;hb=58d15635efc9bc61bd79faf7b821a0b51ac6223e;hp=a3b96b81629190d2556c92ea2b1f1287882d2eca;hpb=0a0d9786cc7979e601c34ffd7db294a8c1ce81e0;p=ruby-evas.git diff --git a/src/rb_image.c b/src/rb_image.c index a3b96b8..6efca28 100644 --- a/src/rb_image.c +++ b/src/rb_image.c @@ -1,6 +1,4 @@ /* - * $Id: rb_image.c 376 2006-02-25 10:10:31Z tilman $ - * * Copyright (C) 2004 Tilman Sauerbeck (tilman at code-monkey de) * * This library is free software; you can redistribute it and/or @@ -84,12 +82,8 @@ static VALUE c_set_file (int argc, VALUE *argv, VALUE self) rb_scan_args (argc, argv, "11", &file, &key); - Check_Type (file, T_STRING); - - if (!NIL_P (key)) { - Check_Type (key, T_STRING); + if (!NIL_P (key)) k = StringValuePtr (key); - } evas_object_image_file_set (e->real, StringValuePtr (file), k);