Commit e5c0b4f5 authored by Christian Persch's avatar Christian Persch
Browse files

profile: editor: Only show font family and size in the font chooser

parent b6282897
......@@ -62,7 +62,7 @@ case "$with_gtk" in
3.0) GTK_API_VERSION=3.0
GTK_REQUIRED=3.22.27
GTK_MIN_REQUIRED=3.18
GTK_MAX_ALLOWED=3.22
GTK_MAX_ALLOWED=3.24
VTE_API_VERSION=2.91
VTE_REQUIRED=0.61.0
;;
......
......@@ -1293,6 +1293,11 @@ profile_prefs_load (const char *uuid, GSettings *profile)
terminal_exit_action_get_type, NULL);
w = (GtkWidget*) gtk_builder_get_object (builder, "font-selector");
gtk_font_chooser_set_filter_func (GTK_FONT_CHOOSER (w), monospace_filter, NULL, NULL);
#if GTK_CHECK_VERSION (3, 24, 0)
gtk_font_chooser_set_level (GTK_FONT_CHOOSER (w), GTK_FONT_CHOOSER_LEVEL_FAMILY |
GTK_FONT_CHOOSER_LEVEL_SIZE);
#endif
profile_prefs_settings_bind (profile, TERMINAL_PROFILE_FONT_KEY,
w,
"font-name", G_SETTINGS_BIND_GET | G_SETTINGS_BIND_SET);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment