| 106 DebugWindow *win = (DebugWindow *)user_data; |
106 DebugWindow *win = (DebugWindow *)user_data; |
| 107 FILE *fp; |
107 FILE *fp; |
| 108 char *tmp; |
108 char *tmp; |
| 109 |
109 |
| 110 if ((fp = g_fopen(filename, "w+")) == NULL) { |
110 if ((fp = g_fopen(filename, "w+")) == NULL) { |
| 111 purple_notify_error(win, NULL, _("Unable to open file."), NULL); |
111 purple_notify_error(win, NULL, _("Unable to open file."), NULL, NULL); |
| 112 return; |
112 return; |
| 113 } |
113 } |
| 114 |
114 |
| 115 tmp = gtk_webview_get_body_text(GTK_WEBVIEW(win->text)); |
115 tmp = gtk_webview_get_body_text(GTK_WEBVIEW(win->text)); |
| 116 fprintf(fp, "Pidgin Debug Log : %s\n", purple_date_format_full(NULL)); |
116 fprintf(fp, "Pidgin Debug Log : %s\n", purple_date_format_full(NULL)); |