[gnome-shell] st/icon: Use existing method for getting gicon property



commit 9b673dc98bad10137e91b08bf83f5ff9e409feb6
Author: Jonas Dreßler <verdre v0yd nl>
Date:   Thu Nov 21 17:19:27 2019 +0700

    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

 src/st/st-icon.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/st/st-icon.c b/src/st/st-icon.c
index 0f9aa43d22..4a92e9e5c4 100644
--- a/src/st/st-icon.c
+++ b/src/st/st-icon.c
@@ -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:


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]