diff options
author | Benjamin Otte <otte@redhat.com> | 2017-01-22 22:58:45 +0100 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2017-11-15 14:22:17 -0500 |
commit | 049cc6aa013601c4e662c38df408f8956b155f0a (patch) | |
tree | 4f8359363a1b005790b6d8cbc7d7f590fa859ee7 /gtk/gtkshortcutsshortcut.c | |
parent | f53b72e5ffc034f003801b9d4ee64328180bc297 (diff) | |
download | gtk+-049cc6aa013601c4e662c38df408f8956b155f0a.tar.gz |
image: Change getters
Instead of returning the icon size with them, make
gtk_image_get_icon_name() and gtk_image_get_gicon() only return the icon
itself.
As a benefit, we can turn them into regular getters that return values
instead of requiring out parameters.
Instead, provide gtk_image_get_icon_size() to query the icon size.
Diffstat (limited to 'gtk/gtkshortcutsshortcut.c')
-rw-r--r-- | gtk/gtkshortcutsshortcut.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/gtk/gtkshortcutsshortcut.c b/gtk/gtkshortcutsshortcut.c index be280e9fff..2dcb96b5aa 100644 --- a/gtk/gtkshortcutsshortcut.c +++ b/gtk/gtkshortcutsshortcut.c @@ -369,12 +369,7 @@ gtk_shortcuts_shortcut_get_property (GObject *object, break; case PROP_ICON: - { - GIcon *icon; - - gtk_image_get_gicon (self->image, &icon, NULL); - g_value_set_object (value, icon); - } + g_value_set_object (value, gtk_image_get_gicon (self->image)); break; case PROP_ICON_SET: |