comparison src/conversation.c @ 2385:bdc74764245c

[gaim-migrate @ 2398] Sean Egan's tab-completion patch. committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Fri, 28 Sep 2001 12:15:54 +0000
parents cacaf7ace3a5
children 437ae28a1172
comparison
equal deleted inserted replaced
2384:05034cd0402b 2385:bdc74764245c
753 } 753 }
754 } 754 }
755 gtk_signal_emit_stop_by_name(GTK_OBJECT(entry), "key_press_event"); 755 gtk_signal_emit_stop_by_name(GTK_OBJECT(entry), "key_press_event");
756 } 756 }
757 } 757 }
758 } else if ((event->keyval == GDK_Tab) && c->is_chat && (chat_options & OPT_CHAT_TAB_COMPLETE)) {
759 tab_complete(c);
760 gtk_signal_emit_stop_by_name(GTK_OBJECT(entry), "key_press_event");
758 } else if (((!c->is_chat && (im_options & OPT_IM_ONE_WINDOW)) || 761 } else if (((!c->is_chat && (im_options & OPT_IM_ONE_WINDOW)) ||
759 (c->is_chat && (chat_options & OPT_CHAT_ONE_WINDOW))) && 762 (c->is_chat && (chat_options & OPT_CHAT_ONE_WINDOW))) &&
760 (event->state & GDK_MOD1_MASK) && isdigit(event->keyval) && (event->keyval > '0')) { 763 (event->state & GDK_MOD1_MASK) && isdigit(event->keyval) && (event->keyval > '0')) {
761 GtkWidget *notebook = (c->is_chat ? chat_notebook : convo_notebook); 764 GtkWidget *notebook = (c->is_chat ? chat_notebook : convo_notebook);
762 gtk_notebook_set_page(GTK_NOTEBOOK(notebook), event->keyval - '1'); 765 gtk_notebook_set_page(GTK_NOTEBOOK(notebook), event->keyval - '1');
1394 } else { 1397 } else {
1395 c->history = g_string_append(c->history, buf); 1398 c->history = g_string_append(c->history, buf);
1396 c->history = g_string_append(c->history, "<BR>\n"); 1399 c->history = g_string_append(c->history, "<BR>\n");
1397 } 1400 }
1398 1401
1399 if ((logging_options & OPT_LOG_ALL) || find_log_info(c->name)) { 1402 if (!(flags & WFLAG_NOLOG) && ((logging_options & OPT_LOG_ALL) || find_log_info(c->name))) {
1400 char *t1; 1403 char *t1;
1401 char nm[256]; 1404 char nm[256];
1402 1405
1403 if (logging_options & OPT_LOG_STRIP_HTML) { 1406 if (logging_options & OPT_LOG_STRIP_HTML) {
1404 t1 = strip_html(buf); 1407 t1 = strip_html(buf);
1420 } 1423 }
1421 if (logging_options & OPT_LOG_STRIP_HTML) { 1424 if (logging_options & OPT_LOG_STRIP_HTML) {
1422 g_free(t1); 1425 g_free(t1);
1423 } 1426 }
1424 } 1427 }
1425 1428 } else if (flags & WFLAG_NOLOG) {
1429 g_snprintf(buf, BUF_LONG, "<B><FONT COLOR=\"#777777\">%s</FONT></B><BR>", what);
1430 gtk_imhtml_append_text(GTK_IMHTML(c->text), buf, 0);
1426 } else { 1431 } else {
1427 if (flags & WFLAG_WHISPER) { 1432 if (flags & WFLAG_WHISPER) {
1428 /* if we're whispering, it's not an autoresponse */ 1433 /* if we're whispering, it's not an autoresponse */
1429 if (meify(what)) { 1434 if (meify(what)) {
1430 str = g_malloc(1024); 1435 str = g_malloc(1024);
1497 c->history = g_string_append(c->history, "<BR>\n"); 1502 c->history = g_string_append(c->history, "<BR>\n");
1498 g_free(t1); 1503 g_free(t1);
1499 g_free(t2); 1504 g_free(t2);
1500 } 1505 }
1501 1506
1502 if ((logging_options & OPT_LOG_ALL) || find_log_info(c->name)) { 1507 if (!(flags & WFLAG_NOLOG) && ((logging_options & OPT_LOG_ALL) || find_log_info(c->name))) {
1503 char *t1, *t2; 1508 char *t1, *t2;
1504 char *nm = g_malloc(256); 1509 char *nm = g_malloc(256);
1505 if (c->is_chat) 1510 if (c->is_chat)
1506 g_snprintf(nm, 256, "%s.chat", c->name); 1511 g_snprintf(nm, 256, "%s.chat", c->name);
1507 else 1512 else