GNOME Bugzilla – Bug 757411
Reference GtkIconSize in argument/return documentation
Last modified: 2016-01-04 11:02:09 UTC
In https://bugzilla.gnome.org/show_bug.cgi?id=601425 the annotations were changed to int as they not only take the predefined enum values but also user defined values registered through gtk_icon_size_register() As a result the typelib doesn't contain any information about GtkIconSize for those arguments and the Python docstring only shows the corresponding Python type "int". This changes the argument docs to mention the type explicitly so the Python doc generator can add a link to Gtk.IconSize which contains the most useful predefined values. pgi-docgen bug: https://github.com/lazka/pgi-docgen/issues/104 Example docs: https://lazka.github.io/pgi-docs/#Gtk-3.0/classes/Button.html#Gtk.Button.new_from_icon_name
Created attachment 314544 [details] [review] Mention GtkIconSize in all docs where the argument/return is annotated as taking an int instead of GtkIconSize
Comment on attachment 314544 [details] [review] Mention GtkIconSize in all docs where the argument/return is annotated as taking an int instead of GtkIconSize Someone on IRC said "just push it"..
https://git.gnome.org/browse/gtk+/commit/?id=f66191346c997e9f45843f6d8f087aa555bde811