[Xfce4-commits] [apps/xfdashboard] 03/03: Do not create application button for desktop file not found.

noreply at xfce.org noreply at xfce.org
Fri May 18 11:17:15 CEST 2018


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

n   o   m   a   d       p   u   s   h   e   d       a       c   o   m   m   i   t       t   o       b   r   a   n   c   h       m   a   s   t   e   r   
   in repository apps/xfdashboard.

commit 032ac3a37fefaa3b95ecf624996bf6048a02cd65
Author: Stephan Haller <nomad at froevel.de>
Date:   Fri May 18 11:16:50 2018 +0200

    Do not create application button for desktop file not found.
---
 libxfdashboard/quicklaunch.c | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/libxfdashboard/quicklaunch.c b/libxfdashboard/quicklaunch.c
index e5b3bd0..0804358 100644
--- a/libxfdashboard/quicklaunch.c
+++ b/libxfdashboard/quicklaunch.c
@@ -1540,7 +1540,7 @@ static void _xfdashboard_quicklaunch_update_icons_from_property(XfdashboardQuick
 	/* Now re-add all application icons for current favourites */
 	for(i=0; i<priv->favourites->len; i++)
 	{
-		/* Create application button from desktop file and hide label in quicklaunch */
+		/* Get desktop file to create application button for in quicklaunch */
 		desktopFile=(GValue*)g_ptr_array_index(priv->favourites, i);
 
 		desktopFilename=g_value_get_string(desktopFile);
@@ -1551,6 +1551,12 @@ static void _xfdashboard_quicklaunch_update_icons_from_property(XfdashboardQuick
 				if(!appInfo) appInfo=xfdashboard_desktop_app_info_new_from_desktop_id(desktopFilename);
 			}
 
+		/* If we could not get application information for desktop file, do not
+		 * create the application button.
+		 */
+		if(!appInfo) continue;
+
+		/* Create application button from desktop file */
 		actor=_xfdashboard_quicklaunch_create_favourite_actor(self, appInfo);
 		clutter_actor_show(actor);
 		clutter_actor_insert_child_below(CLUTTER_ACTOR(self), actor, priv->separatorFavouritesToDynamic);

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


More information about the Xfce4-commits mailing list