Mention GtkIconSize in all docs where the argument/return is annotated as taking an int instead of GtkIconSize

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.

https://bugzilla.gnome.org/show_bug.cgi?id=757411
This commit is contained in:
Christoph Reiter
2015-10-31 13:38:24 +01:00
parent 10f71dd98c
commit f66191346c
10 changed files with 42 additions and 40 deletions

View File

@ -988,7 +988,8 @@ gtk_action_unblock_activate (GtkAction *action)
/**
* gtk_action_create_icon:
* @action: the action object
* @icon_size: (type int): the size of the icon that should be created.
* @icon_size: (type int): the size of the icon (#GtkIconSize) that should
* be created.
*
* This function is intended for use by action implementations to
* create icons displayed in the proxy widgets.