[Xfce4-commits] <xfce4-panel:devel> Add debugging code to application.
Nick Schermer
noreply at xfce.org
Mon Feb 1 17:02:01 CET 2010
Updating branch refs/heads/devel
to 70834c1e10adb0c54160011f0d46b6db276c51ab (commit)
from a898750ba4dcaf2879e05c0dc449bbb98f86f6f1 (commit)
commit 70834c1e10adb0c54160011f0d46b6db276c51ab
Author: Nick Schermer <nick at xfce.org>
Date: Mon Feb 1 16:39:05 2010 +0100
Add debugging code to application.
common/panel-debug.h | 1 +
panel/panel-application.c | 8 ++++++++
2 files changed, 9 insertions(+), 0 deletions(-)
diff --git a/common/panel-debug.h b/common/panel-debug.h
index 084b0d4..8dc7955 100644
--- a/common/panel-debug.h
+++ b/common/panel-debug.h
@@ -21,6 +21,7 @@
#define PANEL_DEBUG_DOMAIN_POSITIONING "positioning"
#define PANEL_DEBUG_DOMAIN_STRUTS "struts"
+#define PANEL_DEBUG_DOMAIN_APPLICATION "application"
#define PANEL_DEBUG_BOOL(bool) ((bool) ? "true" : "false")
diff --git a/panel/panel-application.c b/panel/panel-application.c
index 4ac0236..4112311 100644
--- a/panel/panel-application.c
+++ b/panel/panel-application.c
@@ -32,6 +32,7 @@
#include <common/panel-private.h>
#include <common/panel-xfconf.h>
+#include <common/panel-debug.h>
#include <libxfce4panel/libxfce4panel.h>
#include <libxfce4panel/xfce-panel-plugin-provider.h>
@@ -240,6 +241,9 @@ panel_application_finalize (GObject *object)
g_object_unref (G_OBJECT (application->factory));
+ /* this is a good reference if all the objects are released */
+ panel_debug (PANEL_DEBUG_DOMAIN_APPLICATION, "finalized");
+
(*G_OBJECT_CLASS (panel_application_parent_class)->finalize) (object);
}
@@ -1046,6 +1050,10 @@ panel_application_save (PanelApplication *application,
if (panel_window_get_locked (li->data))
continue;
+ panel_debug (PANEL_DEBUG_DOMAIN_APPLICATION,
+ "saving /panels/panel-%u, save-plugins=%s",
+ i, PANEL_DEBUG_BOOL (save_plugin_providers));
+
/* get the itembar children */
itembar = gtk_bin_get_child (GTK_BIN (li->data));
children = gtk_container_get_children (GTK_CONTAINER (itembar));
More information about the Xfce4-commits
mailing list