aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/textadept.c
diff options
context:
space:
mode:
authorGravatar mitchell <70453897+667e-11@users.noreply.github.com>2020-07-26 10:39:37 -0400
committerGravatar mitchell <70453897+667e-11@users.noreply.github.com>2020-07-26 10:39:37 -0400
commitbc43ca39b259699f91011544c18c3fa287aef1f3 (patch)
tree3d5c2812821dabdca1002e1d1d0193272abf267c /src/textadept.c
parent7baaaeed639ab784683798239cece9b16a97c6a8 (diff)
Use monospaced font in the Find & Replace Pane entries.
Diffstat (limited to 'src/textadept.c')
-rw-r--r--src/textadept.c4
1 files changed, 4 insertions, 0 deletions
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;