# HG changeset patch # User Richard Laager # Date 1137517191 0 # Node ID fe2cb084ab16e31c399d6a9f9bb41a7e638a01f2 # Parent 4f4c377a89059c99c32a5b31e2a079f6079a308c [gaim-migrate @ 15268] SF Patch #1405994 from Sadrul "This patch allows themes to define smileys with spaces in them, escaped by a \. It seems to be working for me." committer: Tailor Script diff -r 4f4c377a8905 -r fe2cb084ab16 pixmaps/smileys/default/theme --- a/pixmaps/smileys/default/theme Tue Jan 17 16:13:24 2006 +0000 +++ b/pixmaps/smileys/default/theme Tue Jan 17 16:59:51 2006 +0000 @@ -24,7 +24,7 @@ burp.png :-! embarrassed.png :-[ cry.png :'( -think.png :-/ :-\ +think.png :-/ :-\\ crossedlips.png :-X bigsmile.png :-D :-d angel.png O:-) @@ -132,7 +132,7 @@ yahoo_mean.gif :> :-> yahoo_neutral.gif :| :-| yahoo_ooooh.gif :O :-O :o :-o -yahoo_question.gif :-\ :-/ +yahoo_question.gif :-\\ :-/ yahoo_sad.gif :( :-( yahoo_shhhh.gif :-$ yahoo_sick.gif :-& @@ -155,7 +155,7 @@ yahoo_coffee.gif ~o) ~O) yahoo_cow.gif 3:-0 3:-O 3:-o yahoo_cowboy.gif <):) -yahoo_dance.gif \:D/ \:d/ +yahoo_dance.gif \\:D/ \\:d/ yahoo_flower.gif @};- yahoo_frustrated.gif :-L :-l yahoo_ghost.gif 8-X 8-x diff -r 4f4c377a8905 -r fe2cb084ab16 plugins/ChangeLog.API --- a/plugins/ChangeLog.API Tue Jan 17 16:13:24 2006 +0000 +++ b/plugins/ChangeLog.API Tue Jan 17 16:59:51 2006 +0000 @@ -92,6 +92,7 @@ * gtk_imhtml_get_current_format(): the arguments are now set to TRUE or FALSE. Previously they were set to TRUE or left alone. Also, you may now pass NULL if you're not interested in a specific formatting. + * Smiley Themes: Backslashes must be backslash-escaped. Removed: * gaim_gtk_sound_{get,set}_mute() (replaced by the /gaim/gtk/sound/mute diff -r 4f4c377a8905 -r fe2cb084ab16 src/gtkthemes.c --- a/src/gtkthemes.c Tue Jan 17 16:13:24 2006 +0000 +++ b/src/gtkthemes.c Tue Jan 17 16:59:51 2006 +0000 @@ -172,8 +172,11 @@ while (*i) { char l[64]; int li = 0; - while (!isspace(*i)) + while (!isspace(*i)) { + if (*i == '\\' && *(i+1) != '\0' ) + i++; l[li++] = *(i++); + } if (!sfile) { l[li] = 0; sfile = g_build_filename(dirname, l, NULL);