Mercurial > pidgin
comparison src/prefs.c @ 4445:a65555132674
[gaim-migrate @ 4720]
"Who's the idiot now, moron?"
An option to remove the 'X' button from the tabs.
committer: Tailor Script <tailor@pidgin.im>
author | Sean Egan <seanegan@gmail.com> |
---|---|
date | Tue, 28 Jan 2003 06:55:23 +0000 |
parents | 2054d8429925 |
children | faa9b636707a |
comparison
equal
deleted
inserted
replaced
4444:fd83159169db | 4445:a65555132674 |
---|---|
645 | 645 |
646 GtkWidget *tab_page() { | 646 GtkWidget *tab_page() { |
647 GtkWidget *ret; | 647 GtkWidget *ret; |
648 GtkWidget *vbox; | 648 GtkWidget *vbox; |
649 GtkWidget *dd; | 649 GtkWidget *dd; |
650 GtkWidget *button; | |
650 GtkSizeGroup *sg; | 651 GtkSizeGroup *sg; |
651 ret = gtk_vbox_new(FALSE, 18); | 652 ret = gtk_vbox_new(FALSE, 18); |
652 gtk_container_set_border_width (GTK_CONTAINER (ret), 12); | 653 gtk_container_set_border_width (GTK_CONTAINER (ret), 12); |
653 | 654 |
654 sg = gtk_size_group_new(GTK_SIZE_GROUP_HORIZONTAL); | 655 sg = gtk_size_group_new(GTK_SIZE_GROUP_HORIZONTAL); |
671 _("Right"), OPT_CHAT_SIDE_TAB | OPT_CHAT_BR_TAB, NULL); | 672 _("Right"), OPT_CHAT_SIDE_TAB | OPT_CHAT_BR_TAB, NULL); |
672 gtk_size_group_add_widget(sg, dd); | 673 gtk_size_group_add_widget(sg, dd); |
673 gaim_button(_("Show all c_hats in one tabbed window"), &chat_options, OPT_CHAT_ONE_WINDOW, | 674 gaim_button(_("Show all c_hats in one tabbed window"), &chat_options, OPT_CHAT_ONE_WINDOW, |
674 vbox); | 675 vbox); |
675 | 676 |
676 vbox = make_frame (ret, _("Combined Tabs")); | |
677 gaim_button(_("Show IMs and chats in _same tabbed\nwindow."), &convo_options, OPT_CONVO_COMBINE, vbox); | |
678 | |
679 vbox = make_frame (ret, _("Buddy List Tabs")); | 677 vbox = make_frame (ret, _("Buddy List Tabs")); |
680 dd = gaim_dropdown(vbox, _("Tab _placement:"), &blist_options, OPT_BLIST_BOTTOM_TAB, | 678 dd = gaim_dropdown(vbox, _("Tab _placement:"), &blist_options, OPT_BLIST_BOTTOM_TAB, |
681 _("Top"), 0, | 679 _("Top"), 0, |
682 _("Bottom"), OPT_BLIST_BOTTOM_TAB, NULL); | 680 _("Bottom"), OPT_BLIST_BOTTOM_TAB, NULL); |
683 gtk_size_group_add_widget(sg, dd); | 681 gtk_size_group_add_widget(sg, dd); |
682 | |
683 vbox = make_frame (ret, _("Tab Options")); | |
684 gaim_button(_("Show IMs and chats in _same tabbed window."), &convo_options, OPT_CONVO_COMBINE, vbox); | |
685 button = gaim_button(_("Show _close button on tabs."), &convo_options, OPT_CONVO_NO_X_ON_TAB, vbox); | |
686 gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON(button), !gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(button))); | |
687 convo_options ^= OPT_CONVO_NO_X_ON_TAB; | |
688 | |
684 | 689 |
685 gtk_widget_show_all(ret); | 690 gtk_widget_show_all(ret); |
686 return ret; | 691 return ret; |
687 } | 692 } |
688 | 693 |
1974 if (option == OPT_CONVO_SHOW_TIME) | 1979 if (option == OPT_CONVO_SHOW_TIME) |
1975 gaim_gtkconv_toggle_timestamps(); | 1980 gaim_gtkconv_toggle_timestamps(); |
1976 | 1981 |
1977 if (option == OPT_CONVO_CHECK_SPELLING) | 1982 if (option == OPT_CONVO_CHECK_SPELLING) |
1978 gaim_gtkconv_toggle_spellchk(); | 1983 gaim_gtkconv_toggle_spellchk(); |
1984 | |
1985 if (option == OPT_CONVO_NO_X_ON_TAB) | |
1986 gaim_gtkconv_toggle_close_buttons(); | |
1979 } | 1987 } |
1980 | 1988 |
1981 static void set_im_option(GtkWidget *w, int option) | 1989 static void set_im_option(GtkWidget *w, int option) |
1982 { | 1990 { |
1983 im_options ^= option; | 1991 im_options ^= option; |