[Pidgin Plugins] #474: dewysiwyg
Pidgin Plugins
plugins-trac at guifications.org
Tue Feb 19 23:21:11 CST 2008
#474: dewysiwyg
----------------------------+-----------------------------------------------
Reporter: dave1g | Type: Bugs
Status: new | Component: PluginPackWin32
Version: PluginPack2.2.0 | Severity: minor
Pending: 0 |
----------------------------+-----------------------------------------------
the dewysiwyg plugin doesnt work for links (its main use to me) because
the signal it connects to ("sending-im-msg") doesn't get emitted until
after purple_markup_linkify() is called on the message which linkifies the
url in the {{{<a href="url">}}}
from conversation.c:
{{{
...
displayed = g_strdup(message);
else
displayed = purple_markup_linkify(message);
}
if (displayed && (conv->features & PURPLE_CONNECTION_HTML) &&
!(msgflags & PURPLE_MESSAGE_RAW)) {
sent = g_strdup(displayed);
} else
sent = g_strdup(message);
msgflags |= PURPLE_MESSAGE_SEND;
if (type == PURPLE_CONV_TYPE_IM) {
PurpleConvIm *im = PURPLE_CONV_IM(conv);
purple_signal_emit(purple_conversations_get_handle(),
"sending-im-msg",
account,
purple_conversation_get_name(conv), &sent);
...
}}}
this creates a string on the send side like {{{<a href="<a
href='url'>url</a>">description</a>}}} and on the receive
side that looks like {{{<a href='url'>url</a>">description}}}
referencing : [http://developer.pidgin.im/ticket/4870]
--
Ticket URL: <http://plugins.guifications.org/trac/ticket/474>
Pidgin Plugins <http://pidgin.guifications.org/>
Plugins for the Instant Messaging client Pidgin and its backend library libpurple
More information about the Plugins-tickets
mailing list