Mercurial > pidgin
comparison src/prefs.c @ 2906:538c58b43eff
[gaim-migrate @ 2919]
save
save me from this
wandered around the town
all the thousand things
i might miss
and you
think we'll suffer much
think we'll close our eyes
just to see the light
pass us by
with tomorrow coming
hope that i don't let you
down again
said i'm so glad to be here
does it mean a thing
if only i could breathe what you breathe
if only i could see what you see
sit
we'll take our time
watching the flowers grow
all the friends we've known
say goodbye
and you
did you suffer much
did you close your eyes
just to see the night
rush on by
gathered all around you
hope that we don't let you
down again
i said i'm so glad to be here
does it mean a thing
if only i could breathe what you breathe
if only i could see what you see
i said i'm so glad to be here
does it mean a thing
if only i could breathe what you breathe
if only i could see what you see
if only i could just believe a thing
--Moist, "Breathe" (as transcribed by http://www.veddma.com/veddma/moist.htm)
Patches from:
Ari Pollak
Ben Miller
Mark Doliner
Sean Egan
Vincas Ciziunas
Thanks everyone.
Somewhere in the middle of all of this it started to get really tedious and annoying. I think it's getting close to the point where I quit.
committer: Tailor Script <tailor@pidgin.im>
author | Eric Warmenhoven <eric@warmenhoven.org> |
---|---|
date | Fri, 21 Dec 2001 10:23:04 +0000 |
parents | b1e300a85678 |
children | 7239a392486c |
comparison
equal
deleted
inserted
replaced
2905:a090e98dbbb6 | 2906:538c58b43eff |
---|---|
827 { | 827 { |
828 int *value = gtk_object_get_user_data(GTK_OBJECT(spin)); | 828 int *value = gtk_object_get_user_data(GTK_OBJECT(spin)); |
829 *value = gtk_spin_button_get_value_as_int(GTK_SPIN_BUTTON(spin)); | 829 *value = gtk_spin_button_get_value_as_int(GTK_SPIN_BUTTON(spin)); |
830 } | 830 } |
831 | 831 |
832 static void gaim_labeled_spin_button(GtkWidget *box, const gchar *title, int *val) | 832 static void gaim_labeled_spin_button(GtkWidget *box, const gchar *title, int *val, int min, int max) |
833 { | 833 { |
834 GtkWidget *hbox; | 834 GtkWidget *hbox; |
835 GtkWidget *label; | 835 GtkWidget *label; |
836 GtkWidget *spin; | 836 GtkWidget *spin; |
837 GtkObject *adjust; | 837 GtkObject *adjust; |
842 | 842 |
843 label = gtk_label_new(title); | 843 label = gtk_label_new(title); |
844 gtk_box_pack_start(GTK_BOX(hbox), label, FALSE, FALSE, 5); | 844 gtk_box_pack_start(GTK_BOX(hbox), label, FALSE, FALSE, 5); |
845 gtk_widget_show(label); | 845 gtk_widget_show(label); |
846 | 846 |
847 adjust = gtk_adjustment_new(*val, 1, 9999, 1, 1, 1); | 847 adjust = gtk_adjustment_new(*val, min, max, 1, 1, 1); |
848 spin = gtk_spin_button_new(GTK_ADJUSTMENT(adjust), 1, 0); | 848 spin = gtk_spin_button_new(GTK_ADJUSTMENT(adjust), 1, 0); |
849 gtk_object_set_user_data(GTK_OBJECT(spin), val); | 849 gtk_object_set_user_data(GTK_OBJECT(spin), val); |
850 gtk_widget_set_usize(spin, 50, -1); | 850 gtk_widget_set_usize(spin, 50, -1); |
851 gtk_box_pack_start(GTK_BOX(hbox), spin, FALSE, FALSE, 0); | 851 gtk_box_pack_start(GTK_BOX(hbox), spin, FALSE, FALSE, 0); |
852 gtk_signal_connect(GTK_OBJECT(adjust), "value-changed", | 852 gtk_signal_connect(GTK_OBJECT(adjust), "value-changed", |
947 | 947 |
948 vbox = gtk_vbox_new(FALSE, 5); | 948 vbox = gtk_vbox_new(FALSE, 5); |
949 gtk_container_add(GTK_CONTAINER(frame), vbox); | 949 gtk_container_add(GTK_CONTAINER(frame), vbox); |
950 gtk_widget_show(vbox); | 950 gtk_widget_show(vbox); |
951 | 951 |
952 gaim_labeled_spin_button(vbox, _("New window width:"), &conv_size.width); | 952 gaim_labeled_spin_button(vbox, _("New window width:"), &conv_size.width, 25, 9999); |
953 gaim_labeled_spin_button(vbox, _("New window height:"), &conv_size.height); | 953 gaim_labeled_spin_button(vbox, _("New window height:"), &conv_size.height, 25, 9999); |
954 gaim_labeled_spin_button(vbox, _("Entry widget height:"), &conv_size.entry_height); | 954 gaim_labeled_spin_button(vbox, _("Entry widget height:"), &conv_size.entry_height, 25, 9999); |
955 | 955 |
956 frame = gtk_frame_new(_("Tab Placement")); | 956 frame = gtk_frame_new(_("Tab Placement")); |
957 gtk_box_pack_start(GTK_BOX(box), frame, FALSE, FALSE, 5); | 957 gtk_box_pack_start(GTK_BOX(box), frame, FALSE, FALSE, 5); |
958 gtk_widget_show(frame); | 958 gtk_widget_show(frame); |
959 | 959 |
1091 | 1091 |
1092 vbox = gtk_vbox_new(FALSE, 5); | 1092 vbox = gtk_vbox_new(FALSE, 5); |
1093 gtk_container_add(GTK_CONTAINER(frame), vbox); | 1093 gtk_container_add(GTK_CONTAINER(frame), vbox); |
1094 gtk_widget_show(vbox); | 1094 gtk_widget_show(vbox); |
1095 | 1095 |
1096 gaim_labeled_spin_button(vbox, _("New window width:"), &buddy_chat_size.width); | 1096 gaim_labeled_spin_button(vbox, _("New window width:"), &buddy_chat_size.width, 25, 9999); |
1097 gaim_labeled_spin_button(vbox, _("New window height:"), &buddy_chat_size.height); | 1097 gaim_labeled_spin_button(vbox, _("New window height:"), &buddy_chat_size.height, 25, 9999); |
1098 gaim_labeled_spin_button(vbox, _("Entry widget height:"), &buddy_chat_size.entry_height); | 1098 gaim_labeled_spin_button(vbox, _("Entry widget height:"), &buddy_chat_size.entry_height, 25, 9999); |
1099 | 1099 |
1100 frame = gtk_frame_new(_("Tab Placement")); | 1100 frame = gtk_frame_new(_("Tab Placement")); |
1101 gtk_box_pack_start(GTK_BOX(box), frame, FALSE, FALSE, 5); | 1101 gtk_box_pack_start(GTK_BOX(box), frame, FALSE, FALSE, 5); |
1102 gtk_widget_show(frame); | 1102 gtk_widget_show(frame); |
1103 | 1103 |
1821 GtkWidget *label; | 1821 GtkWidget *label; |
1822 GtkWidget *frame; | 1822 GtkWidget *frame; |
1823 GtkWidget *vbox; | 1823 GtkWidget *vbox; |
1824 GtkWidget *hbox; | 1824 GtkWidget *hbox; |
1825 GtkWidget *vbox2; | 1825 GtkWidget *vbox2; |
1826 GtkWidget *button; | |
1827 GtkWidget *button2; | |
1826 GtkWidget *top; | 1828 GtkWidget *top; |
1827 GtkWidget *bot; | 1829 GtkWidget *bot; |
1828 GtkWidget *sw; | 1830 GtkWidget *sw; |
1829 GtkWidget *sw2; | 1831 GtkWidget *sw2; |
1830 GtkWidget *button; | |
1831 GtkWidget *list_item; | 1832 GtkWidget *list_item; |
1832 GtkWidget *sep; | 1833 GtkWidget *sep; |
1833 GtkObject *adjust; | 1834 GtkObject *adjust; |
1834 GtkWidget *spin; | 1835 GtkWidget *spin; |
1835 GSList *awy = away_messages; | 1836 GSList *awy = away_messages; |
1873 | 1874 |
1874 vbox2 = gtk_vbox_new(FALSE, 5); | 1875 vbox2 = gtk_vbox_new(FALSE, 5); |
1875 gtk_box_pack_start(GTK_BOX(hbox), vbox2, TRUE, TRUE, 5); | 1876 gtk_box_pack_start(GTK_BOX(hbox), vbox2, TRUE, TRUE, 5); |
1876 gtk_widget_show(vbox2); | 1877 gtk_widget_show(vbox2); |
1877 | 1878 |
1878 gaim_button(_("Don't send auto-response"), &away_options, OPT_AWAY_NO_AUTO_RESP, vbox2); | 1879 button = gaim_button(_("Don't send auto-response"), &away_options, OPT_AWAY_NO_AUTO_RESP, vbox2); |
1880 button2 = gaim_button(_("Only send auto-response when idle"), &away_options, OPT_AWAY_IDLE_RESP, | |
1881 vbox2); | |
1882 if (away_options & OPT_AWAY_NO_AUTO_RESP) | |
1883 gtk_widget_set_sensitive(button2, FALSE); | |
1884 gtk_signal_connect(GTK_OBJECT(button), "clicked", GTK_SIGNAL_FUNC(toggle_sensitive), button2); | |
1879 gaim_button(_("Queue new messages when away"), &away_options, OPT_AWAY_QUEUE, vbox2); | 1885 gaim_button(_("Queue new messages when away"), &away_options, OPT_AWAY_QUEUE, vbox2); |
1886 | |
1887 sep = gtk_hseparator_new(); | |
1888 gtk_box_pack_start(GTK_BOX(vbox), sep, FALSE, FALSE, 0); | |
1889 gtk_widget_show(sep); | |
1890 | |
1891 hbox = gtk_hbox_new(FALSE, 5); | |
1892 gtk_box_pack_start(GTK_BOX(vbox), hbox, FALSE, FALSE, 0); | |
1893 gtk_widget_show(hbox); | |
1894 | |
1895 gaim_labeled_spin_button(hbox, _("Time between sending auto-responses (in seconds):"), | |
1896 &away_resend, 1, 24 * 60 * 60); | |
1897 | |
1898 if (away_options & OPT_AWAY_NO_AUTO_RESP) | |
1899 gtk_widget_set_sensitive(hbox, FALSE); | |
1900 gtk_signal_connect(GTK_OBJECT(button), "clicked", GTK_SIGNAL_FUNC(toggle_sensitive), hbox); | |
1880 | 1901 |
1881 sep = gtk_hseparator_new(); | 1902 sep = gtk_hseparator_new(); |
1882 gtk_box_pack_start(GTK_BOX(vbox), sep, FALSE, FALSE, 0); | 1903 gtk_box_pack_start(GTK_BOX(vbox), sep, FALSE, FALSE, 0); |
1883 gtk_widget_show(sep); | 1904 gtk_widget_show(sep); |
1884 | 1905 |
1955 gtk_box_pack_start(GTK_BOX(top), sw2, TRUE, TRUE, 0); | 1976 gtk_box_pack_start(GTK_BOX(top), sw2, TRUE, TRUE, 0); |
1956 gtk_widget_show(sw2); | 1977 gtk_widget_show(sw2); |
1957 | 1978 |
1958 away_text = gtk_imhtml_new(NULL, NULL); | 1979 away_text = gtk_imhtml_new(NULL, NULL); |
1959 gtk_container_add(GTK_CONTAINER(sw2), away_text); | 1980 gtk_container_add(GTK_CONTAINER(sw2), away_text); |
1981 GTK_LAYOUT(away_text)->hadjustment->step_increment = 10.0; | |
1982 GTK_LAYOUT(away_text)->vadjustment->step_increment = 10.0; | |
1960 gaim_setup_imhtml(away_text); | 1983 gaim_setup_imhtml(away_text); |
1961 gtk_widget_show(away_text); | 1984 gtk_widget_show(away_text); |
1962 | 1985 |
1963 bot = gtk_hbox_new(FALSE, 0); | 1986 bot = gtk_hbox_new(FALSE, 0); |
1964 gtk_box_pack_start(GTK_BOX(vbox), bot, FALSE, FALSE, 5); | 1987 gtk_box_pack_start(GTK_BOX(vbox), bot, FALSE, FALSE, 5); |