From f59617c25d74c81d385bddefd70bfee46919fff7 Mon Sep 17 00:00:00 2001 From: rfm Date: Thu, 27 Aug 2009 17:13:31 +0000 Subject: [PATCH] Add trivial debug for tracking activation git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28557 72102866-910b-0410-8b05-ffd578937521 --- Source/GSTheme.m | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Source/GSTheme.m b/Source/GSTheme.m index 0894722e4..40c24b938 100644 --- a/Source/GSTheme.m +++ b/Source/GSTheme.m @@ -264,10 +264,11 @@ typedef struct { if (theme != theTheme) { [theTheme deactivate]; + DESTROY(currentThemeName); ASSIGN (theTheme, theme); [theTheme activate]; + ASSIGN(currentThemeName, [theTheme name]); } - ASSIGN(currentThemeName, [theTheme name]); } + (GSTheme*) theme @@ -287,6 +288,7 @@ typedef struct { NSWindow *window; GSThemeControlState state; + NSDebugMLLog(@"GSTheme", @"%@ %p", [self name], self); /* Get rid of any cached colors list so that we regenerate it when needed */ [_colors release]; @@ -540,6 +542,8 @@ typedef struct { NSEnumerator *enumerator; NSImage *image; + NSDebugMLLog(@"GSTheme", @"%@ %p", [self name], self); + /* Tell everything that we will become inactive. */ [[NSNotificationCenter defaultCenter]