Mercurial > pidgin.yaz
comparison src/gtkconn.c @ 7431:643cbc9a6035
[gaim-migrate @ 8036]
This is good enough for CVS. This is new logging. It centers around the
highly modular "GaimLogLogger," which controls how to write the log. Currently
I only have the plain text logger. I wrote the beginning of an XML logger, but
decided I didn't think it was that great an idea. Plugins can implement loggers
themselves, so you can have, like, an SQL logger or something.
The default logger writes to a file unique to the conversation, and they're saved
on disk in a heirarchical fashion: ~/.gaim/logs/aim/seanegn/robflynn-date.log would
be a conversation I had with Rob on date.
What doesn't work:
System logging
The search button in the log viewer.
Oh, chats probably don't log either, I didn't test.
You can only log in plain text right now.
Obviously, it's not done yet. But you can play around with it, and give it
some love. I'll get back to it tomorrow after school, maybe.
committer: Tailor Script <tailor@pidgin.im>
author | Sean Egan <seanegan@gmail.com> |
---|---|
date | Wed, 05 Nov 2003 06:15:49 +0000 |
parents | 2ea9bf5686ad |
children | 4a416ff9cb4f |
comparison
equal
deleted
inserted
replaced
7430:783eea64614c | 7431:643cbc9a6035 |
---|---|
275 }; | 275 }; |
276 struct disconnect_window *disconnect_window = NULL; | 276 struct disconnect_window *disconnect_window = NULL; |
277 | 277 |
278 static void disconnect_response_cb(GtkDialog *dialog, gint id, GtkWidget *widget) | 278 static void disconnect_response_cb(GtkDialog *dialog, gint id, GtkWidget *widget) |
279 { | 279 { |
280 GaimAccount *account = NULL; | |
281 | |
280 switch(id) { | 282 switch(id) { |
281 case GTK_RESPONSE_CLOSE: | 283 case GTK_RESPONSE_CLOSE: |
282 gtk_widget_destroy(disconnect_window->window); | 284 gtk_widget_destroy(disconnect_window->window); |
283 g_free(disconnect_window); | 285 g_free(disconnect_window); |
284 disconnect_window = NULL; | 286 disconnect_window = NULL; |
285 break; | 287 break; |
286 case GTK_RESPONSE_ACCEPT: | 288 case GTK_RESPONSE_ACCEPT: |
289 | |
290 gaim_account_connect(account); | |
287 break; | 291 break; |
288 } | 292 } |
289 } | 293 } |
290 | 294 |
291 static void disconnect_tree_cb(GtkTreeSelection *sel, GtkTreeModel *model) | 295 static void disconnect_tree_cb(GtkTreeSelection *sel, GtkTreeModel *model) |