1
0
Fork 0
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:
Dave Davenport 2017-01-01 02:00:54 +01:00
parent e29f89e401
commit f43bf3dc6a

View file

@ -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 ) );