diff options
author | Dave Davenport <qball@gmpclient.org> | 2016-02-06 13:06:58 +0100 |
---|---|---|
committer | Dave Davenport <qball@gmpclient.org> | 2016-02-06 13:06:58 +0100 |
commit | 312ca274fc4a12814a429a7b59cd5ebb840f643a (patch) | |
tree | 88122ed7bb8cc2ceda3e70222051422a1b63dd3a /source/textbox.c | |
parent | 531f3f884ac87b7a2f8d5494acbe255deee20bed (diff) |
Split of files.
Diffstat (limited to 'source/textbox.c')
-rw-r--r-- | source/textbox.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/source/textbox.c b/source/textbox.c index a9b80899..75102ec6 100644 --- a/source/textbox.c +++ b/source/textbox.c @@ -59,12 +59,13 @@ typedef struct _RowColor RowColor colors[num_states]; PangoContext *p_context = NULL; -static gboolean textbox_blink ( textbox *tb ) +static gboolean textbox_blink ( gpointer data ) { + textbox *tb = (textbox *) data; if ( tb->blink < 2 ) { tb->blink = !tb->blink; tb->update = TRUE; - menu_state_queue_redraw ( ); + rofi_view_queue_redraw ( ); } else { tb->blink--; @@ -103,7 +104,7 @@ textbox* textbox_create ( TextboxFlags flags, short x, short y, short w, short h tb->blink_timeout = 0; tb->blink = 1; if ( ( flags & TB_EDITABLE ) == TB_EDITABLE ) { - tb->blink_timeout = g_timeout_add ( 1200, textbox_blink, tb ); + tb->blink_timeout = g_timeout_add ( 1200, textbox_blink, tb ); } return tb; |