summaryrefslogtreecommitdiff
path: root/src/terminal-app.c
diff options
context:
space:
mode:
authorScott Balneaves <[email protected]>2013-05-21 12:51:01 -0500
committerScott Balneaves <[email protected]>2013-05-21 12:51:01 -0500
commit6eefb55ebef4717c9b66423c8a525d77fe66e4bb (patch)
tree5889347c36cca6608b9426dd93f37c8785f77987 /src/terminal-app.c
parentd447ebdf19cc56d601c5ef2c46a55f301ecbeda6 (diff)
downloadmate-terminal-6eefb55ebef4717c9b66423c8a525d77fe66e4bb.tar.bz2
mate-terminal-6eefb55ebef4717c9b66423c8a525d77fe66e4bb.tar.xz
More general fix for #18: actually test if the the font content is empty
Diffstat (limited to 'src/terminal-app.c')
-rw-r--r--src/terminal-app.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/terminal-app.c b/src/terminal-app.c
index baac703..91b3d02 100644
--- a/src/terminal-app.c
+++ b/src/terminal-app.c
@@ -950,6 +950,9 @@ terminal_app_system_font_notify_cb (GSettings *settings,
font = DEFAULT_MONOSPACE_FONT;
g_assert (font != NULL);
+ if (font && (strlen (font) == 0)) /* empty string */
+ font = DEFAULT_MONOSPACE_FONT;
+
font_desc = pango_font_description_from_string (font);
if (app->system_font_desc &&
pango_font_description_equal (app->system_font_desc, font_desc))