editor-view: use widget_class instead of klass for registration macros