Hi,
Thanks, that fixed it
Amey
On Sun, Apr 19, 2009 at 2:15 PM, Gustavo Sverzut Barbieri
<barbi...@profusion.mobi> wrote:
> On Sun, Apr 19, 2009 at 3:32 AM, Amey Parulekar <amey....@gmail.com>
> wrote:
> > Hi,
> >
> > This patch uses the new "edje_object_part_text_unescaped_set" function to
> > escape special characters from notification popup body. Also fixes ticket
> > #277.
>
> no pathc, make sure your firefox recognizes .diff and .patch as
> text/something, otherwise mail list will strip attachments.
>
> add to /etc/mime.types:
>
> text/x-diff diff patch
>
>
> --
> Gustavo Sverzut Barbieri
> http://profusion.mobi embedded systems
> --------------------------------------
> MSN: barbi...@gmail.com
> Skype: gsbarbieri
> Mobile: +55 (19) 9225-2202
>
Index: trunk/E-MODULES-EXTRA/notification/src/e_mod_popup.c
===================================================================
--- trunk/E-MODULES-EXTRA/notification/src/e_mod_popup.c (revision 40129)
+++ trunk/E-MODULES-EXTRA/notification/src/e_mod_popup.c (working copy)
@@ -382,19 +382,20 @@
char *dest;
int len = 6;
int size = 512;
-
edje_object_part_text_set(popup->theme, "notification.text.title",
e_notification_summary_get(n));
msg = calloc(1, 512);
+ orig = e_notification_body_get(n);
+ edje_object_part_text_unescaped_set(popup->theme, "notification.textblock.message", orig);
snprintf(msg, 511, "<body>");
- for (orig = e_notification_body_get(n), dest = msg + strlen(msg); orig && *orig; orig++)
+ for (dest = msg + strlen(msg); orig && *orig; orig++)
{
if (len >= size - 4)
{
size = len + 512;
msg = realloc(msg, size);
- msg = memset(msg + len, 0, size - len);
+ //msg = memset(msg + len, 0, size - len);
dest = msg + len;
}
------------------------------------------------------------------------------
Stay on top of everything new and different, both inside and
around Java (TM) technology - register by April 22, and save
$200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
300 plus technical and hands-on sessions. Register today.
Use priority code J9JMT32. http://p.sf.net/sfu/p
_______________________________________________
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel