mirror of
https://github.com/davatorium/rofi.git
synced 2024-12-09 14:09:41 -05:00
On textbox update tell it to update parent.
This commit is contained in:
parent
e29f89e401
commit
f43bf3dc6a
1 changed files with 3 additions and 1 deletions
|
@ -222,7 +222,9 @@ void textbox_text ( textbox *tb, const char *text )
|
|||
__textbox_update_pango_text ( tb );
|
||||
if ( tb->flags & TB_AUTOWIDTH ) {
|
||||
textbox_moveresize ( tb, tb->widget.x, tb->widget.y, tb->widget.w, tb->widget.h );
|
||||
widget_update ( WIDGET ( tb ) );
|
||||
if ( WIDGET(tb)->parent ){
|
||||
widget_update ( WIDGET ( tb )->parent );
|
||||
}
|
||||
}
|
||||
|
||||
tb->cursor = MAX ( 0, MIN ( ( int ) g_utf8_strlen ( tb->text, -1 ), tb->cursor ) );
|
||||
|
|
Loading…
Reference in a new issue