Mercurial > pidgin.yaz
comparison src/prefs.c @ 234:985635758c33
[gaim-migrate @ 244]
More patches from fflew. This adds a font selector to the conversation window,
among other things.
committer: Tailor Script <tailor@pidgin.im>
author | Eric Warmenhoven <eric@warmenhoven.org> |
---|---|
date | Tue, 16 May 2000 20:48:47 +0000 |
parents | 83dd297aa363 |
children | 5b28ef2b550e |
comparison
equal
deleted
inserted
replaced
233:b8c5efaef154 | 234:985635758c33 |
---|---|
332 struct away_message *a; | 332 struct away_message *a; |
333 GtkWidget *sw; | 333 GtkWidget *sw; |
334 GtkWidget *sw2; | 334 GtkWidget *sw2; |
335 GtkWidget *away_page; | 335 GtkWidget *away_page; |
336 GtkWidget *select_font; | 336 GtkWidget *select_font; |
337 GtkWidget *font_face_for_text; | |
337 | 338 |
338 GtkWidget *list_item; | 339 GtkWidget *list_item; |
339 | 340 |
340 gchar buffer[64]; | 341 gchar buffer[64]; |
341 | 342 |
726 | 727 |
727 gaim_button("Bold Text", &font_options, OPT_FONT_BOLD, fontbox); | 728 gaim_button("Bold Text", &font_options, OPT_FONT_BOLD, fontbox); |
728 gaim_button("Italics Text", &font_options, OPT_FONT_ITALIC, fontbox); | 729 gaim_button("Italics Text", &font_options, OPT_FONT_ITALIC, fontbox); |
729 gaim_button("Underlined Text", &font_options, OPT_FONT_UNDERLINE, fontbox); | 730 gaim_button("Underlined Text", &font_options, OPT_FONT_UNDERLINE, fontbox); |
730 gaim_button("Strike Text", &font_options, OPT_FONT_STRIKE, fontbox); | 731 gaim_button("Strike Text", &font_options, OPT_FONT_STRIKE, fontbox); |
731 gaim_button("Font Face for Text", &font_options, OPT_FONT_FACE, fontbox); | 732 font_face_for_text = gaim_button("Font Face for Text", &font_options, OPT_FONT_FACE, fontbox); |
732 | 733 |
733 select_font = gtk_button_new_with_label("Select Font"); | 734 select_font = gtk_button_new_with_label("Select Font"); |
734 gtk_box_pack_start(GTK_BOX(fontbox), select_font, FALSE, FALSE, 0); | 735 gtk_box_pack_start(GTK_BOX(fontbox), select_font, FALSE, FALSE, 0); |
735 gtk_signal_connect(GTK_OBJECT(select_font), "clicked", GTK_SIGNAL_FUNC(show_font_dialog), NULL); | 736 gtk_signal_connect(GTK_OBJECT(select_font), "clicked", GTK_SIGNAL_FUNC(show_font_dialog), NULL); |
737 if (!(font_options & OPT_FONT_FACE)) | |
738 gtk_widget_set_sensitive(GTK_WIDGET(select_font), FALSE); | |
736 gtk_widget_show(select_font); | 739 gtk_widget_show(select_font); |
737 | 740 gtk_signal_connect(GTK_OBJECT(font_face_for_text), "clicked", GTK_SIGNAL_FUNC(toggle_sensitive), select_font); |
741 | |
738 gtk_widget_show(appearance_page); | 742 gtk_widget_show(appearance_page); |
739 gtk_widget_show(fontbox); | 743 gtk_widget_show(fontbox); |
740 gtk_widget_show(fontframe); | 744 gtk_widget_show(fontframe); |
741 gtk_widget_show(appbox); | 745 gtk_widget_show(appbox); |
742 | 746 |