1
0
Fork 0
mirror of https://github.com/davatorium/rofi.git synced 2024-11-11 13:50:48 -05:00

Fix theme_name generator for textbox

This commit is contained in:
Dave Davenport 2016-12-11 18:00:45 +01:00
parent 7f40ed1065
commit 3b850f4472

View file

@ -104,7 +104,6 @@ textbox* textbox_create ( const char *name, TextboxFlags flags, short x, short y
textbox *tb = g_slice_new0 ( textbox );
tb->widget.name = g_strdup ( name );
tb->theme_name = g_strdup(name);
tb->widget.draw = textbox_draw;
tb->widget.free = textbox_free;
tb->widget.resize = textbox_resize;
@ -180,10 +179,10 @@ void textbox_font ( textbox *tb, TextBoxFontType tbft )
tb->color_fg = color->fg;
break;
}
if ( tb->tbft != tbft ) {
tb->update = TRUE;
if ( tb->tbft != tbft || tb->theme_name == NULL ) {
g_free ( tb->theme_name);
tb->theme_name = g_strjoin ("." , tb->widget.name, mode, state, NULL );
tb->update = TRUE;
widget_queue_redraw ( WIDGET ( tb ) );
}
tb->tbft = tbft;