Add method to return theme version

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28883 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-MacDonald 2009-10-26 09:48:08 +00:00
parent 903ace2b7e
commit f43122287f
2 changed files with 9 additions and 0 deletions

View file

@ -509,6 +509,11 @@ APPKIT_EXPORT NSString *GSThemeWillDeactivateNotification;
- (GSDrawTiles*) tilesNamed: (NSString*)aName
state: (GSThemeControlState)elementState
cache: (BOOL)useCache;
/**
* Return the theme's version string.
*/
- (NSString*) versionString;
@end
/**

View file

@ -953,6 +953,10 @@ typedef struct {
return tiles;
}
- (NSString*) versionString
{
return [[self infoDictionary] objectForKey: @"GSThemeVersion"];
}
@end
@implementation GSTheme (Private)