Minor changes as per review

This commit is contained in:
Jari Matilainen 2017-01-13 21:06:32 +00:00
commit e80b659767
3 changed files with 7 additions and 8 deletions

View file

@ -140,10 +140,10 @@ void window_item_set_active(WINDOW_REC *window, WI_ITEM_REC *item)
WindowType window_item_get_type(WI_ITEM_REC *item)
{
g_return_val_if_fail(item != NULL, WI_TYPE_OTHER);
g_return_val_if_fail(item != NULL, WI_TYPE_OTHER);
const char *type = module_find_id_str("WINDOW ITEM TYPE", item->type);
if (g_ascii_strcasecmp(type, "CHANNEL") == 0)
if (g_ascii_strcasecmp(type, "CHANNEL") == 0)
return WI_TYPE_CHANNEL;
else if (g_ascii_strcasecmp(type, "QUERY") == 0) {
if (g_str_has_prefix("=", item->name))