[Xfce4-commits] <thunar:master> Make plugin warning non-fatal (bug #2604).

Nick Schermer noreply at xfce.org
Sun Sep 30 13:02:01 CEST 2012


Updating branch refs/heads/master
         to 8b33ac5035afba919d656c7dc18b336a260a606d (commit)
       from a05cae53be734fcb9c7ec7fa292ab4054d8c3ac0 (commit)

commit 8b33ac5035afba919d656c7dc18b336a260a606d
Author: Nick Schermer <nick at xfce.org>
Date:   Sun Sep 30 12:59:26 2012 +0200

    Make plugin warning non-fatal (bug #2604).
    
    When compiler with low lever debugging, these warnings
    can result in an abort. Use g_printerr to avoid this,
    warnings are harmless anyway.

 thunarx/thunarx-provider-module.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/thunarx/thunarx-provider-module.c b/thunarx/thunarx-provider-module.c
index 4f96ffd..5f998fb 100644
--- a/thunarx/thunarx-provider-module.c
+++ b/thunarx/thunarx-provider-module.c
@@ -184,7 +184,7 @@ thunarx_provider_module_load (GTypeModule *type_module)
   /* check if the load operation was successfull */
   if (G_UNLIKELY (module->library == NULL))
     {
-      g_warning ("Failed to load plugin `%s': %s", type_module->name, g_module_error ());
+      g_printerr ("Thunar :Failed to load plugin `%s': %s\n", type_module->name, g_module_error ());
       return FALSE;
     }
 
@@ -193,7 +193,7 @@ thunarx_provider_module_load (GTypeModule *type_module)
       || !g_module_symbol (module->library, "thunar_extension_initialize", (gpointer) &module->initialize)
       || !g_module_symbol (module->library, "thunar_extension_list_types", (gpointer) &module->list_types))
     {
-      g_warning ("Plugin `%s' lacks required symbols.", type_module->name);
+      g_printerr ("Thunar :Plugin `%s' lacks required symbols.\n", type_module->name);
       g_module_close (module->library);
       return FALSE;
     }


More information about the Xfce4-commits mailing list