Mercurial > pidgin-twitter
diff pidgin-twitter.h @ 82:c9600d64781a
work in progress adaptation to wassr service. cleanups required:
- sender/recipient translation have been added.
- added work around for "parrot problem" in sending to a channel.
author | Yoshiki Yazawa <yaz@honeyplnaet.jp> |
---|---|
date | Sat, 05 Jul 2008 16:26:39 +0900 |
parents | e0bf37c105eb |
children | 0c1f63882b8a |
line wrap: on
line diff
--- a/pidgin-twitter.h Sat Jul 05 13:47:26 2008 +0900 +++ b/pidgin-twitter.h Sat Jul 05 16:26:39 2008 +0900 @@ -50,6 +50,8 @@ /* formats and templates */ #define RECIPIENT_FORMAT "@<a href='http://twitter.com/%s'>%s</a>" #define SENDER_FORMAT "%s<a href='http://twitter.com/%s'>%s</a>: " +#define RECIPIENT_FORMAT_WASSR "@<a href='http://wassr.jp/user/%s'>%s</a>" +#define SENDER_FORMAT_WASSR "%s<a href='http://wassr.jp/user/%s'>%s</a>: " #define DEFAULT_LIST "(list of users: separated with ' ,:;')" #define OOPS_MESSAGE "<body>Oops! Your update was over 140 characters. We sent the short version to your friends (they can view the entire update on the web).<BR></body>" #define EMPTY "" @@ -71,16 +73,16 @@ static void escape(gchar **str); static gboolean sending_im_cb(PurpleAccount *account, char *recipient, char **buffer, void *data); static gboolean eval(const GMatchInfo *match_info, GString *result, gpointer user_data); -static void translate(gchar **str, int which); +static void translate(gchar **str, int which, int service); static void playsound(gchar **str, int which); static gboolean writing_im_cb(PurpleAccount *account, char *sender, char **buffer, PurpleConversation *conv, int *flags, void *data); static void insert_text_cb(GtkTextBuffer *textbuffer, GtkTextIter *position, gchar *new_text, gint new_text_length, gpointer user_data); static void delete_text_cb(GtkTextBuffer *textbuffer, GtkTextIter *start_pos, GtkTextIter *end_pos, gpointer user_data); static void detach_from_window(void); -static void detach_from_gtkconv(PidginConversation *gtkconv, gpointer null); +static void detach_from_conv(PurpleConversation *conv, gpointer null); static void delete_requested_icon_marks(PidginConversation *gtkconv); static void attach_to_window(void); -static void attach_to_gtkconv(PidginConversation *gtkconv, gpointer null); +static void attach_to_conv(PurpleConversation *conv, gpointer null); static gboolean is_twitter_account(PurpleAccount *account, const char *name); static gboolean is_twitter_conv(PurpleConversation *conv); static gboolean is_wassr_account(PurpleAccount *account, const char *name);