Mercurial > pidgin
comparison src/prefs.c @ 4944:5fe846b7603f
[gaim-migrate @ 5278]
Fixes by Rob "Robot101" McQueen:
Buddies who sign off within 10 seconds of signing on won't get stuck "online"
forever
Idle times refresh every minute
Show icons/text on the buddy list buttons works now
URL tooltips in gtkimhtml won't linger around for no good reason.
Thanks, Rob.
And Rob Flynn is a spoil sport ;)
committer: Tailor Script <tailor@pidgin.im>
author | Sean Egan <seanegan@gmail.com> |
---|---|
date | Tue, 01 Apr 2003 07:57:13 +0000 |
parents | dc6de8ad81ae |
children | aa273fba7b09 |
comparison
equal
deleted
inserted
replaced
4943:f0c7d092948d | 4944:5fe846b7603f |
---|---|
539 GtkWidget *vbox; | 539 GtkWidget *vbox; |
540 ret = gtk_vbox_new(FALSE, 18); | 540 ret = gtk_vbox_new(FALSE, 18); |
541 gtk_container_set_border_width (GTK_CONTAINER (ret), 12); | 541 gtk_container_set_border_width (GTK_CONTAINER (ret), 12); |
542 | 542 |
543 vbox = make_frame (ret, _("Buttons")); | 543 vbox = make_frame (ret, _("Buttons")); |
544 gaim_button(_("_Hide IM/Info/Chat buttons"), &blist_options, OPT_BLIST_NO_BUTTONS, vbox); | 544 gaim_dropdown(vbox, _("Show _buttons as:"), &blist_options, OPT_BLIST_SHOW_BUTTON_XPM | OPT_BLIST_NO_BUTTON_TEXT, |
545 gaim_button(_("Show _pictures on buttons"), &blist_options, OPT_BLIST_SHOW_BUTTON_XPM, vbox); | 545 _("Pictures"), OPT_BLIST_SHOW_BUTTON_XPM | OPT_BLIST_NO_BUTTON_TEXT, |
546 _("Text"), 0, | |
547 _("Pictures and text"), OPT_BLIST_SHOW_BUTTON_XPM, | |
548 _("None"), OPT_BLIST_NO_BUTTON_TEXT, NULL); | |
546 | 549 |
547 vbox = make_frame (ret, _("Buddy List Window")); | 550 vbox = make_frame (ret, _("Buddy List Window")); |
548 gaim_button(_("_Save window size/position"), &blist_options, OPT_BLIST_SAVED_WINDOWS, vbox); | 551 gaim_button(_("_Save window size/position"), &blist_options, OPT_BLIST_SAVED_WINDOWS, vbox); |
549 gaim_button(_("_Raise window on events"), &blist_options, OPT_BLIST_POPUP, vbox); | 552 gaim_button(_("_Raise window on events"), &blist_options, OPT_BLIST_POPUP, vbox); |
550 | 553 |
555 vbox = make_frame (ret, _("Buddy Display")); | 558 vbox = make_frame (ret, _("Buddy Display")); |
556 gaim_button(_("Show buddy _icons"), &blist_options, OPT_BLIST_SHOW_ICONS, vbox); | 559 gaim_button(_("Show buddy _icons"), &blist_options, OPT_BLIST_SHOW_ICONS, vbox); |
557 /* gaim_button(_("Show buddy t_ype icons"), &blist_options, OPT_BLIST_SHOW_PIXMAPS, vbox); */ | 560 /* gaim_button(_("Show buddy t_ype icons"), &blist_options, OPT_BLIST_SHOW_PIXMAPS, vbox); */ |
558 gaim_button(_("Show _warning levels"), &blist_options, OPT_BLIST_SHOW_WARN, vbox); | 561 gaim_button(_("Show _warning levels"), &blist_options, OPT_BLIST_SHOW_WARN, vbox); |
559 gaim_button(_("Show idle _times"), &blist_options, OPT_BLIST_SHOW_IDLETIME, vbox); | 562 gaim_button(_("Show idle _times"), &blist_options, OPT_BLIST_SHOW_IDLETIME, vbox); |
560 gaim_button(_("Grey i_dle buddies"), &blist_options, OPT_BLIST_GREY_IDLERS, vbox); | 563 gaim_button(_("Dim i_dle buddies"), &blist_options, OPT_BLIST_GREY_IDLERS, vbox); |
561 | 564 |
562 gtk_widget_show_all(ret); | 565 gtk_widget_show_all(ret); |
563 return ret; | 566 return ret; |
564 } | 567 } |
565 | 568 |
1973 blist_options ^= option; | 1976 blist_options ^= option; |
1974 | 1977 |
1975 if (!gtkblist) | 1978 if (!gtkblist) |
1976 return; | 1979 return; |
1977 | 1980 |
1978 if (option == OPT_BLIST_NO_BUTTONS || option == OPT_BLIST_NO_BUTTONS) | 1981 if (option == OPT_BLIST_SHOW_WARN || |
1979 gaim_gtk_blist_update_toolbar(); | |
1980 else if (option == OPT_BLIST_SHOW_WARN || | |
1981 option == OPT_BLIST_SHOW_IDLETIME) | 1982 option == OPT_BLIST_SHOW_IDLETIME) |
1982 gaim_gtk_blist_update_columns(); | 1983 gaim_gtk_blist_update_columns(); |
1983 else if (option == OPT_BLIST_SHOW_ICONS) { | 1984 else if (option == OPT_BLIST_SHOW_ICONS) { |
1984 gaim_gtk_blist_refresh(gaim_get_blist()); | 1985 gaim_gtk_blist_refresh(gaim_get_blist()); |
1985 gaim_gtk_blist_update_columns(); | 1986 gaim_gtk_blist_update_columns(); |
1986 } else | 1987 } else |
1987 gaim_gtk_blist_refresh(gaim_get_blist()); | 1988 gaim_gtk_blist_refresh(gaim_get_blist()); |
1988 | |
1989 | |
1990 | |
1991 } | 1989 } |
1992 | 1990 |
1993 static void set_convo_option(GtkWidget *w, int option) | 1991 static void set_convo_option(GtkWidget *w, int option) |
1994 { | 1992 { |
1995 convo_options ^= option; | 1993 convo_options ^= option; |
2301 if (opt == OPT_SOUND_CMD) | 2299 if (opt == OPT_SOUND_CMD) |
2302 gtk_widget_set_sensitive(sndcmd, TRUE); | 2300 gtk_widget_set_sensitive(sndcmd, TRUE); |
2303 else | 2301 else |
2304 gtk_widget_set_sensitive(sndcmd, FALSE); | 2302 gtk_widget_set_sensitive(sndcmd, FALSE); |
2305 gaim_sound_change_output_method(); | 2303 gaim_sound_change_output_method(); |
2304 } else if (option == (int*)&blist_options) { | |
2305 gaim_gtk_blist_update_toolbar(); | |
2306 } else if (option == (int*)&im_options) { | 2306 } else if (option == (int*)&im_options) { |
2307 if (clear == (OPT_IM_SIDE_TAB | OPT_IM_BR_TAB)) | 2307 if (clear == (OPT_IM_SIDE_TAB | OPT_IM_BR_TAB)) |
2308 gaim_gtkconv_update_tabs(); | 2308 gaim_gtkconv_update_tabs(); |
2309 else if (clear == (OPT_IM_BUTTON_TEXT | OPT_IM_BUTTON_XPM)) | 2309 else if (clear == (OPT_IM_BUTTON_TEXT | OPT_IM_BUTTON_XPM)) |
2310 gaim_gtkconv_update_im_button_style(); | 2310 gaim_gtkconv_update_im_button_style(); |