[Xfce4-commits] <xfce4-panel:master> Improve systray debugging messages.

Nick Schermer noreply at xfce.org
Sun Jan 23 12:10:02 CET 2011


Updating branch refs/heads/master
         to 09922fc9951c107d915297d3d3874d2293d9cbf4 (commit)
       from ccf4636bb379b8a0d49032fd032b3b29dd1e7528 (commit)

commit 09922fc9951c107d915297d3d3874d2293d9cbf4
Author: Nick Schermer <nick at xfce.org>
Date:   Sat Jan 22 18:01:32 2011 +0100

    Improve systray debugging messages.
    
    Add the pointer location to the icon name, so it is easier
    to spot 2 different icons with the same name.

 plugins/systray/systray-box.c    |    4 ++--
 plugins/systray/systray-socket.c |    6 +++---
 plugins/systray/systray.c        |    8 ++++----
 3 files changed, 9 insertions(+), 9 deletions(-)

diff --git a/plugins/systray/systray-box.c b/plugins/systray/systray-box.c
index bf0ebd7..7fb3c29 100644
--- a/plugins/systray/systray-box.c
+++ b/plugins/systray/systray-box.c
@@ -554,8 +554,8 @@ systray_box_size_allocate (GtkWidget     *widget,
             y += row_size * ratio + SPACING;
         }
 
-      panel_debug_filtered (PANEL_DEBUG_SYSTRAY, "allocated %s at (%d,%d;%d,%d)",
-          systray_socket_get_name (XFCE_SYSTRAY_SOCKET (child)),
+      panel_debug_filtered (PANEL_DEBUG_SYSTRAY, "allocated %s[%p] at (%d,%d;%d,%d)",
+          systray_socket_get_name (XFCE_SYSTRAY_SOCKET (child)), child,
           child_alloc.x, child_alloc.y, child_alloc.width, child_alloc.height);
 
       gtk_widget_size_allocate (child, &child_alloc);
diff --git a/plugins/systray/systray-socket.c b/plugins/systray/systray-socket.c
index 3e5e67b..cb875ea 100644
--- a/plugins/systray/systray-socket.c
+++ b/plugins/systray/systray-socket.c
@@ -156,8 +156,8 @@ systray_socket_realize (GtkWidget *widget)
   gtk_widget_set_double_buffered (widget, socket->parent_relative_bg);
 
   panel_debug_filtered (PANEL_DEBUG_SYSTRAY,
-      "socket %s (composited=%s, relative-bg=%s",
-      systray_socket_get_name (socket),
+      "socket %s[%p] (composited=%s, relative-bg=%s",
+      systray_socket_get_name (socket), socket,
       PANEL_DEBUG_BOOL (socket->is_composited),
       PANEL_DEBUG_BOOL (socket->parent_relative_bg));
 }
@@ -409,7 +409,7 @@ systray_socket_get_name_prop (SystraySocket *socket,
 
 
 const gchar *
-systray_socket_get_name  (SystraySocket *socket)
+systray_socket_get_name (SystraySocket *socket)
 {
   panel_return_val_if_fail (XFCE_IS_SYSTRAY_SOCKET (socket), NULL);
 
diff --git a/plugins/systray/systray.c b/plugins/systray/systray.c
index cc346e0..74aacec 100644
--- a/plugins/systray/systray.c
+++ b/plugins/systray/systray.c
@@ -811,8 +811,8 @@ systray_plugin_icon_added (SystrayManager *manager,
   gtk_container_add (GTK_CONTAINER (plugin->box), icon);
   gtk_widget_show (icon);
 
-  panel_debug_filtered (PANEL_DEBUG_SYSTRAY, "added %s icon",
-      systray_socket_get_name (XFCE_SYSTRAY_SOCKET (icon)));
+  panel_debug_filtered (PANEL_DEBUG_SYSTRAY, "added %s[%p] icon",
+      systray_socket_get_name (XFCE_SYSTRAY_SOCKET (icon)), icon);
 }
 
 
@@ -830,8 +830,8 @@ systray_plugin_icon_removed (SystrayManager *manager,
   /* remove the icon from the box */
   gtk_container_remove (GTK_CONTAINER (plugin->box), icon);
 
-  panel_debug_filtered (PANEL_DEBUG_SYSTRAY, "removed %s icon",
-      systray_socket_get_name (XFCE_SYSTRAY_SOCKET (icon)));
+  panel_debug_filtered (PANEL_DEBUG_SYSTRAY, "removed %s[%p] icon",
+      systray_socket_get_name (XFCE_SYSTRAY_SOCKET (icon)), icon);
 }
 
 



More information about the Xfce4-commits mailing list