Mercurial > pidgin.yaz
comparison pidgin/gtkblist.c @ 23486:3baef5c88959
Couple small font fixes
author | Justin Rodriguez <ffdragon@soc.pidgin.im> |
---|---|
date | Fri, 01 Aug 2008 22:57:11 +0000 |
parents | 824e97a1dd22 |
children | 09feece6ecd5 |
comparison
equal
deleted
inserted
replaced
23485:824e97a1dd22 | 23486:3baef5c88959 |
---|---|
6151 if (!selected && theme != NULL && (pair = pidgin_blist_theme_get_idle_text_info(theme)) != NULL && pair->color != NULL) | 6151 if (!selected && theme != NULL && (pair = pidgin_blist_theme_get_idle_text_info(theme)) != NULL && pair->color != NULL) |
6152 textcolor = pair->color; | 6152 textcolor = pair->color; |
6153 else textcolor = "black"; | 6153 else textcolor = "black"; |
6154 | 6154 |
6155 idle = g_strdup_printf("<span color='%s' font_desc='%s'>%d:%02d</span>", textcolor, | 6155 idle = g_strdup_printf("<span color='%s' font_desc='%s'>%d:%02d</span>", textcolor, |
6156 (pair == NULL || pair->font == NULL) ? "" : pair->color, ihrs, imin); | 6156 (pair == NULL || pair->font == NULL) ? "" : pair->font, ihrs, imin); |
6157 } | 6157 } |
6158 } | 6158 } |
6159 | 6159 |
6160 prpl_icon = pidgin_create_prpl_icon(buddy->account, PIDGIN_PRPL_ICON_SMALL); | 6160 prpl_icon = pidgin_create_prpl_icon(buddy->account, PIDGIN_PRPL_ICON_SMALL); |
6161 | 6161 |
6243 FontColorPair *pair = pidgin_blist_theme_get_contact_text_info(theme); | 6243 FontColorPair *pair = pidgin_blist_theme_get_contact_text_info(theme); |
6244 color = pidgin_blist_theme_get_contact_color(theme); | 6244 color = pidgin_blist_theme_get_contact_color(theme); |
6245 | 6245 |
6246 if (pair != NULL) { | 6246 if (pair != NULL) { |
6247 gchar *temp = g_strdup_printf("<span foreground='%s' font_desc='%s'>%s</span>", | 6247 gchar *temp = g_strdup_printf("<span foreground='%s' font_desc='%s'>%s</span>", |
6248 (selected || pair->color == NULL || contact) ? "black" : pair->color, | 6248 (selected || pair->color == NULL) ? "black" : pair->color, |
6249 (pair->font == NULL) ? "" : pair->font, mark); | 6249 (pair->font == NULL) ? "" : pair->font, mark); |
6250 | 6250 |
6251 g_free(mark); | 6251 g_free(mark); |
6252 mark = temp; | 6252 mark = temp; |
6253 } | 6253 } |