/* title */
const char *title = view_get_string_prop(view, "title");
- if (title) {
- item->normal_title = create_title(item->tree, switcher_theme,
- title, theme->osd_label_text_color,
- theme->osd_bg_color, title_y);
- item->active_title = create_title(item->tree, switcher_theme,
- title, theme->osd_label_text_color,
- switcher_theme->item_active_bg_color, title_y);
- }
+ item->normal_title = create_title(item->tree, switcher_theme,
+ title, theme->osd_label_text_color,
+ theme->osd_bg_color, title_y);
+ item->active_title = create_title(item->tree, switcher_theme,
+ title, theme->osd_label_text_color,
+ switcher_theme->item_active_bg_color, title_y);
/* icon */
int icon_size = switcher_theme->item_icon_size;