Author: rmottola
Date: Tue Nov 24 19:26:26 2015
New Revision: 39196
URL: http://svn.gna.org/viewcvs/gnustep?rev=39196&view=rev
Log:
set appropriate tag for each collection
Modified:
apps/thematic/trunk/ChangeLog
apps/thematic/trunk/ImageElement.m
Modified: apps/thematic/trunk/ChangeLog
URL:
http://svn.gna.org/viewcvs/gnustep/apps/thematic/trunk/ChangeLog?rev=39196&r1=39195&r2=39196&view=diff
==============================================================================
--- apps/thematic/trunk/ChangeLog (original)
+++ apps/thematic/trunk/ChangeLog Tue Nov 24 19:26:26 2015
@@ -2,6 +2,9 @@
* ThemeDocument.m (applicationImageNames)
Scan for Images and su-dirs explicitely and skip over all hidden
directories, instead of one big directory enumerator.
+
+ * ImageElement.m (initWithView:)
+ Set appropriate tag for each collection.
2015-11-19 Riccardo Mottola <[email protected]>
Modified: apps/thematic/trunk/ImageElement.m
URL:
http://svn.gna.org/viewcvs/gnustep/apps/thematic/trunk/ImageElement.m?rev=39196&r1=39195&r2=39196&view=diff
==============================================================================
--- apps/thematic/trunk/ImageElement.m (original)
+++ apps/thematic/trunk/ImageElement.m Tue Nov 24 19:26:26 2015
@@ -470,6 +470,7 @@
NSDictionary *apps;
NSEnumerator *appEnum;
NSString *app;
+ NSInteger tag;
selectedTag = -2;
@@ -584,7 +585,8 @@
apps = [aDocument applicationImageNames];
appEnum = [[[apps allKeys]
- sortedArrayUsingSelector: @selector(compare:)] objectEnumerator];
+ sortedArrayUsingSelector: @selector(compare:)] objectEnumerator];
+ tag = 0;
while (nil != (app = [appEnum nextObject]))
{
NSEnumerator *imgEnum;
@@ -608,7 +610,7 @@
[texts addObject: app];
imgEnum = [[[apps objectForKey: app]
- sortedArrayUsingSelector: @selector(compare:)] objectEnumerator];
+ sortedArrayUsingSelector: @selector(compare:)] objectEnumerator];
while (nil != (img = [imgEnum nextObject]))
{
NSString *key;
@@ -623,7 +625,9 @@
[appView addObject: ii];
RELEASE(ii);
}
- [collectionMenu addItemWithTitle: app];
+ [collectionMenu addItemWithTitle:app];
+ [[collectionMenu itemWithTitle:app] setTag:tag];
+ tag++;
}
}
return self;
_______________________________________________
Gnustep-cvs mailing list
[email protected]
https://mail.gna.org/listinfo/gnustep-cvs