[Xfce4-commits] [apps/xfdashboard] 01/01: Throw and handle warning on closing plugin module when g_module_close return FALSE.

noreply at xfce.org noreply at xfce.org
Tue Jan 5 11:16:43 CET 2016


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

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

commit f6cc50d2c66aba6f08180d08cd5efd04b68b904e
Author: Stephan Haller <nomad at froevel.de>
Date:   Tue Jan 5 11:15:41 2016 +0100

    Throw and handle warning on closing plugin module when g_module_close return FALSE.
    
    It was by mistake handled when TRUE was returned :(
---
 xfdashboard/plugin.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/xfdashboard/plugin.c b/xfdashboard/plugin.c
index 18382fe..caaf6e2 100644
--- a/xfdashboard/plugin.c
+++ b/xfdashboard/plugin.c
@@ -456,7 +456,7 @@ static void _xfdashboard_plugin_unload(GTypeModule *inModule)
 	if(priv->module)
 	{
 		/* Close module */
-		if(g_module_close(priv->module))
+		if(!g_module_close(priv->module))
 		{
 			g_warning(_("Plugin '%s' could not be unloaded successfully: %s"),
 						priv->id ? priv->id : _("Unknown"),

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


More information about the Xfce4-commits mailing list