+static VALUE c_configure (int argc, VALUE *argv, VALUE self)
+{
+ VALUE mask, geom[4], border, sibling, stackm;
+ RbWindow *sibwin = NULL;
+ int i;
+
+ GET_OBJ (self, RbWindow, win);
+
+ rb_scan_args (argc, argv, "17", &mask,
+ &geom[0], &geom[1], &geom[2], &geom[3],
+ &border, &sibling, &stackm);
+
+ Check_Type (mask, T_FIXNUM);
+
+ for (i = 0; i < 4; i++)
+ if (!NIL_P (geom[i]))
+ Check_Type (geom[i], T_FIXNUM);
+
+ if (!NIL_P (border))
+ Check_Type (border, T_FIXNUM);
+
+ if (!NIL_P (sibling)) {
+ CHECK_CLASS (sibling, cWindow);
+ Data_Get_Struct (sibling, RbWindow, sibwin);
+ }
+
+ if (!NIL_P (stackm))
+ Check_Type (stackm, T_FIXNUM);
+
+ ecore_x_window_configure (win->real, FIX2INT (mask),
+ NIL_P (geom[0]) ? 0 : FIX2INT (geom[0]),
+ NIL_P (geom[1]) ? 0 : FIX2INT (geom[1]),
+ NIL_P (geom[2]) ? 0 : FIX2INT (geom[2]),
+ NIL_P (geom[3]) ? 0 : FIX2INT (geom[3]),
+ NIL_P (border) ? 0 : FIX2INT (border),
+ sibwin ? sibwin->real : 0,
+ NIL_P (stackm) ? 0 : FIX2INT (stackm));
+
+ return Qnil;
+}
+