comparison pidgin-twitter.h @ 310:aa1f0dd1a723

use .dat extension for icons uniformly.
author Yoshiki Yazawa <yaz@honeyplanet.jp>
date Thu, 02 Jul 2009 15:54:44 +0900
parents 227e59f017f2
children 09e1995fbda1
comparison
equal deleted inserted replaced
309:e922ad73c07e 310:aa1f0dd1a723
66 typedef struct _icon_data { 66 typedef struct _icon_data {
67 GdkPixbuf *pixbuf; /* icon pixmap */ 67 GdkPixbuf *pixbuf; /* icon pixmap */
68 gboolean requested; /* TRUE if download icon has been requested */ 68 gboolean requested; /* TRUE if download icon has been requested */
69 GList *request_list; /* marker list */ 69 GList *request_list; /* marker list */
70 PurpleUtilFetchUrlData *fetch_data; /* icon fetch data */ 70 PurpleUtilFetchUrlData *fetch_data; /* icon fetch data */
71 const gchar *img_type; /* image type */
72 gchar *icon_url; /* url for the user's icon */ 71 gchar *icon_url; /* url for the user's icon */
73 gint use_count; /* usage count */ 72 gint use_count; /* usage count */
74 time_t mtime; /* mtime of file */ 73 time_t mtime; /* mtime of file */
75 } icon_data; 74 } icon_data;
76 75
187 #define P_TAG_TWITTER "(^|\\s+)#([-A-Za-z0-9_]+)" 186 #define P_TAG_TWITTER "(^|\\s+)#([-A-Za-z0-9_]+)"
188 #define P_TAG_IDENTICA "#([-A-Za-z0-9_]+)" 187 #define P_TAG_IDENTICA "#([-A-Za-z0-9_]+)"
189 #define P_GROUP_IDENTICA "!([-A-Za-z0-9_]+)" 188 #define P_GROUP_IDENTICA "!([-A-Za-z0-9_]+)"
190 #define P_IMAGE_TWITTER "<img .*=\"profile-(?:image|img)\".*src=\"(https?://.+?)\".*/>" 189 #define P_IMAGE_TWITTER "<img .*=\"profile-(?:image|img)\".*src=\"(https?://.+?)\".*/>"
191 #define P_IMAGE_WASSR "<div class=\"image\"><a href=\".+\"><img src=\"(.+)\" width=\".+?\" /></a></div>" 190 #define P_IMAGE_WASSR "<div class=\"image\"><a href=\".+\"><img src=\"(.+)\" width=\".+?\" /></a></div>"
192 #define P_IMAGE_IDENTICA "<img src=\"(https?://.+.identi.ca/.+)\" class=\"avatar profile photo\" width=\"96\" height=\"96\" alt=\"[A-Za-z0-9_]+\"/>" 191 #define P_IMAGE_IDENTICA "<img src=\"(https?://.+.identi.ca/.+)\" class=\"photo avatar\""
193 #define P_IMAGE_JISKO "<img src=\"(https?://jisko.net/users/.+/img/avatar/thumb_side\\..+)\" alt=\"Avatar\" />" 192 #define P_IMAGE_JISKO "<img src=\"(https?://jisko.net/users/.+/img/avatar/thumb_side\\..+)\" alt=\"Avatar\" />"
194 #define P_IMAGE_FFEED "<img src=\"(https?://i.friendfeed.com/.+)\" alt=\"" 193 #define P_IMAGE_FFEED "<img src=\"(https?://i.friendfeed.com/.+)\" alt=\""
195 #define P_SIZE_128_WASSR "\\.128\\." 194 #define P_SIZE_128_WASSR "\\.128\\."
196 #define P_EXCESS_LF "([\\r|\\n]{2,})" 195 #define P_EXCESS_LF "([\\r|\\n]{2,})"
197 #define P_TRAIL_HASH "( #\\s+$)" 196 #define P_TRAIL_HASH "( #\\s+$)"
215 /* wassr specific macros */ 214 /* wassr specific macros */
216 #define WASSR_POST_LEN (255) 215 #define WASSR_POST_LEN (255)
217 216
218 /* identica specific macros */ 217 /* identica specific macros */
219 #define IDENTICA_POST_LEN (140) 218 #define IDENTICA_POST_LEN (140)
220 #define IDENTICA_DEFAULT_ICON_URL "http://theme.identi.ca/identica/default-avatar-profile.png" 219 #define IDENTICA_DEFAULT_ICON_URL "http://theme.status.net/0.8.0dev/identica/default-avatar-profile.png"
221 220
222 /* jisko specific macro */ 221 /* jisko specific macro */
223 #define JISKO_DEFAULT_ICON_URL "http://jisko.net/static/img/avatar/default_note.png" 222 #define JISKO_DEFAULT_ICON_URL "http://jisko.net/static/img/avatar/default_note.png"
224 223
225 /* ffeed specific macro */ 224 /* ffeed specific macro */