changeset 242:bd7478109727

in jisko, fall back to default icon when custom icon is not available.
author Yoshiki Yazawa <yaz@honeyplanet.jp>
date Wed, 08 Oct 2008 19:48:13 +0900
parents 1a4d37f15e9c
children 80be57d8b6fa
files pidgin-twitter.c pidgin-twitter.h
diffstat 2 files changed, 10 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/pidgin-twitter.c	Tue Oct 07 16:57:26 2008 +0900
+++ b/pidgin-twitter.c	Wed Oct 08 19:48:13 2008 +0900
@@ -2013,6 +2013,10 @@
             twitter_debug("fall back to twitter default icon\n");
             url = g_strdup(TWITTER_DEFAULT_ICON_URL);
         }
+        else if(service == jisko_service) {
+            twitter_debug("fall back to jisko default icon\n");
+            url = g_strdup(JISKO_DEFAULT_ICON_URL);
+        }
         else {
             twitter_debug("no image url found\n");
             if(data) {
--- a/pidgin-twitter.h	Tue Oct 07 16:57:26 2008 +0900
+++ b/pidgin-twitter.h	Wed Oct 08 19:48:13 2008 +0900
@@ -182,13 +182,16 @@
 #define TWITTER_DEFAULT_INTERVAL (60)
 #define TWITTER_DEFAULT_ICON_URL "http://static.twitter.com/images/default_profile_bigger.png"
 
-/* size of substitution buffer */
-#define SUBST_BUF_SIZE (32 * 1024)
-
 /* wassr specific macros */
 #define WASSR_POST_LEN (255)
 #define IDENTICA_POST_LEN (140)
 
+/* jisko specific macro */
+#define JISKO_DEFAULT_ICON_URL "http://jisko.net/static/img/avatar/default_note.png"
+
+/* size of substitution buffer */
+#define SUBST_BUF_SIZE (32 * 1024)
+
 /* misc macros */
 #define DEFAULT_ICON_SIZE (48)
 #define DEFAULT_ICON_MAX_COUNT (50)