/*
- * $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
*/
static VALUE c_get_file (VALUE self)
{
- char *file = NULL, *key = NULL;
+ const char *file = NULL, *key = NULL;
GET_OBJ (self, RbEvasObject, e);
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);