comparison src/dialogs.c @ 3532:369d419c8a29

[gaim-migrate @ 3606] log viewer works on chats now. neat. Thanks javabsp. committer: Tailor Script <tailor@pidgin.im>
author Sean Egan <seanegan@gmail.com>
date Tue, 17 Sep 2002 16:44:00 +0000
parents 82180bb28f1f
children d49f2c77ee63
comparison
equal deleted inserted replaced
3531:84d2cd1d0ec9 3532:369d419c8a29
4105 char *name = g_strdup(data); 4105 char *name = g_strdup(data);
4106 show_log(name); 4106 show_log(name);
4107 g_free(name); 4107 g_free(name);
4108 } 4108 }
4109 4109
4110 void chat_show_log(GtkWidget *w, gpointer data)
4111 {
4112 char *name = g_strdup_printf("%s.chat", data);
4113 show_log(name);
4114 g_free(name);
4115 }
4116
4110 void show_log(char *nm) 4117 void show_log(char *nm)
4111 { 4118 {
4112 gchar filename[256]; 4119 gchar filename[256];
4113 gchar buf[BUF_LONG]; 4120 gchar buf[BUF_LONG];
4114 FILE *fp; 4121 FILE *fp;