Fix window.setfont() to call drawing_setfont internally.
diff --git a/Modules/stdwinmodule.c b/Modules/stdwinmodule.c
index e00fc91..0a572e4 100644
--- a/Modules/stdwinmodule.c
+++ b/Modules/stdwinmodule.c
@@ -1329,19 +1329,16 @@
windowobject *self;
object *args;
{
+ object *v;
TEXTATTR saveattr, winattr;
- object *str;
- if (!getstrarg(args, &str))
- return NULL;
wgettextattr(&saveattr);
wgetwintextattr(self->w_win, &winattr);
wsettextattr(&winattr);
- wsetfont(getstringvalue(str));
+ v = drawing_setfont((drawingobject *)NULL, args);
wgettextattr(&winattr);
wsetwintextattr(self->w_win, &winattr);
wsettextattr(&saveattr);
- INCREF(None);
- return None;
+ return v;
}
static struct methodlist window_methods[] = {