Apply the input style settings if they where set.
authorDaniel Carl <danielcarl@gmx.de>
Sun, 25 Nov 2012 13:28:34 +0000 (14:28 +0100)
committerDaniel Carl <danielcarl@gmx.de>
Sun, 25 Nov 2012 13:28:34 +0000 (14:28 +0100)
Before this patch it was possible that the input box uses another font with
other line height. If the first text is type in the input box this changes
it's size. Now the fonts and colors will be applied to it immediately.

src/setting.c

index 8540dd1..9e51c7c 100644 (file)
@@ -248,6 +248,8 @@ static gboolean setting_input_style(const Setting* s)
         }
         style->input_font[type] = pango_font_description_from_string(s->arg.s);
     }
+    /* echo already visible input text to apply the new style to input box */
+    vp_echo(VP_MSG_NORMAL, FALSE, GET_TEXT());
 
     return TRUE;
 }