[Adium-devl] [Adium-svn] rev 18649 - branches/adium-1.0/Plugins/Gaim Service

Juan Manuel Palacios jmpp at macports.org
Tue Jan 9 21:10:43 UTC 2007


On Jan 9, 2007, at 5:55 PM, evands at adiumx.com wrote:

> Author: evands
> Date: 2007-01-09 16:55:36 -0500 (Tue, 09 Jan 2007)
> New Revision: 18649
>
> Modified:
>    branches/adium-1.0/Plugins/Gaim Service/CBGaimAccount.m
> Log:
> Only put a musical note in front of a non-0-length iTunes status

	How hard would it be to add a musical note to statuses that use the 
%_iTunes script in their message? For instance, I have a custom away 
status that uses %_iTunes as its message and thus displays my currently 
playing song just fine (with the exception of the issue described in 
http://trac.adiumx.com/ticket/5899 ), but without the musical note as 
the built in (available) iTunes status does. It would be cool to have 
the note available elsewhere, but this is clearly nowhere near a 1.0 
blocker ;-)


-jmpp


>
> Modified: branches/adium-1.0/Plugins/Gaim Service/CBGaimAccount.m
> ===================================================================
> --- branches/adium-1.0/Plugins/Gaim Service/CBGaimAccount.m	2007-01-09 
> 21:53:08 UTC (rev 18648)
> +++ branches/adium-1.0/Plugins/Gaim Service/CBGaimAccount.m	2007-01-09 
> 21:55:36 UTC (rev 18649)
> @@ -1769,7 +1769,7 @@
>  		statusMessage = [NSAttributedString stringWithString:[[adium 
> statusController] descriptionForStateOfStatus:statusState]];
>  	}
>
> -	if (statusMessage && ([statusState specialStatusType] == 
> AINowPlayingSpecialStatusType) && [self 
> shouldAddMusicalNoteToNowPlayingStatus]) {
> +	if ([statusMessage length]	&& ([statusState specialStatusType] == 
> AINowPlayingSpecialStatusType) && [self 
> shouldAddMusicalNoteToNowPlayingStatus]) {
>  #define MUSICAL_NOTE_AND_SPACE [NSString 
> stringWithUTF8String:"\xe2\x99\xab "]
>  		NSMutableAttributedString *temporaryStatusMessage;
>  		temporaryStatusMessage = [[[NSMutableAttributedString alloc] 
> initWithString:MUSICAL_NOTE_AND_SPACE] autorelease];
>
>
> _______________________________________________
> Adium-svn mailing list
> Adium-svn at adiumx.com
> http://adiumx.com/mailman/listinfo/adium-svn_adiumx.com





More information about the devel mailing list