comparison src/prefs.c @ 4985:088566495617

[gaim-migrate @ 5320] Removed a pair of options ("remember buddy list size and position" and "ignore new messages when away") and made "Show warning levels" and "show idle times" depend on "show buddy icons". Also, brought back the old offline.png status emblem. committer: Tailor Script <tailor@pidgin.im>
author Sean Egan <seanegan@gmail.com>
date Thu, 03 Apr 2003 17:41:08 +0000
parents 06baf1e9094c
children c54fc48e33b0
comparison
equal deleted inserted replaced
4984:b5e52f7e5302 4985:088566495617
535 } 535 }
536 536
537 GtkWidget *list_page() { 537 GtkWidget *list_page() {
538 GtkWidget *ret; 538 GtkWidget *ret;
539 GtkWidget *vbox; 539 GtkWidget *vbox;
540 GtkWidget *button, *b2;
540 ret = gtk_vbox_new(FALSE, 18); 541 ret = gtk_vbox_new(FALSE, 18);
541 gtk_container_set_border_width (GTK_CONTAINER (ret), 12); 542 gtk_container_set_border_width (GTK_CONTAINER (ret), 12);
542 543
543 vbox = make_frame (ret, _("Buddy List Toolbar")); 544 vbox = make_frame (ret, _("Buddy List Toolbar"));
544 gaim_dropdown(vbox, _("Show _buttons as:"), &blist_options, OPT_BLIST_SHOW_BUTTON_XPM | OPT_BLIST_NO_BUTTON_TEXT, 545 gaim_dropdown(vbox, _("Show _buttons as:"), &blist_options, OPT_BLIST_SHOW_BUTTON_XPM | OPT_BLIST_NO_BUTTON_TEXT,
546 _("Text"), 0, 547 _("Text"), 0,
547 _("Pictures and text"), OPT_BLIST_SHOW_BUTTON_XPM, 548 _("Pictures and text"), OPT_BLIST_SHOW_BUTTON_XPM,
548 _("None"), OPT_BLIST_NO_BUTTON_TEXT, NULL); 549 _("None"), OPT_BLIST_NO_BUTTON_TEXT, NULL);
549 550
550 vbox = make_frame (ret, _("Buddy List Window")); 551 vbox = make_frame (ret, _("Buddy List Window"));
551 gaim_button(_("_Save window size/position"), &blist_options, OPT_BLIST_SAVED_WINDOWS, vbox);
552 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);
553 553
554 vbox = make_frame (ret, _("Group Display")); 554 vbox = make_frame (ret, _("Group Display"));
555 /* gaim_button(_("Hide _groups with no online buddies"), &blist_options, OPT_BLIST_NO_MT_GRP, vbox); */ 555 /* gaim_button(_("Hide _groups with no online buddies"), &blist_options, OPT_BLIST_NO_MT_GRP, vbox); */
556 gaim_button(_("Show _numbers in groups"), &blist_options, OPT_BLIST_SHOW_GRPNUM, vbox); 556 gaim_button(_("Show _numbers in groups"), &blist_options, OPT_BLIST_SHOW_GRPNUM, vbox);
557 557
558 vbox = make_frame (ret, _("Buddy Display")); 558 vbox = make_frame (ret, _("Buddy Display"));
559 gaim_button(_("Show buddy _icons"), &blist_options, OPT_BLIST_SHOW_ICONS, vbox); 559 button = gaim_button(_("Show buddy _icons"), &blist_options, OPT_BLIST_SHOW_ICONS, vbox);
560 /* gaim_button(_("Show buddy t_ype icons"), &blist_options, OPT_BLIST_SHOW_PIXMAPS, vbox); */ 560 b2 = 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); 561 if (blist_options & OPT_BLIST_SHOW_ICONS)
562 gaim_button(_("Show idle _times"), &blist_options, OPT_BLIST_SHOW_IDLETIME, vbox); 562 gtk_widget_set_sensitive(GTK_WIDGET(b2), FALSE);
563 g_signal_connect(GTK_OBJECT(button), "clicked",
564 G_CALLBACK(gaim_gtk_toggle_sensitive), b2);
565 b2 = gaim_button(_("Show idle _times"), &blist_options, OPT_BLIST_SHOW_IDLETIME, vbox);
566 if (blist_options & OPT_BLIST_SHOW_ICONS)
567 gtk_widget_set_sensitive(GTK_WIDGET(b2), FALSE);
568 g_signal_connect(GTK_OBJECT(button), "clicked",
569 G_CALLBACK(gaim_gtk_toggle_sensitive), b2);
563 gaim_button(_("Dim i_dle buddies"), &blist_options, OPT_BLIST_GREY_IDLERS, vbox); 570 gaim_button(_("Dim i_dle buddies"), &blist_options, OPT_BLIST_GREY_IDLERS, vbox);
564 571
565 gtk_widget_show_all(ret); 572 gtk_widget_show_all(ret);
566 return ret; 573 return ret;
567 } 574 }
1026 sg = gtk_size_group_new(GTK_SIZE_GROUP_HORIZONTAL); 1033 sg = gtk_size_group_new(GTK_SIZE_GROUP_HORIZONTAL);
1027 1034
1028 vbox = make_frame (ret, _("Away")); 1035 vbox = make_frame (ret, _("Away"));
1029 gaim_button(_("_Sending messages removes away status"), &away_options, OPT_AWAY_BACK_ON_IM, vbox); 1036 gaim_button(_("_Sending messages removes away status"), &away_options, OPT_AWAY_BACK_ON_IM, vbox);
1030 gaim_button(_("_Queue new messages when away"), &away_options, OPT_AWAY_QUEUE, vbox); 1037 gaim_button(_("_Queue new messages when away"), &away_options, OPT_AWAY_QUEUE, vbox);
1031 gaim_button(_("_Ignore new conversations when away"), &away_options, OPT_AWAY_DISCARD, vbox);
1032 1038
1033 vbox = make_frame (ret, _("Auto-response")); 1039 vbox = make_frame (ret, _("Auto-response"));
1034 hbox = gtk_hbox_new(FALSE, 0); 1040 hbox = gtk_hbox_new(FALSE, 0);
1035 gtk_container_add(GTK_CONTAINER(vbox), hbox); 1041 gtk_container_add(GTK_CONTAINER(vbox), hbox);
1036 gaim_labeled_spin_button(hbox, _("Seconds before _resending:"), 1042 gaim_labeled_spin_button(hbox, _("Seconds before _resending:"),