comparison console/gntblist.c @ 14396:9e9699792bb9

[gaim-migrate @ 17104] Add option in gntgf to set the URGENT hint for the terminal's window (in X). Unescape the status-string in the statusbox. committer: Tailor Script <tailor@pidgin.im>
author Sadrul Habib Chowdhury <imadil@gmail.com>
date Fri, 01 Sep 2006 02:07:23 +0000
parents 81932c1ec6cf
children 28baa42b5ac2
comparison
equal deleted inserted replaced
14395:d72cbd259357 14396:9e9699792bb9
125 This will at least emit a warning to the log when it 125 This will at least emit a warning to the log when it
126 happens, so maybe someone will figure it out. */ 126 happens, so maybe someone will figure it out. */
127 g_return_if_fail(node != NULL); 127 g_return_if_fail(node != NULL);
128 128
129 if (list->ui_data == NULL) 129 if (list->ui_data == NULL)
130 return; 130 return; /* XXX: this is probably the place to auto-join chats */
131 131
132 if (node->ui_data != NULL) { 132 if (node->ui_data != NULL) {
133 gnt_tree_change_text(GNT_TREE(ggblist->tree), node, 133 gnt_tree_change_text(GNT_TREE(ggblist->tree), node,
134 0, get_display_name(node)); 134 0, get_display_name(node));
135 } 135 }
1415 for (; list; list = list->next) 1415 for (; list; list = list->next)
1416 { 1416 {
1417 StatusBoxItem *item = list->data; 1417 StatusBoxItem *item = list->data;
1418 if (item->type == STATUS_PRIMITIVE && item->u.prim == prim) 1418 if (item->type == STATUS_PRIMITIVE && item->u.prim == prim)
1419 { 1419 {
1420 char *mess = gaim_unescape_html(message);
1420 gnt_combo_box_set_selected(GNT_COMBO_BOX(ggblist->status), item); 1421 gnt_combo_box_set_selected(GNT_COMBO_BOX(ggblist->status), item);
1421 gnt_entry_set_text(GNT_ENTRY(ggblist->statustext), message); 1422 gnt_entry_set_text(GNT_ENTRY(ggblist->statustext), mess);
1422 gnt_widget_draw(ggblist->status); 1423 gnt_widget_draw(ggblist->status);
1424 g_free(mess);
1423 break; 1425 break;
1424 } 1426 }
1425 } 1427 }
1426 1428
1427 g_signal_handlers_unblock_matched(ggblist->status, G_SIGNAL_MATCH_FUNC, 1429 g_signal_handlers_unblock_matched(ggblist->status, G_SIGNAL_MATCH_FUNC,