comparison src/conversation.c @ 1881:a02584b98823

[gaim-migrate @ 1891] C:) committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Wed, 23 May 2001 07:59:05 +0000
parents efc899af4912
children c81f3dd0e58e
comparison
equal deleted inserted replaced
1880:b8245bcce7e6 1881:a02584b98823
819 c->bgcol.green, c->bgcol.blue, buf); 819 c->bgcol.green, c->bgcol.blue, buf);
820 strcpy(buf, buf2); 820 strcpy(buf, buf2);
821 } 821 }
822 } 822 }
823 823
824 quiet_set(c->bold, FALSE);
825 quiet_set(c->strike, FALSE);
826 quiet_set(c->italic, FALSE);
827 quiet_set(c->underline, FALSE);
828 quiet_set(c->font, FALSE);
829 quiet_set(c->fgcolorbtn, FALSE);
830 quiet_set(c->bgcolorbtn, FALSE);
831 quiet_set(c->link, FALSE);
832 gtk_widget_grab_focus(c->entry);
833
824 { 834 {
825 char *buffy = g_strdup(buf); 835 char *buffy = g_strdup(buf);
826 enum gaim_event evnt = c->is_chat ? event_chat_send : event_im_send; 836 enum gaim_event evnt = c->is_chat ? event_chat_send : event_im_send;
827 int plugin_return = plugin_event(evnt, c->gc, c->name, &buffy, 0); 837 int plugin_return = plugin_event(evnt, c->gc, c->name, &buffy, 0);
828 if (!buffy) { 838 if (!buffy) {
853 serv_chat_send(c->gc, c->id, buf); 863 serv_chat_send(c->gc, c->id, buf);
854 864
855 /* no sound because we do that when we receive our message */ 865 /* no sound because we do that when we receive our message */
856 } 866 }
857 867
858 quiet_set(c->bold, FALSE);
859 quiet_set(c->strike, FALSE);
860 quiet_set(c->italic, FALSE);
861 quiet_set(c->underline, FALSE);
862 quiet_set(c->font, FALSE);
863 quiet_set(c->fgcolorbtn, FALSE);
864 quiet_set(c->bgcolorbtn, FALSE);
865 quiet_set(c->link, FALSE);
866
867 if (general_options & OPT_GEN_BACK_ON_IM) { 868 if (general_options & OPT_GEN_BACK_ON_IM) {
868 if (awaymessage != NULL) { 869 if (awaymessage != NULL) {
869 do_im_back(); 870 do_im_back();
870 } else if (c->gc->away) { 871 } else if (c->gc->away) {
871 serv_set_away(c->gc, GAIM_AWAY_CUSTOM, NULL); 872 serv_set_away(c->gc, GAIM_AWAY_CUSTOM, NULL);
872 } 873 }
873 } 874 }
874 875
875 gtk_widget_grab_focus(c->entry);
876 g_free(buf2); 876 g_free(buf2);
877 g_free(buf); 877 g_free(buf);
878 } 878 }
879 879
880 int entry_key_pressed(GtkWidget *w, GtkWidget *entry) 880 int entry_key_pressed(GtkWidget *w, GtkWidget *entry)