diff options
author | Dave Davenport <qball@gmpclient.org> | 2019-11-03 11:30:32 +0100 |
---|---|---|
committer | Dave Davenport <qball@gmpclient.org> | 2019-11-03 11:31:08 +0100 |
commit | 74f7a48c4fa0d0977ad12f7cc628a5816c59568d (patch) | |
tree | 8a21bf019f007437dc75ae8e82e9de2b2c8a25e9 | |
parent | 0edcd7cfd393950ee480b547c5f1acb4d2b39f8b (diff) |
[Textbox] Add theme option to stop blinking.
-rw-r--r-- | source/widgets/textbox.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source/widgets/textbox.c b/source/widgets/textbox.c index a2264272..69506558 100644 --- a/source/widgets/textbox.c +++ b/source/widgets/textbox.c @@ -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; } |