st/icon: Use existing method for getting gicon property

We have an existing method for this, let's use it instead of accessing
the private property here.

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/888
This commit is contained in:
Jonas Dreßler 2019-11-21 17:19:27 +07:00 committed by Florian Müllner
parent c0fcf2d3a8
commit 9b673dc98b

View File

@ -115,7 +115,7 @@ st_icon_get_property (GObject *gobject,
switch (prop_id)
{
case PROP_GICON:
g_value_set_object (value, icon->priv->gicon);
g_value_set_object (value, st_icon_get_gicon (icon));
break;
case PROP_ICON_NAME: