| 4146 if (purple_presence_is_idle(presence)) { |
4146 if (purple_presence_is_idle(presence)) { |
| 4147 namefont = statusfont = pidgin_blist_theme_get_idle_text_info(theme); |
4147 namefont = statusfont = pidgin_blist_theme_get_idle_text_info(theme); |
| 4148 name_color = "dim grey"; |
4148 name_color = "dim grey"; |
| 4149 } else if (!purple_presence_is_online(presence)) { |
4149 } else if (!purple_presence_is_online(presence)) { |
| 4150 namefont = pidgin_blist_theme_get_offline_text_info(theme); |
4150 namefont = pidgin_blist_theme_get_offline_text_info(theme); |
| |
4151 name_color = "dim grey"; |
| 4151 statusfont = pidgin_blist_theme_get_status_text_info(theme); |
4152 statusfont = pidgin_blist_theme_get_status_text_info(theme); |
| 4152 } else if (purple_presence_is_available(presence)) { |
4153 } else if (purple_presence_is_available(presence)) { |
| 4153 namefont = pidgin_blist_theme_get_online_text_info(theme); |
4154 namefont = pidgin_blist_theme_get_online_text_info(theme); |
| 4154 statusfont = pidgin_blist_theme_get_status_text_info(theme); |
4155 statusfont = pidgin_blist_theme_get_status_text_info(theme); |
| 4155 } else { |
4156 } else { |
| 4156 namefont = pidgin_blist_theme_get_away_text_info(theme); |
4157 namefont = pidgin_blist_theme_get_away_text_info(theme); |
| 4157 statusfont = pidgin_blist_theme_get_status_text_info(theme); |
4158 statusfont = pidgin_blist_theme_get_status_text_info(theme); |
| |
4159 } |
| |
4160 } else { |
| |
4161 if (!selected |
| |
4162 && (purple_presence_is_idle(presence) |
| |
4163 || !purple_presence_is_online(presence))) |
| |
4164 { |
| |
4165 name_color = "dim grey"; |
| 4158 } |
4166 } |
| 4159 } |
4167 } |
| 4160 |
4168 |
| 4161 name_color = theme_font_get_color_default(namefont, name_color); |
4169 name_color = theme_font_get_color_default(namefont, name_color); |
| 4162 name_font = theme_font_get_face_default(namefont, ""); |
4170 name_font = theme_font_get_face_default(namefont, ""); |
| 6403 time(&t); |
6411 time(&t); |
| 6404 |
6412 |
| 6405 ihrs = (t - idle_secs) / 3600; |
6413 ihrs = (t - idle_secs) / 3600; |
| 6406 imin = ((t - idle_secs) / 60) % 60; |
6414 imin = ((t - idle_secs) / 60) % 60; |
| 6407 |
6415 |
| 6408 if (!selected && theme != NULL && (pair = pidgin_blist_theme_get_idle_text_info(theme)) != NULL) |
6416 if (selected) |
| |
6417 textcolor = NULL; |
| |
6418 else if (theme != NULL && (pair = pidgin_blist_theme_get_idle_text_info(theme)) != NULL) |
| 6409 textcolor = pidgin_theme_font_get_color_describe(pair); |
6419 textcolor = pidgin_theme_font_get_color_describe(pair); |
| 6410 else |
6420 else |
| 6411 textcolor = NULL; |
6421 /* If no theme them default to making idle buddy names grey */ |
| |
6422 textcolor = "dim grey"; |
| 6412 |
6423 |
| 6413 if (textcolor) { |
6424 if (textcolor) { |
| 6414 idle = g_strdup_printf("<span color='%s' font_desc='%s'>%d:%02d</span>", |
6425 idle = g_strdup_printf("<span color='%s' font_desc='%s'>%d:%02d</span>", |
| 6415 textcolor, theme_font_get_face_default(pair, ""), |
6426 textcolor, theme_font_get_face_default(pair, ""), |
| 6416 ihrs, imin); |
6427 ihrs, imin); |