summaryrefslogtreecommitdiff
path: root/src/completion.h
diff options
context:
space:
mode:
authorDaniel Carl <danielcarl@gmx.de>2013-07-15 00:26:27 +0200
committerDaniel Carl <danielcarl@gmx.de>2013-07-15 00:26:27 +0200
commit3b9924a47cf86bfed3de2aca1e9439aa3092540c (patch)
tree73e18fcc23687904bd3b30daf0562fd3bcf364c6 /src/completion.h
parent9fd4f12126d0020ffc606d0161db61ebe254f869 (diff)
Avoid glist to transfer completion data to the completion.c.
The completion asked the required components to spit out the list of completion items to make a GtkListStore model and fill it with the data and to free the list. Now we let the component like history, bookmark or setting fill in the completion items self, which avoids unneeded list preparation and memory allocation.
Diffstat (limited to 'src/completion.h')
-rw-r--r--src/completion.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/completion.h b/src/completion.h
index 2337a73..7074d99 100644
--- a/src/completion.h
+++ b/src/completion.h
@@ -22,6 +22,11 @@
#include "main.h"
+enum {
+ COMPLETION_STORE_FIRST,
+ COMPLETION_STORE_SECOND
+};
+
void completion_clean(void);
gboolean completion_complete(gboolean back);