Mercurial > pidgin
comparison src/gtkblist.c @ 9949:ced29c7b396c
[gaim-migrate @ 10845]
(00:25:10) LSchiere: datallah: commit message?
(00:25:40) datallah: LSchiere: nah.. nothing comes to me
datallah undertook the heroic effort of merging in all the .rejs and fixing
things up from the unclean merge of the status rewrite
committer: Tailor Script <tailor@pidgin.im>
author | Luke Schierer <lschiere@pidgin.im> |
---|---|
date | Sat, 04 Sep 2004 04:27:05 +0000 |
parents | e4a27c9aec4c |
children | a9fb4493ae22 |
comparison
equal
deleted
inserted
replaced
9948:b13013595c08 | 9949:ced29c7b396c |
---|---|
100 | 100 |
101 GList *entries; | 101 GList *entries; |
102 } GaimGtkJoinChatData; | 102 } GaimGtkJoinChatData; |
103 | 103 |
104 | 104 |
105 static GtkWidget *protomenu = NULL, *pluginmenu = NULL; | 105 static GtkWidget *protomenu = NULL; |
106 static GtkWidget *awaymenu = NULL; | |
107 static GtkWidget *pluginmenu = NULL; | |
106 | 108 |
107 GSList *gaim_gtk_blist_sort_methods = NULL; | 109 GSList *gaim_gtk_blist_sort_methods = NULL; |
108 static struct gaim_gtk_blist_sort_method *current_sort_method = NULL; | 110 static struct gaim_gtk_blist_sort_method *current_sort_method = NULL; |
109 static GtkTreeIter sort_method_none(GaimBlistNode *node, GaimBuddyList *blist, GtkTreeIter groupiter, GtkTreeIter *cur); | 111 static GtkTreeIter sort_method_none(GaimBlistNode *node, GaimBuddyList *blist, GtkTreeIter groupiter, GtkTreeIter *cur); |
110 | 112 |
2512 g_free(statustext); | 2514 g_free(statustext); |
2513 statustext = new; | 2515 statustext = new; |
2514 } | 2516 } |
2515 } | 2517 } |
2516 | 2518 |
2519 presence = gaim_buddy_get_presence(b); | |
2520 | |
2521 idle = gaim_presence_is_idle(presence); | |
2522 idle_secs = gaim_presence_get_idle_time(presence); | |
2523 warning_level = gaim_presence_get_warning_level(presence); | |
2524 | |
2517 if (!statustext && !GAIM_BUDDY_IS_ONLINE(b)) | 2525 if (!statustext && !GAIM_BUDDY_IS_ONLINE(b)) |
2518 statustext = g_strdup(_("\n<b>Status:</b> Offline")); | 2526 statustext = g_strdup(_("\n<b>Status:</b> Offline")); |
2519 | 2527 |
2520 if (b->signon > 0) | 2528 if (b->signon > 0) |
2521 loggedin = gaim_str_seconds_to_string(time(NULL) - b->signon); | 2529 loggedin = gaim_str_seconds_to_string(time(NULL) - b->signon); |
2522 | 2530 |
2523 if (b->idle > 0) | 2531 if (idle && idle_secs > 0) |
2524 idletime = gaim_str_seconds_to_string(time(NULL) - b->idle); | 2532 idletime = gaim_str_seconds_to_string(time(NULL) - idle_secs); |
2525 | 2533 |
2526 if(b->alias && b->alias[0]) | 2534 if(b->alias && b->alias[0]) |
2527 aliastext = g_markup_escape_text(b->alias, -1); | 2535 aliastext = g_markup_escape_text(b->alias, -1); |
2528 | 2536 |
2529 if(b->server_alias) | 2537 if(b->server_alias) |
2549 accounttext ? _("\n<b>Account:</b>") : "", accounttext ? accounttext : "", | 2557 accounttext ? _("\n<b>Account:</b>") : "", accounttext ? accounttext : "", |
2550 contactaliastext ? _("\n<b>Contact Alias:</b>") : "", contactaliastext ? contactaliastext : "", | 2558 contactaliastext ? _("\n<b>Contact Alias:</b>") : "", contactaliastext ? contactaliastext : "", |
2551 aliastext ? _("\n<b>Alias:</b>") : "", aliastext ? aliastext : "", | 2559 aliastext ? _("\n<b>Alias:</b>") : "", aliastext ? aliastext : "", |
2552 nicktext ? _("\n<b>Nickname:</b>") : "", nicktext ? nicktext : "", | 2560 nicktext ? _("\n<b>Nickname:</b>") : "", nicktext ? nicktext : "", |
2553 loggedin ? _("\n<b>Logged In:</b>") : "", loggedin ? loggedin : "", | 2561 loggedin ? _("\n<b>Logged In:</b>") : "", loggedin ? loggedin : "", |
2554 idletime ? _("\n<b>Idle:</b>") : "", idletime ? idletime : "", | 2562 idle ? (idle_secs > 0 ? _("\n<b>Idle:</b>") : _("\n<b>Idle</b>")) : "", |
2555 b->evil ? _("\n<b>Warned:</b>") : "", b->evil ? warning : "", | 2563 idletime ? idletime : "", |
2564 warning_level ? _("\n<b>Warned:</b>") : "", warning_level ? warning : "", | |
2556 statustext ? statustext : "", | 2565 statustext ? statustext : "", |
2557 !g_ascii_strcasecmp(b->name, "robflynn") ? _("\n<b>Description:</b> Spooky") : | 2566 !g_ascii_strcasecmp(b->name, "robflynn") ? _("\n<b>Description:</b> Spooky") : |
2558 !g_ascii_strcasecmp(b->name, "seanegn") ? _("\n<b>Status</b>: Awesome") : | 2567 !g_ascii_strcasecmp(b->name, "seanegn") ? _("\n<b>Status</b>: Awesome") : |
2559 !g_ascii_strcasecmp(b->name, "chipx86") ? _("\n<b>Status</b>: Rockin'") : ""); | 2568 !g_ascii_strcasecmp(b->name, "chipx86") ? _("\n<b>Status</b>: Rockin'") : ""); |
2560 | 2569 |