# HG changeset patch # User Sean Egan # Date 1060633095 0 # Node ID a10a256b6784f97befa3e89d72c0dc02a0af459c # Parent 5211873190eac7a300bcfaa671562b3ee17fdbc9 [gaim-migrate @ 6939] The log viewer is fixed. committer: Tailor Script diff -r 5211873190ea -r a10a256b6784 src/dialogs.c --- a/src/dialogs.c Mon Aug 11 19:56:57 2003 +0000 +++ b/src/dialogs.c Mon Aug 11 20:18:15 2003 +0000 @@ -3208,7 +3208,7 @@ gtk_main_iteration(); */ - while (fgets(buf, BUF_LONG, fp) && strncmp(buf, "---- ", 5)!=0) { + while (fgets(buf, BUF_LONG, fp) && !strstr(buf, "---- New C")) { i++; if (strlen(buf) >= 5 && (!strncmp(buf + strlen(buf) - 5, "
\n", 5))) /* take off the \n */ @@ -3385,7 +3385,7 @@ gtk_box_pack_start(GTK_BOX(hbox), frame, TRUE, TRUE, 0); while (fgets(buf, BUF_LONG, fp)) { - if (strncmp(buf, "---- ", 5)==0) { + if (strstr(buf, "---- New C")) { int length; char *temp = strchr(buf, '@'); GtkTreeIter iter; @@ -3396,7 +3396,7 @@ temp++; length = strcspn(temp, "-"); if (length > 31) length = 31; - + offset = ftell(fp); g_snprintf(convo_start, length, "%s", temp); gtk_list_store_append(list_store, &iter);