Commit ae39604a authored by Martin Nordholts's avatar Martin Nordholts

app: Add more dialog-factory debug output

parent 94d95e4d
......@@ -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);
}
}
......
......@@ -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);
}
}
}
......
......@@ -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);
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment