diff options
author | Will Thompson <will.thompson@collabora.co.uk> | 2012-06-26 17:08:51 +0800 |
---|---|---|
committer | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2012-06-26 18:59:20 +0800 |
commit | e4f305a86101b8f03a561a2ae4057a1eed386685 (patch) | |
tree | 19ed6e54ed72627b814dadac75d6332854141f59 | |
parent | e321ce903efb091607161093ec490a8e22129059 (diff) | |
download | gsoc2013-empathy-e4f305a86101b8f03a561a2ae4057a1eed386685.tar gsoc2013-empathy-e4f305a86101b8f03a561a2ae4057a1eed386685.tar.gz gsoc2013-empathy-e4f305a86101b8f03a561a2ae4057a1eed386685.tar.bz2 gsoc2013-empathy-e4f305a86101b8f03a561a2ae4057a1eed386685.tar.lz gsoc2013-empathy-e4f305a86101b8f03a561a2ae4057a1eed386685.tar.xz gsoc2013-empathy-e4f305a86101b8f03a561a2ae4057a1eed386685.tar.zst gsoc2013-empathy-e4f305a86101b8f03a561a2ae4057a1eed386685.zip |
Strip %senderPrefix% in Adium themes
%senderPrefix% is not documented on
<http://trac.adium.im/wiki/CreatingMessageStyles> but it's used in
minimal_mod, the theme I use, in the tooltips for each speaker's name.
Based on <http://hg.adium.im/adium/rev/b586b027de42>, it's supposed to
be the IRC mode character (@, +, whatever). We don't have that
information, so just get rid of it.
https://bugzilla.gnome.org/show_bug.cgi?id=678845
-rw-r--r-- | libempathy-gtk/empathy-theme-adium.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libempathy-gtk/empathy-theme-adium.c b/libempathy-gtk/empathy-theme-adium.c index 98df46b79..b77d1cf8b 100644 --- a/libempathy-gtk/empathy-theme-adium.c +++ b/libempathy-gtk/empathy-theme-adium.c @@ -600,6 +600,12 @@ theme_adium_append_html (EmpathyThemeAdium *theme, * local alias instead. */ replace = name; + } else if (theme_adium_match (&cur, "%senderPrefix%")) { + /* FIXME: If we supported IRC user mode flags, this + * would be replaced with @ if the user is an op, + if + * the user has voice, etc. as per + * http://hg.adium.im/adium/rev/b586b027de42. But we + * don't, so for now we just strip it. */ } else if (theme_adium_match_with_format (&cur, "%textbackgroundcolor{", &format)) { /* FIXME: This keyword is used to represent the * highlight background color. "X" is the opacity of the |