I’ve got a protocol plugin that I’m porting from a Pidgin purple plugin. The 
transition was largely painless, but there’s one specific issue that I’ve been 
unable to figure out how to do with Adium: URI handling. Within chats, it’s 
possible to send links to rooms and such and in Pidgin, the plugin handles 
these links through a Pidgin-specific API like so:

gboolean gtk_imhtml_class_register_protocol(const char *name,
    gboolean (*activate)(GtkIMHtml *imhtml, GtkIMHtmlLink *link),
    gboolean (*context_menu)(GtkIMHtml *imhtml, GtkIMHtmlLink *link, GtkWidget 
*menu));

In practice, this is used as so:

gtk_imhtml_class_register_protocol(“myuri”, my_uri_handler, NULL);

This is, of course, a Pidgin-specific API and doesn’t port over to Adium. I was 
wondering if there is any way for an Xtra to do this in Adium. I’ve been poking 
around the Adium source and I’ve come across AIURLHandlerPlugin, but as far as 
I can see, this is how Adium handles it internally; I’m not seeing any clear 
way to hook into it with an Xtra. Is this possible?

Reply via email to