diff src/conversation.c @ 3517:6b0cb60162f4

[gaim-migrate @ 3590] Rob McQueen added a mute feature to his nice little docklet. I added a queuing feature. Configure the docklet in the plugins dialog to queue unread messages, and when you receive a message the docklet will eat it up and show a little message pending icon. Click on it, and read your message. ICQ people will like it. I also made plugin_event use a va_list. I bet this breaks perl. committer: Tailor Script <tailor@pidgin.im>
author Sean Egan <seanegan@gmail.com>
date Mon, 16 Sep 2002 08:35:24 +0000
parents b23092ad7126
children 369d419c8a29
line wrap: on
line diff
--- a/src/conversation.c	Mon Sep 16 07:04:55 2002 +0000
+++ b/src/conversation.c	Mon Sep 16 08:35:24 2002 +0000
@@ -194,7 +194,7 @@
 	update_icon(c);
 	update_checkbox(c);
 	update_smilies(c);
-	plugin_event(event_new_conversation, name, 0, 0, 0);
+	plugin_event(event_new_conversation, name);
 	return c;
 }
 
@@ -259,7 +259,7 @@
 
 void delete_conversation(struct conversation *c)
 {
-	plugin_event(event_del_conversation, c, 0, 0, 0);
+	plugin_event(event_del_conversation, c);
 	conversations = g_list_remove(conversations, c);
 	if (c->fg_color_dialog)
 		gtk_widget_destroy(c->fg_color_dialog);
@@ -949,13 +949,6 @@
 				toggle_font(c->font, c);
 				gtk_signal_emit_stop_by_name(GTK_OBJECT(entry), "key_press_event");
 				break;
-			case 'k':
-			case 'K':
-				quiet_set(c->fgcolorbtn,
-					  !gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(c->fgcolorbtn)));
-				toggle_fg_color(c->fgcolorbtn, c);
-				gtk_signal_emit_stop_by_name(GTK_OBJECT(entry), "key_press_event");
-				break;
 			}
 		}
 		if (convo_options & OPT_CONVO_CTL_SMILEYS) {
@@ -1188,7 +1181,7 @@
 		enum gaim_event evnt = c->is_chat ? event_chat_send : event_im_send;
 		int plugin_return = plugin_event(evnt, c->gc,
 						 c->is_chat ? (void *)c->id : c->name,
-						 &buffy, 0);
+						 &buffy);
 		if (!buffy) {
 			g_free(buf2);
 			g_free(buf);
@@ -1210,7 +1203,7 @@
 		gboolean binary = FALSE;
 
 		buffy = g_strdup(buf);
-		plugin_event(event_im_displayed_sent, c->gc, c->name, &buffy, 0);
+		plugin_event(event_im_displayed_sent, c->gc, c->name, &buffy);
 		if (buffy) {
 			int imflags = 0;
 			if (c->check && gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(c->check)))