[gimp] app: Add more dialog-factory debug output
- From: Martin Nordholts <martinn src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gimp] app: Add more dialog-factory debug output
- Date: Sun, 20 Sep 2009 17:27:29 +0000 (UTC)
commit ae39604a649b85050b53334779d4453134938c3f
Author: Martin Nordholts <martinn src gnome org>
Date: Sun Sep 20 19:08:48 2009 +0200
app: Add more dialog-factory debug output
app/gui/session.c | 9 +++++++++
app/widgets/gimpdialogfactory.c | 6 ++++++
app/widgets/gimpsessioninfo.c | 9 +++++++++
3 files changed, 24 insertions(+), 0 deletions(-)
---
diff --git a/app/gui/session.c b/app/gui/session.c
index b8c72ff..ed457b5 100644
--- a/app/gui/session.c
+++ b/app/gui/session.c
@@ -50,6 +50,7 @@
#include "dialogs/dialogs.h"
#include "session.h"
+#include "gimp-log.h"
#include "gimp-intl.h"
@@ -175,11 +176,19 @@ session_init (Gimp *gimp)
{
if (! skip)
{
+ GIMP_LOG (DIALOG_FACTORY,
+ "successfully parsed and added session info %p",
+ info);
+
factory->session_infos =
g_list_append (factory->session_infos, info);
}
else
{
+ GIMP_LOG (DIALOG_FACTORY,
+ "failed to parse session info %p, not adding",
+ info);
+
g_object_unref (info);
}
}
diff --git a/app/widgets/gimpdialogfactory.c b/app/widgets/gimpdialogfactory.c
index 5b9b3cf..31e5f89 100644
--- a/app/widgets/gimpdialogfactory.c
+++ b/app/widgets/gimpdialogfactory.c
@@ -1453,6 +1453,12 @@ gimp_dialog_factories_restore_foreach (gconstpointer key,
gimp_session_info_restore (info, factory);
gimp_session_info_clear_info (info);
}
+ else
+ {
+ GIMP_LOG (DIALOG_FACTORY,
+ "skipping to restore session info %p, not open",
+ info);
+ }
}
}
diff --git a/app/widgets/gimpsessioninfo.c b/app/widgets/gimpsessioninfo.c
index 57945c0..330ddaa 100644
--- a/app/widgets/gimpsessioninfo.c
+++ b/app/widgets/gimpsessioninfo.c
@@ -36,6 +36,8 @@
#include "gimpsessioninfo-dock.h"
#include "gimpsessioninfo-private.h"
+#include "gimp-log.h"
+
enum
{
@@ -370,6 +372,10 @@ gimp_session_info_restore (GimpSessionInfo *info,
{
GtkWidget *dialog;
+ GIMP_LOG (DIALOG_FACTORY, "restoring toplevel \"%s\" (info %p)",
+ info->p->factory_entry->identifier,
+ info);
+
dialog =
gimp_dialog_factory_dialog_new (factory, screen,
info->p->factory_entry->identifier,
@@ -381,6 +387,9 @@ gimp_session_info_restore (GimpSessionInfo *info,
}
else
{
+ GIMP_LOG (DIALOG_FACTORY, "restoring dock (info %p)",
+ info);
+
gimp_session_info_dock_restore (info, factory, screen);
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]