summaryrefslogtreecommitdiff
path: root/src/shortcut.c
diff options
context:
space:
mode:
authorDaniel Carl <danielcarl@gmx.de>2017-03-02 01:10:12 +0100
committerDaniel Carl <danielcarl@gmx.de>2017-03-02 01:10:12 +0100
commit5bd0cba16eade607ff6298e2ff8ab6511defca7c (patch)
tree5c9fc37db21f332b7b3b1061caa9d502d3676878 /src/shortcut.c
parentaf741e150987c1e5ce04a0c6c875b7e629b3b48a (diff)
Added completion for shortcuts.
Completion for shortcuts are now available for :shortcut-remove and :shortcut-default.
Diffstat (limited to 'src/shortcut.c')
-rw-r--r--src/shortcut.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/shortcut.c b/src/shortcut.c
index 7545037..af858ab 100644
--- a/src/shortcut.c
+++ b/src/shortcut.c
@@ -157,8 +157,7 @@ char *shortcut_get_uri(Client *c, const char *string)
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);
@@ -166,7 +165,6 @@ gboolean shortcut_fill_completion(GtkListStore *store, const char *input)
return found;
}
-#endif
/**
* Retrieves th highest placeholder number used in given string.