comparison src/gtkprefs.c @ 8573:7dcd6f26e4a7

[gaim-migrate @ 9321] " This patch reimplements the system log. It writes system log to ~/.gaim/logs/<protocol>/<username>/.system/<timestamp>.(txt|html), where <timestamp> is the time that the account <username> with <protocol> signs on. Nathan (faceprint) and LSchiere suggested this logging scheme. No code is currently written to read the old system logs. Note that if you change the logging format, you need to re-login the accounts for the change to take effect." --Ka-Hing (javabsp) Cheung who continues: "Now this one applies, also contains a rider patch that, if you enable sound for "Someone says your name in chat", it will not play a sound if the message is a system message, like if jabber chat tells you that "*** becomes available" and *** is you, it won't play a sound." committer: Tailor Script <tailor@pidgin.im>
author Luke Schierer <lschiere@pidgin.im>
date Sat, 03 Apr 2004 18:34:29 +0000
parents 8a1421dcef60
children 599d6ac9bbfe
comparison
equal deleted inserted replaced
8572:f6890288bbe0 8573:7dcd6f26e4a7
1431 1431
1432 GtkWidget *logging_page() { 1432 GtkWidget *logging_page() {
1433 GtkWidget *ret; 1433 GtkWidget *ret;
1434 GtkWidget *vbox; 1434 GtkWidget *vbox;
1435 GList *names; 1435 GList *names;
1436 GtkWidget *sys_box;
1437 GtkWidget *box;
1438 int syslog_enabled = gaim_prefs_get_bool("/core/logging/log_system");
1439
1436 ret = gtk_vbox_new(FALSE, 18); 1440 ret = gtk_vbox_new(FALSE, 18);
1437 gtk_container_set_border_width (GTK_CONTAINER (ret), 12); 1441 gtk_container_set_border_width (GTK_CONTAINER (ret), 12);
1438 1442
1439 vbox = gaim_gtk_make_frame (ret, _("Message Logs")); 1443 vbox = gaim_gtk_make_frame (ret, _("Message Logs"));
1440 names = gaim_log_logger_get_options(); 1444 names = gaim_log_logger_get_options();
1444 1448
1445 gaim_gtk_prefs_checkbox(_("_Log all instant messages"), 1449 gaim_gtk_prefs_checkbox(_("_Log all instant messages"),
1446 "/core/logging/log_ims", vbox); 1450 "/core/logging/log_ims", vbox);
1447 gaim_gtk_prefs_checkbox(_("Log all c_hats"), 1451 gaim_gtk_prefs_checkbox(_("Log all c_hats"),
1448 "/core/logging/log_chats", vbox); 1452 "/core/logging/log_chats", vbox);
1453
1454 vbox = gaim_gtk_make_frame (ret, _("System Logs"));
1455
1456 sys_box = gaim_gtk_prefs_checkbox(_("_Enable system log"),
1457 "/core/logging/log_system", vbox);
1458
1459 box = gaim_gtk_prefs_checkbox(_("Log when buddies _sign on/sign off"),
1460 "/core/logging/log_signon_signoff", vbox);
1461 g_signal_connect(G_OBJECT(sys_box), "clicked",
1462 G_CALLBACK(gaim_gtk_toggle_sensitive), box);
1463 gtk_widget_set_sensitive(box, syslog_enabled);
1464
1465 box = gaim_gtk_prefs_checkbox(_("Log when buddies become _idle/un-idle"),
1466 "/core/logging/log_idle_state", vbox);
1467 g_signal_connect(G_OBJECT(sys_box), "clicked",
1468 G_CALLBACK(gaim_gtk_toggle_sensitive), box);
1469 gtk_widget_set_sensitive(box, syslog_enabled);
1470
1471 box = gaim_gtk_prefs_checkbox(_("Log when buddies go away/come _back"),
1472 "/core/logging/log_away_state", vbox);
1473 g_signal_connect(G_OBJECT(sys_box), "clicked",
1474 G_CALLBACK(gaim_gtk_toggle_sensitive), box);
1475 gtk_widget_set_sensitive(box, syslog_enabled);
1476
1477 box = gaim_gtk_prefs_checkbox(_("Log your _own signons/idleness/awayness"),
1478 "/core/logging/log_own_states", vbox);
1479 g_signal_connect(G_OBJECT(sys_box), "clicked",
1480 G_CALLBACK(gaim_gtk_toggle_sensitive), box);
1481 gtk_widget_set_sensitive(box, syslog_enabled);
1482
1449 /* 1483 /*
1450 vbox = gaim_gtk_make_frame (ret, _("System Logs"));
1451 gaim_gtk_prefs_checkbox(_("Log when buddies _sign on/sign off"),
1452 "/gaim/gtk/logging/log_signon_signoff", vbox);
1453 gaim_gtk_prefs_checkbox(_("Log when buddies become _idle/un-idle"),
1454 "/gaim/gtk/logging/log_idle_state", vbox);
1455 gaim_gtk_prefs_checkbox(_("Log when buddies go away/come _back"),
1456 "/gaim/gtk/logging/log_away_state", vbox);
1457 gaim_gtk_prefs_checkbox(_("Log your _own signons/idleness/awayness"),
1458 "/gaim/gtk/logging/log_own_states", vbox);
1459 gaim_gtk_prefs_checkbox(_("I_ndividual log file for each buddy's signons"), 1484 gaim_gtk_prefs_checkbox(_("I_ndividual log file for each buddy's signons"),
1460 "/gaim/gtk/logging/individual_logs", vbox); 1485 "/gaim/gtk/logging/individual_logs", vbox);
1461 */ 1486 */
1487
1462 gtk_widget_show_all(ret); 1488 gtk_widget_show_all(ret);
1463 return ret; 1489 return ret;
1464 } 1490 }
1465 1491
1466 #ifndef _WIN32 1492 #ifndef _WIN32