diff options
author | Dan Winship <danw@gnome.org> | 2009-12-18 11:58:36 +0100 |
---|---|---|
committer | Dan Winship <danw@gnome.org> | 2009-12-19 10:32:35 +0100 |
commit | 0b4af241b60cb63cccc010bc7c94ab2c97134730 (patch) | |
tree | 7807469ba01022ae6d468274d1ef8a29a0e2e0e6 /gtk/gtktoolbar.c | |
parent | 6afa3b95078bbb78ba3287e1859395cc25bb41c3 (diff) | |
download | gtk+-0b4af241b60cb63cccc010bc7c94ab2c97134730.tar.gz |
Change GtkIconSize to int in params/return values
GtkIconSize is an extensible enumeration (via
gtk_icon_size_register()), so methods that claim to take/return a
GtkIconSize need to actually use "int" to work correctly with bindings
that are strict about enum values.
https://bugzilla.gnome.org/show_bug.cgi?id=604895
Diffstat (limited to 'gtk/gtktoolbar.c')
-rw-r--r-- | gtk/gtktoolbar.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/gtk/gtktoolbar.c b/gtk/gtktoolbar.c index b83790ccac..f383ff539f 100644 --- a/gtk/gtktoolbar.c +++ b/gtk/gtktoolbar.c @@ -3037,7 +3037,8 @@ gtk_toolbar_get_nth_item (GtkToolbar *toolbar, * * Retrieves the icon size for the toolbar. See gtk_toolbar_set_icon_size(). * - * Return value: the current icon size for the icons on the toolbar. + * Return value: (type int): the current icon size for the icons on + * the toolbar. **/ GtkIconSize gtk_toolbar_get_icon_size (GtkToolbar *toolbar) @@ -3194,7 +3195,8 @@ gtk_toolbar_finalize (GObject *object) /** * gtk_toolbar_set_icon_size: * @toolbar: A #GtkToolbar - * @icon_size: The #GtkIconSize that stock icons in the toolbar shall have. + * @icon_size: (type int): The #GtkIconSize that stock icons in the + * toolbar shall have. * * This function sets the size of stock icons in the toolbar. You * can call it both before you add the icons and after they've been |