[Textbox] Add theme option to stop blinking.

This commit is contained in:
Dave Davenport 2019-11-03 11:30:32 +01:00
parent 0edcd7cfd3
commit 74f7a48c4f
1 changed files with 3 additions and 1 deletions

View File

@ -198,7 +198,9 @@ textbox* textbox_create ( widget *parent, WidgetType type, const char *name, Tex
tb->blink_timeout = 0;
tb->blink = 1;
if ( ( flags & TB_EDITABLE ) == TB_EDITABLE ) {
tb->blink_timeout = g_timeout_add ( 1200, textbox_blink, tb );
if ( rofi_theme_get_boolean ( WIDGET(tb), "blink", TRUE) ) {
tb->blink_timeout = g_timeout_add ( 1200, textbox_blink, tb );
}
tb->widget.trigger_action = textbox_editable_trigger_action;
}