comparison src/gtkprefs.c @ 11698:a647f92e1d57

[gaim-migrate @ 13989] Change the pref "Enable system log" to "Log all status changes" and remove: * Log when buddies log in/log out * Log when buddies become idle/un-idle * Log when buddies go away/come back * Log your own signons/idleness/awayness If the status change log is enable, then the above 4 things will all be logged committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Thu, 20 Oct 2005 04:04:06 +0000
parents 186d2d293ef4
children 95cc6e1e9388
comparison
equal deleted inserted replaced
11697:186d2d293ef4 11698:a647f92e1d57
1384 logging_page() 1384 logging_page()
1385 { 1385 {
1386 GtkWidget *ret; 1386 GtkWidget *ret;
1387 GtkWidget *vbox; 1387 GtkWidget *vbox;
1388 GList *names; 1388 GList *names;
1389 GtkWidget *sys_box;
1390 GtkWidget *box;
1391
1392 int syslog_enabled = gaim_prefs_get_bool("/core/logging/log_system");
1393 1389
1394 ret = gtk_vbox_new(FALSE, GAIM_HIG_CAT_SPACE); 1390 ret = gtk_vbox_new(FALSE, GAIM_HIG_CAT_SPACE);
1395 gtk_container_set_border_width (GTK_CONTAINER (ret), GAIM_HIG_BORDER); 1391 gtk_container_set_border_width (GTK_CONTAINER (ret), GAIM_HIG_BORDER);
1396 1392
1397 vbox = gaim_gtk_make_frame (ret, _("Message Logs")); 1393 vbox = gaim_gtk_make_frame (ret, _("Logging"));
1398 names = gaim_log_logger_get_options(); 1394 names = gaim_log_logger_get_options();
1399 1395
1400 gaim_gtk_prefs_dropdown_from_list(vbox, _("Log _Format:"), GAIM_PREF_STRING, 1396 gaim_gtk_prefs_dropdown_from_list(vbox, _("Log _Format:"), GAIM_PREF_STRING,
1401 "/core/logging/format", names); 1397 "/core/logging/format", names);
1402 1398
1403 g_list_free(names); 1399 g_list_free(names);
1404 1400
1405 gaim_gtk_prefs_checkbox(_("_Log all instant messages"), 1401 gaim_gtk_prefs_checkbox(_("Log all _instant messages"),
1406 "/core/logging/log_ims", vbox); 1402 "/core/logging/log_ims", vbox);
1407 gaim_gtk_prefs_checkbox(_("Log all c_hats"), 1403 gaim_gtk_prefs_checkbox(_("Log all c_hats"),
1408 "/core/logging/log_chats", vbox); 1404 "/core/logging/log_chats", vbox);
1409 1405 gaim_gtk_prefs_checkbox(_("Log all _status changes"),
1410 vbox = gaim_gtk_make_frame (ret, _("System Logs")); 1406 "/core/logging/log_system", vbox);
1411
1412 sys_box = gaim_gtk_prefs_checkbox(_("_Enable system log"),
1413 "/core/logging/log_system", vbox);
1414
1415 box = gaim_gtk_prefs_checkbox(_("Log when buddies log in/log _out"),
1416 "/core/logging/log_signon_signoff", vbox);
1417 g_signal_connect(G_OBJECT(sys_box), "clicked",
1418 G_CALLBACK(gaim_gtk_toggle_sensitive), box);
1419 gtk_widget_set_sensitive(box, syslog_enabled);
1420
1421 box = gaim_gtk_prefs_checkbox(_("Log when buddies become _idle/un-idle"),
1422 "/core/logging/log_idle_state", vbox);
1423 g_signal_connect(G_OBJECT(sys_box), "clicked",
1424 G_CALLBACK(gaim_gtk_toggle_sensitive), box);
1425 gtk_widget_set_sensitive(box, syslog_enabled);
1426
1427 box = gaim_gtk_prefs_checkbox(_("Log when buddies go away/come _back"),
1428 "/core/logging/log_away_state", vbox);
1429 g_signal_connect(G_OBJECT(sys_box), "clicked",
1430 G_CALLBACK(gaim_gtk_toggle_sensitive), box);
1431 gtk_widget_set_sensitive(box, syslog_enabled);
1432
1433 box = gaim_gtk_prefs_checkbox(_("Log your own _signons/idleness/awayness"),
1434 "/core/logging/log_own_states", vbox);
1435 g_signal_connect(G_OBJECT(sys_box), "clicked",
1436 G_CALLBACK(gaim_gtk_toggle_sensitive), box);
1437 gtk_widget_set_sensitive(box, syslog_enabled);
1438 1407
1439 gtk_widget_show_all(ret); 1408 gtk_widget_show_all(ret);
1409
1440 return ret; 1410 return ret;
1441 } 1411 }
1442 1412
1443 #ifndef _WIN32 1413 #ifndef _WIN32
1444 static gint sound_cmd_yeah(GtkEntry *entry, gpointer d) 1414 static gint sound_cmd_yeah(GtkEntry *entry, gpointer d)