Mercurial > pidgin
changeset 1788:c8511181823e
[gaim-migrate @ 1798]
You may or may not like it, but at least it matches now.
committer: Tailor Script <tailor@pidgin.im>
author | Rob Flynn <gaim@robflynn.com> |
---|---|
date | Mon, 30 Apr 2001 22:52:45 +0000 |
parents | 5cd9ed40b34c |
children | 511af0edd6f1 |
files | ChangeLog src/prefs.c |
diffstat | 2 files changed, 47 insertions(+), 17 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog Mon Apr 30 22:34:57 2001 +0000 +++ b/ChangeLog Mon Apr 30 22:52:45 2001 +0000 @@ -3,6 +3,7 @@ version 0.11.0-pre12: * Fixed a funny bug with auto responses when queued messages are enabled. + * Redesigned the Font Options preference page * Improved Jabber chat support (it whispers now, too) version 0.11.0-pre11 (04/30/2001):
--- a/src/prefs.c Mon Apr 30 22:34:57 2001 +0000 +++ b/src/prefs.c Mon Apr 30 22:52:45 2001 +0000 @@ -1128,6 +1128,8 @@ GtkWidget *select; GtkWidget *spin; GtkObject *adjust; + GtkWidget *frame; + GtkWidget *fbox; parent = prefdialog->parent; gtk_widget_destroy(prefdialog); @@ -1144,17 +1146,37 @@ gtk_box_pack_start(GTK_BOX(box), label, FALSE, FALSE, 5); gtk_widget_show(label); - gaim_button(_("Bold Text"), &font_options, OPT_FONT_BOLD, box); - gaim_button(_("Italics Text"), &font_options, OPT_FONT_ITALIC, box); - gaim_button(_("Underlined Text"), &font_options, OPT_FONT_UNDERLINE, box); - gaim_button(_("Strike Text"), &font_options, OPT_FONT_STRIKE, box); - - sep = gtk_hseparator_new(); - gtk_box_pack_start(GTK_BOX(box), sep, FALSE, FALSE, 5); - gtk_widget_show(sep); - + frame = gtk_frame_new("Font Style"); + fbox = gtk_vbox_new(FALSE, 5); + + gaim_button(_("Bold Text"), &font_options, OPT_FONT_BOLD, fbox); + gaim_button(_("Italics Text"), &font_options, OPT_FONT_ITALIC, fbox); + gaim_button(_("Underlined Text"), &font_options, OPT_FONT_UNDERLINE, fbox); + gaim_button(_("Strike Text"), &font_options, OPT_FONT_STRIKE, fbox); + + gtk_container_set_border_width(GTK_CONTAINER(fbox), 5); + gtk_container_add(GTK_CONTAINER(frame), fbox); + + gtk_widget_show(fbox); + gtk_widget_show(frame); + + gtk_box_pack_start(GTK_BOX(box), frame, FALSE, FALSE, 5); + + /* ----------- */ + + frame = gtk_frame_new("Font Color"); + fbox = gtk_vbox_new(FALSE, 5); + + gtk_container_add(GTK_CONTAINER(frame), fbox); + gtk_container_set_border_width(GTK_CONTAINER(fbox), 5); + + gtk_widget_show(fbox); + gtk_widget_show(frame); + + gtk_box_pack_start(GTK_BOX(box), frame, FALSE, FALSE, 5); + hbox = gtk_hbox_new(FALSE, 5); - gtk_box_pack_start(GTK_BOX(box), hbox, FALSE, FALSE, 5); + gtk_box_pack_start(GTK_BOX(fbox), hbox, FALSE, FALSE, 5); gtk_widget_show(hbox); pref_fg_picture = show_color_pref(hbox, TRUE); @@ -1172,7 +1194,7 @@ pref_fg_picture); hbox = gtk_hbox_new(FALSE, 5); - gtk_box_pack_start(GTK_BOX(box), hbox, FALSE, FALSE, 5); + gtk_box_pack_start(GTK_BOX(fbox), hbox, FALSE, FALSE, 5); gtk_widget_show(hbox); pref_bg_picture = show_color_pref(hbox, FALSE); @@ -1189,14 +1211,15 @@ gtk_signal_connect(GTK_OBJECT(button), "clicked", GTK_SIGNAL_FUNC(update_color), pref_bg_picture); - sep = gtk_hseparator_new(); - gtk_box_pack_start(GTK_BOX(box), sep, FALSE, FALSE, 5); - gtk_widget_show(sep); + /* ----------- */ + + frame = gtk_frame_new("Font Face"); + fbox = gtk_vbox_new(FALSE, 5); hbox = gtk_hbox_new(FALSE, 5); - gtk_box_pack_start(GTK_BOX(box), hbox, FALSE, FALSE, 5); + gtk_box_pack_start(GTK_BOX(fbox), hbox, FALSE, FALSE, 5); gtk_widget_show(hbox); - + button = gaim_button(_("Font Face for Text"), &font_options, OPT_FONT_FACE, hbox); select = picture_button(prefs, _("Select"), fontface2_xpm); @@ -1209,7 +1232,7 @@ gtk_signal_connect(GTK_OBJECT(button), "clicked", GTK_SIGNAL_FUNC(toggle_sensitive), select); hbox = gtk_hbox_new(FALSE, 5); - gtk_box_pack_start(GTK_BOX(box), hbox, FALSE, FALSE, 5); + gtk_box_pack_start(GTK_BOX(fbox), hbox, FALSE, FALSE, 5); gtk_widget_show(hbox); button = gaim_button(_("Font Size for Text"), &font_options, OPT_FONT_SIZE, hbox); @@ -1225,6 +1248,12 @@ GTK_WIDGET(spin)); gtk_widget_show(spin); + gtk_container_add(GTK_CONTAINER(frame), fbox); + gtk_container_set_border_width(GTK_CONTAINER(fbox), 5); + gtk_box_pack_start(GTK_BOX(box), frame, FALSE, FALSE, 5); + gtk_widget_show(fbox); + gtk_widget_show(frame); + gtk_widget_show(prefdialog); }