[Xfce4-commits] [apps/xfdashboard] 03/05: Use new function _xfdashboard_image_content_load() when missing-icon property is changed instead calling a signal handler

noreply at xfce.org noreply at xfce.org
Thu Mar 16 11:09:23 CET 2017


This is an automated email from the git hooks/post-receive script.

nomad pushed a commit to branch master
in repository apps/xfdashboard.

commit 4f4750abfffc68568e3c502a30e80f94b8c5f400
Author: Stephan Haller <nomad at froevel.de>
Date:   Thu Mar 16 10:15:41 2017 +0100

    Use new function _xfdashboard_image_content_load() when missing-icon property is changed instead calling a signal handler
---
 libxfdashboard/image-content.c | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/libxfdashboard/image-content.c b/libxfdashboard/image-content.c
index 5a4ecca..375bd39 100644
--- a/libxfdashboard/image-content.c
+++ b/libxfdashboard/image-content.c
@@ -1687,12 +1687,12 @@ void xfdashboard_image_content_set_missing_icon_name(XfdashboardImageContent *se
 			/* Set state of image to "not-loaded" */
 			priv->loadState=XFDASHBOARD_IMAGE_CONTENT_LOADING_STATE_NONE;
 
-			/* Call signal handler for first-time attached image content which
-			 * will set up an empty image first and then tries to load the image.
-			 * It is likely to fail again but then it will show the new missing
-			 * icon instead of the old one.
+			/* Try to load image again. It will set up an empty image first and
+			 * then try to load the image.  It is likely that it will fail again
+			 * but then it will show the new missing icon instead of the old one.
 			 */
-			_xfdashboard_image_content_on_attached(CLUTTER_CONTENT(self), NULL, NULL);
+			g_debug("Reload failed  image with key '%s' because of changed missing-icon property", priv->key);
+			_xfdashboard_image_content_load(self);
 		}
 
 		/* Invalidate ourselve to get us redrawn */
@@ -1725,7 +1725,7 @@ void xfdashboard_image_content_force_load(XfdashboardImageContent *self)
 	 */
 	if(priv->loadState==XFDASHBOARD_IMAGE_CONTENT_LOADING_STATE_NONE)
 	{
-		g_debug("Need to enforce loading '%s'", priv->iconName);
+		g_debug("Need to enforce loading image with key '%s'", priv->key);
 		_xfdashboard_image_content_load(self);
 	}
 }

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Xfce4-commits mailing list