[Xfce4-commits] <parole:master> Attempt to further debug

Sean Davis noreply at xfce.org
Fri Oct 11 11:52:49 CEST 2013


Updating branch refs/heads/master
         to ac3ea42c1c8d78177c87b0ec23944cae5b4224d8 (commit)
       from e8848253c34aa8d34603e52e23efc7bca7f348af (commit)

commit ac3ea42c1c8d78177c87b0ec23944cae5b4224d8
Author: Sean Davis <smd.seandavis at gmail.com>
Date:   Sun Sep 29 11:38:21 2013 -0400

    Attempt to further debug

 src/parole-module.c |    8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/src/parole-module.c b/src/parole-module.c
index 9412c86..8a42cc2 100644
--- a/src/parole-module.c
+++ b/src/parole-module.c
@@ -101,6 +101,8 @@ parole_module_load (GTypeModule *gtype_module)
     module->provider_type = (*module->initialize) (module);
     module->active = TRUE;
     
+    TRACE ("Finished loading module %s", gtype_module->name);
+    
     return TRUE;
 }
 
@@ -215,11 +217,11 @@ gboolean parole_provider_module_new_plugin (ParoleProviderModule *module)
 #endif
 
     module->instance = g_object_new (module->provider_type, NULL);
+    g_return_val_if_fail (PAROLE_IS_PROVIDER_PLUGIN (PAROLE_PROVIDER_PLUGIN (module->instance)), FALSE);
+
     module->player = parole_plugin_player_new ();
-    
-    if (!PAROLE_IS_PROVIDER_PLUGIN (PAROLE_PROVIDER_PLUGIN (module->instance)))
-        return FALSE;
     parole_provider_plugin_set_player (PAROLE_PROVIDER_PLUGIN (module->instance), PAROLE_PROVIDER_PLAYER (module->player));
+    
     return TRUE;
 }
 


More information about the Xfce4-commits mailing list