1
0
Fork 0
mirror of https://github.com/davatorium/rofi.git synced 2024-11-25 13:55:34 -05:00

[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

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;
}