Mercurial > pidgin
comparison console/gntblist.c @ 13885:582aaa4e287e
[gaim-migrate @ 16365]
Add ui for conversation. It 'works', but it's broken. So don't use it just yet.
I probably will not be able to touch it in the next couple of days. So feel
free to fix the brokenness :)
committer: Tailor Script <tailor@pidgin.im>
author | Sadrul Habib Chowdhury <imadil@gmail.com> |
---|---|
date | Wed, 28 Jun 2006 05:52:23 +0000 |
parents | eac18261c6f0 |
children | a621329e8c85 |
comparison
equal
deleted
inserted
replaced
13884:eac18261c6f0 | 13885:582aaa4e287e |
---|---|
177 } | 177 } |
178 else if (GAIM_BLIST_NODE_IS_CHAT(node)) | 178 else if (GAIM_BLIST_NODE_IS_CHAT(node)) |
179 { | 179 { |
180 GaimChat *chat = (GaimChat*)node; | 180 GaimChat *chat = (GaimChat*)node; |
181 name = gaim_chat_get_name(chat); | 181 name = gaim_chat_get_name(chat); |
182 | |
183 strncpy(status, "~", sizeof(status) - 1); | |
182 } | 184 } |
183 | 185 |
184 snprintf(text, sizeof(text) - 1, "%s %s", status, name); | 186 snprintf(text, sizeof(text) - 1, "%s %s", status, name); |
185 | 187 |
186 return text; | 188 return text; |
361 gnt_widget_destroy(ggblist->tooltip); | 363 gnt_widget_destroy(ggblist->tooltip); |
362 ggblist->tooltip = NULL; | 364 ggblist->tooltip = NULL; |
363 return TRUE; | 365 return TRUE; |
364 } | 366 } |
365 } | 367 } |
368 else if (text[0] == '\r' && text[1] == '\0') | |
369 { | |
370 GntTree *tree = GNT_TREE(ggblist->tree); | |
371 GaimBlistNode *node = gnt_tree_get_selection_data(tree); | |
372 | |
373 if (GAIM_BLIST_NODE_IS_BUDDY(node)) | |
374 { | |
375 GaimBuddy *buddy = (GaimBuddy *)node; | |
376 gaim_conversation_new(GAIM_CONV_TYPE_IM, | |
377 gaim_buddy_get_account(buddy), | |
378 gaim_buddy_get_name(buddy)); | |
379 } | |
380 else if (GAIM_BLIST_NODE_IS_CHAT(node)) | |
381 { | |
382 GaimChat *chat = (GaimChat*)node; | |
383 serv_join_chat(chat->account->gc, chat->components); | |
384 } | |
385 } | |
386 | |
366 return FALSE; | 387 return FALSE; |
367 } | 388 } |
368 | 389 |
369 static void | 390 static void |
370 buddy_status_changed(GaimBuddy *buddy, GaimStatus *old, GaimStatus *now, GGBlist *ggblist) | 391 buddy_status_changed(GaimBuddy *buddy, GaimStatus *old, GaimStatus *now, GGBlist *ggblist) |