Mercurial > pidgin
comparison src/conversation.c @ 2857:7a6f33cd6721
[gaim-migrate @ 2870]
not that any of this matters.
committer: Tailor Script <tailor@pidgin.im>
| author | Eric Warmenhoven <eric@warmenhoven.org> |
|---|---|
| date | Sat, 08 Dec 2001 10:03:38 +0000 |
| parents | b1e300a85678 |
| children | 48123cba5a87 |
comparison
equal
deleted
inserted
replaced
| 2856:b1e300a85678 | 2857:7a6f33cd6721 |
|---|---|
| 1483 if (b) | 1483 if (b) |
| 1484 who = b->show; | 1484 who = b->show; |
| 1485 } | 1485 } |
| 1486 } | 1486 } |
| 1487 | 1487 |
| 1488 /* XXX CUI: this is really bad and should be moved somewhere else later. */ | |
| 1489 if (!c->is_chat && c->gc) { | |
| 1490 int index = g_slist_index(connections, c->gc); | |
| 1491 int sconv = strlen(c->name); | |
| 1492 int sname = strlen(who); | |
| 1493 int swhat = length == -1 ? strlen(what) : length; | |
| 1494 UI_build_broadcast(CUI_TYPE_MESSAGE, CUI_MESSAGE_RECV, | |
| 1495 sizeof(index), &index, | |
| 1496 sizeof(sconv), &sconv, | |
| 1497 sconv, c->name, | |
| 1498 sizeof(sname), &sname, | |
| 1499 sname, who, | |
| 1500 sizeof(flags), &flags, | |
| 1501 sizeof(swhat), &swhat, | |
| 1502 swhat, what, | |
| 1503 sizeof(mtime), &mtime, -1); | |
| 1504 } | |
| 1505 | |
| 1506 strftime(mdate, sizeof(mdate), "%H:%M:%S", localtime(&mtime)); | 1488 strftime(mdate, sizeof(mdate), "%H:%M:%S", localtime(&mtime)); |
| 1507 | 1489 |
| 1508 gtk_font_options = gtk_font_options ^ GTK_IMHTML_NO_COMMENTS; | 1490 gtk_font_options = gtk_font_options ^ GTK_IMHTML_NO_COMMENTS; |
| 1509 | 1491 |
| 1510 if (convo_options & OPT_CONVO_IGNORE_COLOUR) | 1492 if (convo_options & OPT_CONVO_IGNORE_COLOUR) |
| 1620 | 1602 |
| 1621 logstr = gtk_imhtml_append_text(GTK_IMHTML(c->text), what, length, gtk_font_options); | 1603 logstr = gtk_imhtml_append_text(GTK_IMHTML(c->text), what, length, gtk_font_options); |
| 1622 | 1604 |
| 1623 gtk_imhtml_append_text(GTK_IMHTML(c->text), "<BR>", -1, 0); | 1605 gtk_imhtml_append_text(GTK_IMHTML(c->text), "<BR>", -1, 0); |
| 1624 | 1606 |
| 1607 /* XXX this needs to be updated for the new length argument */ | |
| 1625 if (logging_options & OPT_LOG_STRIP_HTML) { | 1608 if (logging_options & OPT_LOG_STRIP_HTML) { |
| 1626 char *t1, *t2; | 1609 char *t1, *t2; |
| 1627 t1 = strip_html(buf); | 1610 t1 = strip_html(buf); |
| 1628 t2 = strip_html(what); | 1611 t2 = strip_html(what); |
| 1629 c->history = g_string_append(c->history, t1); | 1612 c->history = g_string_append(c->history, t1); |
| 1642 c->history = g_string_append(c->history, "<BR>\n"); | 1625 c->history = g_string_append(c->history, "<BR>\n"); |
| 1643 g_free(t1); | 1626 g_free(t1); |
| 1644 g_free(t2); | 1627 g_free(t2); |
| 1645 } | 1628 } |
| 1646 | 1629 |
| 1630 /* XXX this needs to be updated for the new length argument */ | |
| 1647 if ((logging_options & OPT_LOG_ALL) || find_log_info(c->name)) { | 1631 if ((logging_options & OPT_LOG_ALL) || find_log_info(c->name)) { |
| 1648 char *t1, *t2; | 1632 char *t1, *t2; |
| 1649 char *nm = g_malloc(256); | 1633 char *nm = g_malloc(256); |
| 1650 if (c->is_chat) | 1634 if (c->is_chat) |
| 1651 g_snprintf(nm, 256, "%s.chat", c->name); | 1635 g_snprintf(nm, 256, "%s.chat", c->name); |
| 1672 g_free(t1); | 1656 g_free(t1); |
| 1673 g_free(t2); | 1657 g_free(t2); |
| 1674 g_free(nm); | 1658 g_free(nm); |
| 1675 } | 1659 } |
| 1676 } | 1660 } |
| 1677 | |
| 1678 /* if (!GTK_WIDGET_MAPPED(c->window)) { | |
| 1679 | |
| 1680 if (dark_icon_pm == NULL) | |
| 1681 dark_icon_pm = gdk_pixmap_create_from_xpm_d(c->window->window, &dark_icon_bm, | |
| 1682 NULL, (gchar **)aimicon2_xpm); | |
| 1683 gdk_window_set_icon(c->window->window, NULL, dark_icon_pm, dark_icon_bm); | |
| 1684 } | |
| 1685 */ | |
| 1686 | 1661 |
| 1687 if ((c->is_chat && (chat_options & OPT_CHAT_POPUP)) || | 1662 if ((c->is_chat && (chat_options & OPT_CHAT_POPUP)) || |
| 1688 (!c->is_chat && (im_options & OPT_IM_POPUP))) | 1663 (!c->is_chat && (im_options & OPT_IM_POPUP))) |
| 1689 gdk_window_show(c->window->window); | 1664 gdk_window_show(c->window->window); |
| 1690 | 1665 |
