comparison src/prefs.c @ 4045:ee8cbe596e9a

[gaim-migrate @ 4253] "Luke, Attached is the highly craved (by others, I might note) cleanup to the Preferences dialog, to apply proper "sentence capitalization" to the vast array of options present." --John B . Silvestri (silvestrij) consistency is a good thing, this makes prefs follow the gnome HIG a little more closely. committer: Tailor Script <tailor@pidgin.im>
author Luke Schierer <lschiere@pidgin.im>
date Wed, 04 Dec 2002 06:10:02 +0000
parents a3ec0146c73e
children 4a3f863b041f
comparison
equal deleted inserted replaced
4044:133cf6424c53 4045:ee8cbe596e9a
175 gtk_container_set_border_width (GTK_CONTAINER (ret), 12); 175 gtk_container_set_border_width (GTK_CONTAINER (ret), 12);
176 176
177 vbox = make_frame(ret, _("Interface Options")); 177 vbox = make_frame(ret, _("Interface Options"));
178 /* This shouldn't have to wait for user to click OK or APPLY or whatnot */ 178 /* This shouldn't have to wait for user to click OK or APPLY or whatnot */
179 /* This really shouldn't be in preferences at all */ 179 /* This really shouldn't be in preferences at all */
180 debugbutton = gaim_button(_("Show _Debug Window"), &misc_options, OPT_MISC_DEBUG, vbox); 180 debugbutton = gaim_button(_("Show _debug window"), &misc_options, OPT_MISC_DEBUG, vbox);
181 181
182 182
183 gtk_widget_show_all(ret); 183 gtk_widget_show_all(ret);
184 return ret; 184 return ret;
185 } 185 }
315 vbox = make_frame (ret, _("Buttons")); 315 vbox = make_frame (ret, _("Buttons"));
316 gaim_button(_("_Hide IM/Info/Chat buttons"), &blist_options, OPT_BLIST_NO_BUTTONS, vbox); 316 gaim_button(_("_Hide IM/Info/Chat buttons"), &blist_options, OPT_BLIST_NO_BUTTONS, vbox);
317 gaim_button(_("Show _pictures on buttons"), &blist_options, OPT_BLIST_SHOW_BUTTON_XPM, vbox); 317 gaim_button(_("Show _pictures on buttons"), &blist_options, OPT_BLIST_SHOW_BUTTON_XPM, vbox);
318 318
319 vbox = make_frame (ret, _("Buddy List Window")); 319 vbox = make_frame (ret, _("Buddy List Window"));
320 gaim_button(_("_Save Window Size/Position"), &blist_options, OPT_BLIST_SAVED_WINDOWS, vbox); 320 gaim_button(_("_Save window size/position"), &blist_options, OPT_BLIST_SAVED_WINDOWS, vbox);
321 gaim_button(_("_Raise Window on Events"), &blist_options, OPT_BLIST_POPUP, vbox); 321 gaim_button(_("_Raise window on events"), &blist_options, OPT_BLIST_POPUP, vbox);
322 322
323 vbox = make_frame (ret, _("Group Display")); 323 vbox = make_frame (ret, _("Group Display"));
324 gaim_button(_("Hide _groups with no online buddies"), &blist_options, OPT_BLIST_NO_MT_GRP, vbox); 324 gaim_button(_("Hide _groups with no online buddies"), &blist_options, OPT_BLIST_NO_MT_GRP, vbox);
325 gaim_button(_("Show _numbers in groups"), &blist_options, OPT_BLIST_SHOW_GRPNUM, vbox); 325 gaim_button(_("Show _numbers in groups"), &blist_options, OPT_BLIST_SHOW_GRPNUM, vbox);
326 326
358 gaim_button(_("_Raise windows on events"), &im_options, OPT_IM_POPUP, vbox); 358 gaim_button(_("_Raise windows on events"), &im_options, OPT_IM_POPUP, vbox);
359 gaim_button(_("Hide window on _send"), &im_options, OPT_IM_POPDOWN, vbox); 359 gaim_button(_("Hide window on _send"), &im_options, OPT_IM_POPDOWN, vbox);
360 gtk_widget_show (vbox); 360 gtk_widget_show (vbox);
361 361
362 vbox = make_frame (ret, _("Buddy Icons")); 362 vbox = make_frame (ret, _("Buddy Icons"));
363 gaim_button(_("Hide Buddy _Icons"), &im_options, OPT_IM_HIDE_ICONS, vbox); 363 gaim_button(_("Hide buddy _icons"), &im_options, OPT_IM_HIDE_ICONS, vbox);
364 gaim_button(_("Disable Buddy Icon A_nimation"), &im_options, OPT_IM_NO_ANIMATION, vbox); 364 gaim_button(_("Disable buddy icon a_nimation"), &im_options, OPT_IM_NO_ANIMATION, vbox);
365 365
366 vbox = make_frame (ret, _("Display")); 366 vbox = make_frame (ret, _("Display"));
367 gaim_button(_("Show _logins in window"), &im_options, OPT_IM_LOGON, vbox); 367 gaim_button(_("Show _logins in window"), &im_options, OPT_IM_LOGON, vbox);
368 368
369 vbox = make_frame (ret, _("Typing Notification")); 369 vbox = make_frame (ret, _("Typing Notification"));
389 389
390 vbox = make_frame (ret, _("Window")); 390 vbox = make_frame (ret, _("Window"));
391 dd = gaim_dropdown(vbox, "Show _buttons as:", &chat_options, OPT_CHAT_BUTTON_TEXT | OPT_CHAT_BUTTON_XPM, 391 dd = gaim_dropdown(vbox, "Show _buttons as:", &chat_options, OPT_CHAT_BUTTON_TEXT | OPT_CHAT_BUTTON_XPM,
392 "Pictures", OPT_CHAT_BUTTON_XPM, 392 "Pictures", OPT_CHAT_BUTTON_XPM,
393 "Text", OPT_CHAT_BUTTON_TEXT, 393 "Text", OPT_CHAT_BUTTON_TEXT,
394 "Pictures and Text", OPT_CHAT_BUTTON_XPM | OPT_CHAT_BUTTON_TEXT, NULL); 394 "Pictures and text", OPT_CHAT_BUTTON_XPM | OPT_CHAT_BUTTON_TEXT, NULL);
395 gtk_size_group_add_widget(sg, dd); 395 gtk_size_group_add_widget(sg, dd);
396 gtk_misc_set_alignment(GTK_MISC(dd), 0, 0); 396 gtk_misc_set_alignment(GTK_MISC(dd), 0, 0);
397 gaim_labeled_spin_button(vbox, _("New window _width:"), &buddy_chat_size.width, 25, 9999, sg); 397 gaim_labeled_spin_button(vbox, _("New window _width:"), &buddy_chat_size.width, 25, 9999, sg);
398 gaim_labeled_spin_button(vbox, _("New window _height:"), &buddy_chat_size.height, 25, 9999, sg); 398 gaim_labeled_spin_button(vbox, _("New window _height:"), &buddy_chat_size.height, 25, 9999, sg);
399 gaim_labeled_spin_button(vbox, _("_Entry widget height:"), &buddy_chat_size.entry_height, 25, 9999, sg); 399 gaim_labeled_spin_button(vbox, _("_Entry widget height:"), &buddy_chat_size.entry_height, 25, 9999, sg);
400 gaim_button(_("_Raise windows on events"), &chat_options, OPT_CHAT_POPUP, vbox); 400 gaim_button(_("_Raise windows on events"), &chat_options, OPT_CHAT_POPUP, vbox);
401 401
402 vbox = make_frame (ret, _("Tab Completion")); 402 vbox = make_frame (ret, _("Tab Completion"));
403 gaim_button(_("_Tab-Complete Nicks"), &chat_options, OPT_CHAT_TAB_COMPLETE, vbox); 403 gaim_button(_("_Tab-complete nicks"), &chat_options, OPT_CHAT_TAB_COMPLETE, vbox);
404 gaim_button(_("_Old-Style Tab Completion"), &chat_options, OPT_CHAT_OLD_STYLE_TAB, vbox); 404 gaim_button(_("_Old-style tab completion"), &chat_options, OPT_CHAT_OLD_STYLE_TAB, vbox);
405 405
406 vbox = make_frame (ret, _("Display")); 406 vbox = make_frame (ret, _("Display"));
407 gaim_button(_("_Show people joining/leaving in window"), &chat_options, OPT_CHAT_LOGON, vbox); 407 gaim_button(_("_Show people joining/leaving in window"), &chat_options, OPT_CHAT_LOGON, vbox);
408 gaim_button(_("Co_lorize screennames"), &chat_options, OPT_CHAT_COLORIZE, vbox); 408 gaim_button(_("Co_lorize screennames"), &chat_options, OPT_CHAT_COLORIZE, vbox);
409 409
420 gtk_container_set_border_width (GTK_CONTAINER (ret), 12); 420 gtk_container_set_border_width (GTK_CONTAINER (ret), 12);
421 421
422 sg = gtk_size_group_new(GTK_SIZE_GROUP_HORIZONTAL); 422 sg = gtk_size_group_new(GTK_SIZE_GROUP_HORIZONTAL);
423 423
424 vbox = make_frame (ret, _("IM Tabs")); 424 vbox = make_frame (ret, _("IM Tabs"));
425 dd = gaim_dropdown(vbox, "Tab _Placement:", &im_options, OPT_IM_SIDE_TAB | OPT_IM_BR_TAB, 425 dd = gaim_dropdown(vbox, "Tab _placement:", &im_options, OPT_IM_SIDE_TAB | OPT_IM_BR_TAB,
426 "Top", 0, 426 "Top", 0,
427 "Bottom", OPT_IM_BR_TAB, 427 "Bottom", OPT_IM_BR_TAB,
428 "Left", OPT_IM_SIDE_TAB, 428 "Left", OPT_IM_SIDE_TAB,
429 "Right", OPT_IM_BR_TAB | OPT_IM_SIDE_TAB, NULL); 429 "Right", OPT_IM_BR_TAB | OPT_IM_SIDE_TAB, NULL);
430 gtk_size_group_add_widget(sg, dd); 430 gtk_size_group_add_widget(sg, dd);
431 gaim_button(_("Show all _Instant Messages in one tabbed\nwindow"), &im_options, OPT_IM_ONE_WINDOW, vbox); 431 gaim_button(_("Show all _instant messages in one tabbed\nwindow"), &im_options, OPT_IM_ONE_WINDOW, vbox);
432 gaim_button(_("Show a_liases in tabs/titles"), &im_options, OPT_IM_ALIAS_TAB, vbox); 432 gaim_button(_("Show a_liases in tabs/titles"), &im_options, OPT_IM_ALIAS_TAB, vbox);
433 433
434 vbox = make_frame (ret, _("Chat Tabs")); 434 vbox = make_frame (ret, _("Chat Tabs"));
435 dd = gaim_dropdown(vbox, "Tab _Placement:", &chat_options, OPT_CHAT_SIDE_TAB | OPT_CHAT_BR_TAB, 435 dd = gaim_dropdown(vbox, "Tab _placement:", &chat_options, OPT_CHAT_SIDE_TAB | OPT_CHAT_BR_TAB,
436 "Top", 0, 436 "Top", 0,
437 "Bottom", OPT_CHAT_BR_TAB, 437 "Bottom", OPT_CHAT_BR_TAB,
438 "Left", OPT_CHAT_SIDE_TAB, 438 "Left", OPT_CHAT_SIDE_TAB,
439 "Right", OPT_CHAT_SIDE_TAB | OPT_CHAT_BR_TAB, NULL); 439 "Right", OPT_CHAT_SIDE_TAB | OPT_CHAT_BR_TAB, NULL);
440 gtk_size_group_add_widget(sg, dd); 440 gtk_size_group_add_widget(sg, dd);
443 443
444 vbox = make_frame (ret, _("Combined Tabs")); 444 vbox = make_frame (ret, _("Combined Tabs"));
445 gaim_button(_("Show IMs and chats in _same tabbed\nwindow."), &convo_options, OPT_CONVO_COMBINE, vbox); 445 gaim_button(_("Show IMs and chats in _same tabbed\nwindow."), &convo_options, OPT_CONVO_COMBINE, vbox);
446 446
447 vbox = make_frame (ret, _("Buddy List Tabs")); 447 vbox = make_frame (ret, _("Buddy List Tabs"));
448 dd = gaim_dropdown(vbox, "Tab _Placement:", &blist_options, OPT_BLIST_BOTTOM_TAB, 448 dd = gaim_dropdown(vbox, "Tab _placement:", &blist_options, OPT_BLIST_BOTTOM_TAB,
449 "Top", 0, 449 "Top", 0,
450 "Bottom", OPT_BLIST_BOTTOM_TAB, NULL); 450 "Bottom", OPT_BLIST_BOTTOM_TAB, NULL);
451 gtk_size_group_add_widget(sg, dd); 451 gtk_size_group_add_widget(sg, dd);
452 452
453 gtk_widget_show_all(ret); 453 gtk_widget_show_all(ret);
464 464
465 ret = gtk_vbox_new(FALSE, 18); 465 ret = gtk_vbox_new(FALSE, 18);
466 gtk_container_set_border_width (GTK_CONTAINER (ret), 12); 466 gtk_container_set_border_width (GTK_CONTAINER (ret), 12);
467 467
468 vbox = make_frame (ret, _("Proxy Type")); 468 vbox = make_frame (ret, _("Proxy Type"));
469 gaim_dropdown(vbox, "Proxy _Type:", &proxytype, -1, 469 gaim_dropdown(vbox, "Proxy _type:", &proxytype, -1,
470 "No Proxy", PROXY_NONE, 470 "No proxy", PROXY_NONE,
471 "SOCKS 4", PROXY_SOCKS4, 471 "SOCKS 4", PROXY_SOCKS4,
472 "SOCKS 5", PROXY_SOCKS5, 472 "SOCKS 5", PROXY_SOCKS5,
473 "HTTP", PROXY_HTTP, NULL); 473 "HTTP", PROXY_HTTP, NULL);
474 474
475 table = gtk_table_new(2, 2, FALSE); 475 table = gtk_table_new(2, 2, FALSE);
615 GtkWidget *vbox; 615 GtkWidget *vbox;
616 ret = gtk_vbox_new(FALSE, 18); 616 ret = gtk_vbox_new(FALSE, 18);
617 gtk_container_set_border_width (GTK_CONTAINER (ret), 12); 617 gtk_container_set_border_width (GTK_CONTAINER (ret), 12);
618 618
619 vbox = make_frame (ret, _("Message Logs")); 619 vbox = make_frame (ret, _("Message Logs"));
620 gaim_button(_("_Log all Instant Messages"), &logging_options, OPT_LOG_CONVOS, vbox); 620 gaim_button(_("_Log all instant messages"), &logging_options, OPT_LOG_CONVOS, vbox);
621 gaim_button(_("Log all c_hats"), &logging_options, OPT_LOG_CHATS, vbox); 621 gaim_button(_("Log all c_hats"), &logging_options, OPT_LOG_CHATS, vbox);
622 gaim_button(_("Strip _HTML from logs"), &logging_options, OPT_LOG_STRIP_HTML, vbox); 622 gaim_button(_("Strip _HTML from logs"), &logging_options, OPT_LOG_STRIP_HTML, vbox);
623 623
624 vbox = make_frame (ret, _("System Logs")); 624 vbox = make_frame (ret, _("System Logs"));
625 gaim_button(_("Log when buddies _sign on/sign off"), &logging_options, OPT_LOG_BUDDY_SIGNON, 625 gaim_button(_("Log when buddies _sign on/sign off"), &logging_options, OPT_LOG_BUDDY_SIGNON,
668 #ifndef _WIN32 668 #ifndef _WIN32
669 vbox = make_frame (ret, _("Sound Method")); 669 vbox = make_frame (ret, _("Sound Method"));
670 dd = gaim_dropdown(vbox, "_Method", &sound_options, OPT_SOUND_BEEP | 670 dd = gaim_dropdown(vbox, "_Method", &sound_options, OPT_SOUND_BEEP |
671 OPT_SOUND_ESD | OPT_SOUND_ARTSC | OPT_SOUND_NAS | OPT_SOUND_NORMAL | 671 OPT_SOUND_ESD | OPT_SOUND_ARTSC | OPT_SOUND_NAS | OPT_SOUND_NORMAL |
672 OPT_SOUND_CMD, 672 OPT_SOUND_CMD,
673 "Console Beep", OPT_SOUND_BEEP, 673 "Console beep", OPT_SOUND_BEEP,
674 #ifdef ESD_SOUND 674 #ifdef ESD_SOUND
675 "ESD", OPT_SOUND_ESD, 675 "ESD", OPT_SOUND_ESD,
676 #endif /* ESD_SOUND */ 676 #endif /* ESD_SOUND */
677 "ArtsC", OPT_SOUND_ARTSC, 677 "ArtsC", OPT_SOUND_ARTSC,
678 "NAS", OPT_SOUND_NAS, 678 "NAS", OPT_SOUND_NAS,
737 737
738 if (away_options & OPT_AWAY_NO_AUTO_RESP) 738 if (away_options & OPT_AWAY_NO_AUTO_RESP)
739 gtk_widget_set_sensitive(hbox, FALSE); 739 gtk_widget_set_sensitive(hbox, FALSE);
740 740
741 vbox = make_frame (ret, _("Idle")); 741 vbox = make_frame (ret, _("Idle"));
742 dd = gaim_dropdown(vbox, "Idle _Time Reporting:", &report_idle, -1, 742 dd = gaim_dropdown(vbox, "Idle _time reporting:", &report_idle, -1,
743 "None", IDLE_NONE, 743 "None", IDLE_NONE,
744 "Gaim Usage", IDLE_GAIM, 744 "Gaim usage", IDLE_GAIM,
745 #ifdef USE_SCREENSAVER 745 #ifdef USE_SCREENSAVER
746 #ifndef _WIN32 746 #ifndef _WIN32
747 "X Usage", IDLE_SCREENSAVER, 747 "X usage", IDLE_SCREENSAVER,
748 #else 748 #else
749 "Windows Usage", IDLE_SCREENSAVER, 749 "Windows usage", IDLE_SCREENSAVER,
750 #endif 750 #endif
751 #endif 751 #endif
752 NULL); 752 NULL);
753 gtk_size_group_add_widget(sg, dd); 753 gtk_size_group_add_widget(sg, dd);
754 gtk_misc_set_alignment(GTK_MISC(dd), 0, 0); 754 gtk_misc_set_alignment(GTK_MISC(dd), 0, 0);