pygobject / pgi-docgen

API Documentation Generator for PyGObject
https://lazka.github.io/pgi-docs/
GNU Lesser General Public License v2.1
129 stars 36 forks source link

Signals - missing "widget" parameter? #82

Closed mpreu closed 9 years ago

mpreu commented 9 years ago

Hi,

I have a little problem with the documentation. E.g. when I want to use the draw signal of a widget the callback has to have three parameters (with self):

draw(self, widget, cairo_context)

But browsing the docu I can only see the cr as the required parameter Link . It seems to me that the widget parameter is always ommited. Is that an intented behaviour (no big deal but quite confusing when dealing with PyGObject for the first time)?

lazka commented 9 years ago

If you use connect_object the parameter might be different, but yeah I can see how it's confusing. Thanks for the report!

lazka commented 9 years ago

Fixed: https://lazka.github.io/pgi-docs/#Gtk-3.0/classes/Widget.html#Gtk.Widget.signals.draw