It works, but I still can't reproduce the gf2 crash. Either way, this is good for really stressing libpurple, despite the fact that it still needs some work
/*
* TimeLog plugin.
*
* Copyright (C) 2006 Jon Oberheide.
* Copyright (C) 2007-2008 Stu Tomlinson
*
* Based on code from Gaim's gtklog.c
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License as
* published by the Free Software Foundation; either version 2 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
* 02111-1307, USA.
*/
/* If you can't figure out what this line is for, DON'T TOUCH IT. */
#include"../common/pp_internal.h"
#include<stdio.h>
#include<stdlib.h>
#include<string.h>
#include<time.h>
#include<glib.h>
#include<gtk/gtk.h>
#include<pidgin.h>
#include<account.h>
#include<gtkblist.h>
#include<gtkutils.h>
#include<gtkimhtml.h>
#include<gtklog.h>
#include<log.h>
#include<notify.h>
#include<util.h>
#include"timelog.h"
#include"log-widget.h"
staticPidginLogViewer*syslog_viewer=NULL;
staticgint
log_compare(gconstpointery,gconstpointerz)
{
constPurpleLog*a=y;
constPurpleLog*b=z;
returnstrcmp(a->name,b->name);
}
staticvoid
populate_log_tree(PidginLogViewer*lv)
{
charname[64];
chartitle[64];
charprev_top_name[64]="";
char*utf8_tmp;/* temporary variable for utf8 conversion */