[Xfce4-commits] <xfce4-panel:devel> Add some debugging to external46.

Nick Schermer noreply at xfce.org
Mon Feb 1 17:02:03 CET 2010


Updating branch refs/heads/devel
         to c6c5493d5fc466dc1936aed71842cc090a8b5407 (commit)
       from 086959b70a5f129a5b878293689c80d86a485fcf (commit)

commit c6c5493d5fc466dc1936aed71842cc090a8b5407
Author: Nick Schermer <nick at xfce.org>
Date:   Mon Feb 1 16:59:09 2010 +0100

    Add some debugging to external46.

 common/panel-debug.h             |    1 +
 panel/panel-plugin-external-46.c |   10 ++++++++--
 2 files changed, 9 insertions(+), 2 deletions(-)

diff --git a/common/panel-debug.h b/common/panel-debug.h
index 32b7e00..dc7fc61 100644
--- a/common/panel-debug.h
+++ b/common/panel-debug.h
@@ -23,6 +23,7 @@
 #define PANEL_DEBUG_DOMAIN_STRUTS      "struts"
 #define PANEL_DEBUG_DOMAIN_APPLICATION "application"
 #define PANEL_DEBUG_DOMAIN_EXTERNAL    "external"
+#define PANEL_DEBUG_DOMAIN_EXTERNAL46  "external46"
 
 #define PANEL_DEBUG_BOOL(bool) ((bool) ? "true" : "false")
 
diff --git a/panel/panel-plugin-external-46.c b/panel/panel-plugin-external-46.c
index ab06f9d..55a10d2 100644
--- a/panel/panel-plugin-external-46.c
+++ b/panel/panel-plugin-external-46.c
@@ -36,6 +36,7 @@
 #include <libxfce4util/libxfce4util.h>
 
 #include <common/panel-private.h>
+#include <common/panel-debug.h>
 
 #include <libxfce4panel/libxfce4panel.h>
 #include <libxfce4panel/xfce-panel-plugin-provider.h>
@@ -361,8 +362,8 @@ panel_plugin_external_46_realize (GtkWidget *widget)
   argv = g_new0 (gchar *, argc + 1);
   argv[PLUGIN_ARGV_0] = (gchar *) panel_module_get_filename (external->module);
   argv[PLUGIN_ARGV_FILENAME] = (gchar *) ""; /* unused, for wrapper only */
-  argv[PLUGIN_ARGV_UNIQUE_ID] = (gchar *) unique_id;
-  argv[PLUGIN_ARGV_SOCKET_ID] = (gchar *) socket_id;
+  argv[PLUGIN_ARGV_UNIQUE_ID] = unique_id;
+  argv[PLUGIN_ARGV_SOCKET_ID] = socket_id;
   argv[PLUGIN_ARGV_NAME] = (gchar *) panel_module_get_name (external->module);
   argv[PLUGIN_ARGV_DISPLAY_NAME] = (gchar *) panel_module_get_display_name (external->module);
   argv[PLUGIN_ARGV_COMMENT] = (gchar *) panel_module_get_comment (external->module);
@@ -378,6 +379,11 @@ panel_plugin_external_46_realize (GtkWidget *widget)
                                  G_SPAWN_DO_NOT_REAP_CHILD, NULL,
                                  NULL, &pid, &error);
 
+  panel_debug (PANEL_DEBUG_DOMAIN_EXTERNAL46,
+               "plugin=%s, unique-id=%s. socked-id=%s, argc=%d, pid=%d",
+               argv[PLUGIN_ARGV_0], unique_id,
+               socket_id, argc, pid);
+
   if (G_LIKELY (succeed))
     {
       /* watch the child */



More information about the Xfce4-commits mailing list