comparison src/prefs.c @ 3473:0073a014e55b

[gaim-migrate @ 3524] Fixed font preferences, and removed the title from alert windows. committer: Tailor Script <tailor@pidgin.im>
author Sean Egan <seanegan@gmail.com>
date Fri, 30 Aug 2002 03:04:12 +0000
parents d33ec392a5e1
children cfbdfe334975
comparison
equal deleted inserted replaced
3472:d33ec392a5e1 3473:0073a014e55b
1917 void apply_font_dlg(GtkWidget *w, GtkWidget *f) 1917 void apply_font_dlg(GtkWidget *w, GtkWidget *f)
1918 { 1918 {
1919 int i = 0; 1919 int i = 0;
1920 char *fontname; 1920 char *fontname;
1921 1921
1922 fontname = g_strdup(gtk_font_selection_dialog_get_font_name(GTK_FONT_SELECTION_DIALOG(fontseld))); 1922 fontname = g_strdup(gtk_font_selection_dialog_get_font_name(GTK_FONT_SELECTION_DIALOG(f)));
1923 destroy_fontsel(0, 0); 1923 destroy_fontsel(0, 0);
1924 1924
1925 while(fontname[i] && !isdigit(fontname[i]) && i < sizeof(fontface_new)) { 1925 while(fontname[i] && !isdigit(fontname[i]) && i < sizeof(fontface_new)) {
1926 fontface_new[i] = fontname[i]; 1926 fontface_new[i] = fontname[i];
1927 i++; 1927 i++;
1928 } 1928 }
1929 1929 fontface_new[i] = 0;
1930 debug_printf("fontface_new: %s\n", fontface_new);
1930 g_free(fontname); 1931 g_free(fontname);
1931 } 1932 }