use one of the stock g_cclosure marshallers instead of rolling our own for emitting error events

This commit is contained in:
Charles Kerr
2009-04-07 23:44:38 +00:00
parent 640c9a25dd
commit a094c562ad
2 changed files with 4 additions and 40 deletions

View File

@@ -139,10 +139,7 @@ static void gotdrag( GtkWidget * widget,
guint time,
gpointer gdata );
static void coreerr( TrCore * core,
enum tr_core_err code,
const char * msg,
gpointer gdata );
static void coreerr( TrCore *, guint, const char *, struct cbdata * );
static void onAddTorrent( TrCore *,
tr_ctor *,
@@ -861,13 +858,8 @@ showTorrentErrors( struct cbdata * cbdata )
}
static void
coreerr( TrCore * core UNUSED,
enum tr_core_err code,
const char * msg,
gpointer gdata )
coreerr( TrCore * core UNUSED, guint code, const char * msg, struct cbdata * c )
{
struct cbdata * c = gdata;
switch( code )
{
case TR_EINVALID: