On 9/3/09, Nathan Kinkade <[email protected]> wrote:
> On Wed, Sep 02, 2009 at 08:19:07PM +0200, Sebastian Krzyszkowiak wrote:
>>
>> Displaying wallpaper shouldn't be hard, you just have to find some way
>> to figure out path to edj file.
>>
>
> There is a small bug in the display of the GSM provider when that
> provider's name contains an ampersand.  In my case, my provider is AT&T
> and the only this displayed in the upper left corner of shr-today is
> "AT" and nothing more.  This trivial patch seems to correct the issue,
> but there could be problems with other special characters as well:
>
> --- shr-today.orig  Thu Sep  3 09:46:41 2009
> +++ shr-today   Thu Sep  3 09:47:17 2009
> @@ -183,7 +183,7 @@
>              gsmProvider = "GSM"
>          else:
>              gsmProvider = args['provider']
> -        self.gsmLabel.label_set(gsmProvider+": "+str(args['strength'])+"%")
> +        self.gsmLabel.label_set(gsmProvider.replace("&", "&amp;")+":
> "+str(args['strength'])+"%")
>
>      def IncomingCall(self, *args):
>          """Updates screen on incoming call"""
>
> shr-today is really great.  Thanks!
>
> Nathan
>

That's not correct way to do that. There is utf8_to_markup function
(which BTW should be also used when displaying incoming call). I'll
send patch for that to shr-today author.

-- 
Sebastian Krzyszkowiak
dos
_______________________________________________
Shr-User mailing list
[email protected]
http://lists.shr-project.org/mailman/listinfo/shr-user

Reply via email to