summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Davenport <qball@gmpclient.org>2019-11-03 11:30:32 +0100
committerDave Davenport <qball@gmpclient.org>2019-11-03 11:31:08 +0100
commit74f7a48c4fa0d0977ad12f7cc628a5816c59568d (patch)
tree8a21bf019f007437dc75ae8e82e9de2b2c8a25e9
parent0edcd7cfd393950ee480b547c5f1acb4d2b39f8b (diff)
[Textbox] Add theme option to stop blinking.
-rw-r--r--source/widgets/textbox.c4
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;
}