found = bookmark_fill_tag_completion(store, token);
break;
- case EX_SCR:
- /* TODO fill shortcut completion */
+ case EX_SCR: /* Fallthrough */
+ case EX_SCD:
+ found = shortcut_fill_completion(c, store, token);
break;
case EX_HANDREM:
return uri;
}
-#if 0
-gboolean shortcut_fill_completion(GtkListStore *store, const char *input)
+gboolean shortcut_fill_completion(Client *c, GtkListStore *store, const char *input)
{
GList *src = g_hash_table_get_keys(c->shortcut.table);
gboolean found = util_fill_completion(store, input, src);
return found;
}
-#endif
/**
* Retrieves th highest placeholder number used in given string.
gboolean shortcut_remove(Client *c, const char *key);
gboolean shortcut_set_default(Client *c, const char *key);
char *shortcut_get_uri(Client *c, const char *key);
-/*gboolean shortcut_fill_completion(Client *c, GtkListStore *store, const char *input);*/
+gboolean shortcut_fill_completion(Client *c, GtkListStore *store, const char *input);
#endif /* end of include guard: _SHORTCUT_H */