src/gtkblist.c

changeset 10992
ccf59743dae4
parent 10968
7f5963c40b21
child 11016
9990e360ee9c
equal deleted inserted replaced
10991:ad4c153f004f 10992:ccf59743dae4
2758 g_free(tmp); 2758 g_free(tmp);
2759 } 2759 }
2760 2760
2761 /* Logged In */ 2761 /* Logged In */
2762 signon = gaim_presence_get_login_time(presence); 2762 signon = gaim_presence_get_login_time(presence);
2763 if (signon > 0) 2763 if (GAIM_BUDDY_IS_ONLINE(b) && signon > 0)
2764 { 2764 {
2765 tmp = gaim_str_seconds_to_string(time(NULL) - signon); 2765 tmp = gaim_str_seconds_to_string(time(NULL) - signon);
2766 g_string_append_printf(str, _("\n<b>Logged In:</b> %s"), tmp); 2766 g_string_append_printf(str, _("\n<b>Logged In:</b> %s"), tmp);
2767 g_free(tmp); 2767 g_free(tmp);
2768 } 2768 }
2804 2804
2805 /* Offline? */ 2805 /* Offline? */
2806 if (!GAIM_BUDDY_IS_ONLINE(b)) { 2806 if (!GAIM_BUDDY_IS_ONLINE(b)) {
2807 g_string_append_printf(str, _("\n<b>Status:</b> Offline")); 2807 g_string_append_printf(str, _("\n<b>Status:</b> Offline"));
2808 } 2808 }
2809 else if (prpl_info && prpl_info->tooltip_text) 2809
2810 if (prpl_info && prpl_info->tooltip_text)
2810 { 2811 {
2811 /* Additional text from the PRPL */ 2812 /* Additional text from the PRPL */
2812 const char *end; 2813 const char *end;
2813 tmp = prpl_info->tooltip_text(b); 2814 tmp = prpl_info->tooltip_text(b);
2814 2815

mercurial