From bc43ca39b259699f91011544c18c3fa287aef1f3 Mon Sep 17 00:00:00 2001 From: mitchell <70453897+667e-11@users.noreply.github.com> Date: Sun, 26 Jul 2020 10:39:37 -0400 Subject: Use monospaced font in the Find & Replace Pane entries. --- src/textadept.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src') diff --git a/src/textadept.c b/src/textadept.c index b24753d9..b4f58d3d 100644 --- a/src/textadept.c +++ b/src/textadept.c @@ -2171,6 +2171,10 @@ static GtkWidget *new_combo( *entry = gtk_bin_get_child(GTK_BIN(combo)); gtk_entry_set_text(GTK_ENTRY(*entry), " "), gtk_entry_set_text(GTK_ENTRY(*entry), ""); // initialize with non-NULL + PangoFontDescription *font = pango_font_description_new(); + pango_font_description_set_family(font, "monospace"); + gtk_widget_modify_font(*entry, font); + pango_font_description_free(font); gtk_entry_set_activates_default(GTK_ENTRY(*entry), true); gtk_label_set_mnemonic_widget(GTK_LABEL(*label), *entry); return combo; -- cgit v1.2.3