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:
parent
7f40ed1065
commit
3b850f4472
1 changed files with 2 additions and 3 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue