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:
parent
0edcd7cfd3
commit
74f7a48c4f
1 changed files with 3 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue