--- gtkfontsel.c~ Fri May 19 09:49:51 2000 +++ gtkfontsel.c Tue Feb 27 13:18:06 2001 @@ -111,10 +111,6 @@ #define INITIAL_METRIC GTK_FONT_METRIC_POINTS #define INITIAL_FONT_SIZE 140 -/* This is the default text shown in the preview entry, though the user - can set it. Remember that some fonts only have capital letters. */ -#define PREVIEW_TEXT "abcdefghijk ABCDEFGHIJK" - /* This is the initial and maximum height of the preview entry (it expands when large font sizes are selected). Initial height is also the minimum. */ #define INITIAL_PREVIEW_HEIGHT 44 @@ -1817,6 +1813,10 @@ gint text_height, new_height; gchar *text; XFontStruct *xfs; + +/* This is the default text shown in the preview entry, though the user + can set it. Remember that some fonts only have capital letters. */ + gchar* default_text = _("abcdefghijk ABCDEFGHIJK"); #ifdef FONTSEL_DEBUG g_message("In update_preview\n"); @@ -1846,7 +1846,7 @@ /* This sets the preview text, if it hasn't been set already. */ text = gtk_entry_get_text(GTK_ENTRY(fontsel->preview_entry)); if (strlen(text) == 0) - gtk_entry_set_text(GTK_ENTRY(fontsel->preview_entry), PREVIEW_TEXT); + gtk_entry_set_text(GTK_ENTRY(fontsel->preview_entry), default_text); gtk_entry_set_position(GTK_ENTRY(fontsel->preview_entry), 0); /* If this is a 2-byte font display a message to say it may not be