# HG changeset patch # User Sadrul Habib Chowdhury # Date 1161121668 0 # Node ID 54ce6f592b0107898e03a4b9fb5540ced936a7e8 # Parent 61416f315d1c0780b58d1df563d7acc14b59c874 [gaim-migrate @ 17503] s/gtk/gnt/ committer: Tailor Script diff -r 61416f315d1c -r 54ce6f592b01 console/gntgaim.c --- a/console/gntgaim.c Tue Oct 17 21:46:09 2006 +0000 +++ b/console/gntgaim.c Tue Oct 17 21:47:48 2006 +0000 @@ -79,12 +79,12 @@ } GaimGtkIOClosure; -static void gaim_gtk_io_destroy(gpointer data) +static void gaim_gnt_io_destroy(gpointer data) { g_free(data); } -static gboolean gaim_gtk_io_invoke(GIOChannel *source, GIOCondition condition, gpointer data) +static gboolean gaim_gnt_io_invoke(GIOChannel *source, GIOCondition condition, gpointer data) { GaimGtkIOClosure *closure = data; GaimInputCondition gaim_cond = 0; @@ -103,7 +103,7 @@ #ifdef _WIN32 if(! gaim_cond) { #if DEBUG - gaim_debug(GAIM_DEBUG_MISC, "gtk_eventloop", + gaim_debug_misc("gnt_eventloop", "CLOSURE received GIOCondition of 0x%x, which does not" " match 0x%x (READ) or 0x%x (WRITE)\n", condition, GAIM_GTK_READ_COND, GAIM_GTK_WRITE_COND); @@ -136,7 +136,7 @@ channel = g_io_channel_unix_new(fd); closure->result = g_io_add_watch_full(channel, G_PRIORITY_DEFAULT, cond, - gaim_gtk_io_invoke, closure, gaim_gtk_io_destroy); + gaim_gnt_io_invoke, closure, gaim_gnt_io_destroy); g_io_channel_unref(channel); return closure->result; @@ -326,6 +326,8 @@ /* XXX: Don't puke */ freopen(".error", "w", stderr); + signal(SIGPIPE, SIG_IGN); + /* Initialize the libgaim stuff */ if (!init_libgaim(argc, argv)) return 0;