/*
- * $Id: rb_edje.c 307 2005-03-23 17:30:30Z tilman $
+ * $Id: rb_edje.c 328 2005-04-28 07:44:46Z tilman $
*
* Copyright (C) 2004 Tilman Sauerbeck (tilman at code-monkey de)
*
static VALUE c_part_get (VALUE self, VALUE name)
{
VALUE part;
+ const char *cname = StringValuePtr (name);
GET_OBJ (self, RbEdje, e);
- Check_Type (name, T_STRING);
- if (!edje_object_part_exists (e->real.real, StringValuePtr (name))) {
- rb_raise (rb_eException, "Unknown part name");
+ if (!edje_object_part_exists (e->real.real, cname)) {
+ rb_raise (rb_eException, "Unknown part name - %s", cname);
return Qnil;
}