Mercurial > pidgin.yaz
comparison src/gtkprefs.c @ 8948:175cbf710a47
[gaim-migrate @ 9720]
Eradicate the "seconds before resending autoresponse" preference
(default to 600 seconds) and the "send autoresponse in active
conversations" preference (default to no)
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Sun, 16 May 2004 06:39:51 +0000 |
parents | fa6c2d893c51 |
children | dfa1cd98d1c7 |
comparison
equal
deleted
inserted
replaced
8947:fa6c2d893c51 | 8948:175cbf710a47 |
---|---|
1552 gtk_widget_show_all(ret); | 1552 gtk_widget_show_all(ret); |
1553 | 1553 |
1554 return ret; | 1554 return ret; |
1555 } | 1555 } |
1556 | 1556 |
1557 #if 0 /* PREFSLASH04 */ | |
1558 static void | |
1559 auto_resp_changed_cb(const char *name, GaimPrefType type, gpointer value, | |
1560 gpointer data) | |
1561 { | |
1562 GtkWidget *hbox = data; | |
1563 gboolean enabled = GPOINTER_TO_INT(value); | |
1564 | |
1565 gtk_widget_set_sensitive(hbox, enabled); | |
1566 } | |
1567 #endif /* PREFSLASH04 */ | |
1568 | |
1569 GtkWidget *away_page() { | 1557 GtkWidget *away_page() { |
1570 GtkWidget *ret; | 1558 GtkWidget *ret; |
1571 GtkWidget *vbox; | 1559 GtkWidget *vbox; |
1572 GtkWidget *hbox; | 1560 GtkWidget *hbox; |
1573 GtkWidget *label; | 1561 GtkWidget *label; |
1584 vbox = gaim_gtk_make_frame (ret, _("Away")); | 1572 vbox = gaim_gtk_make_frame (ret, _("Away")); |
1585 gaim_gtk_prefs_checkbox(_("_Queue new messages when away"), | 1573 gaim_gtk_prefs_checkbox(_("_Queue new messages when away"), |
1586 "/gaim/gtk/away/queue_messages", vbox); | 1574 "/gaim/gtk/away/queue_messages", vbox); |
1587 | 1575 |
1588 vbox = gaim_gtk_make_frame (ret, _("Auto-response")); | 1576 vbox = gaim_gtk_make_frame (ret, _("Auto-response")); |
1589 #if 0 /* PREFSLASH04 */ | |
1590 hbox = gtk_hbox_new(FALSE, 0); | |
1591 gtk_container_add(GTK_CONTAINER(vbox), hbox); | |
1592 gaim_gtk_prefs_labeled_spin_button(hbox, _("Seconds before _resending:"), | |
1593 "/core/away/auto_response/sec_before_resend", | |
1594 1, 24 * 60 * 60, sg); | |
1595 #endif /* PREFSLASH04 */ | |
1596 gaim_gtk_prefs_checkbox(_("_Send auto-response"), | 1577 gaim_gtk_prefs_checkbox(_("_Send auto-response"), |
1597 "/core/away/auto_response/enabled", vbox); | 1578 "/core/away/auto_response/enabled", vbox); |
1598 gaim_gtk_prefs_checkbox(_("_Only send auto-response when idle"), | 1579 gaim_gtk_prefs_checkbox(_("_Only send auto-response when idle"), |
1599 "/core/away/auto_response/idle_only", vbox); | 1580 "/core/away/auto_response/idle_only", vbox); |
1600 #if 0 /* PREFSLASH04 */ | |
1601 gaim_gtk_prefs_checkbox(_("Send auto-response in _active conversations"), | |
1602 "/core/away/auto_response/in_active_conv", vbox); | |
1603 if (!gaim_prefs_get_bool("/core/away/auto_response/enabled")) | |
1604 gtk_widget_set_sensitive(hbox, FALSE); | |
1605 | |
1606 auto_resp_pref_id = gaim_prefs_connect_callback("/core/away/auto_response/enabled", | |
1607 auto_resp_changed_cb, hbox); | |
1608 #endif /* PREFSLASH04 */ | |
1609 | 1581 |
1610 vbox = gaim_gtk_make_frame (ret, _("Idle")); | 1582 vbox = gaim_gtk_make_frame (ret, _("Idle")); |
1611 dd = gaim_gtk_prefs_dropdown(vbox, _("Idle _time reporting:"), | 1583 dd = gaim_gtk_prefs_dropdown(vbox, _("Idle _time reporting:"), |
1612 GAIM_PREF_STRING, "/gaim/gtk/idle/reporting_method", | 1584 GAIM_PREF_STRING, "/gaim/gtk/idle/reporting_method", |
1613 _("None"), "none", | 1585 _("None"), "none", |