Mercurial > ~mikael > mcabber > hg
comparison mcabber/src/compl.c @ 757:ae23c8826efb
Improve completion for the "/event" command
author | Mikael Berthe <mikael@lilotux.net> |
---|---|
date | Tue, 14 Mar 2006 12:43:23 +0100 |
parents | 2f027806cd48 |
children | 89ad7b530b3c |
comparison
equal
deleted
inserted
replaced
756:12dc6bdff8c1 | 757:ae23c8826efb |
---|---|
31 | 31 |
32 #include <string.h> | 32 #include <string.h> |
33 | 33 |
34 #include "compl.h" | 34 #include "compl.h" |
35 #include "roster.h" | 35 #include "roster.h" |
36 #include "events.h" | |
36 | 37 |
37 // Completion structure | 38 // Completion structure |
38 typedef struct { | 39 typedef struct { |
39 GSList *list; // list of matches | 40 GSList *list; // list of matches |
40 guint len_prefix; // length of text already typed by the user | 41 guint len_prefix; // length of text already typed by the user |
218 return compl_list(ROSTER_TYPE_USER); | 219 return compl_list(ROSTER_TYPE_USER); |
219 } | 220 } |
220 if (cat_flags == COMPL_RESOURCE) { | 221 if (cat_flags == COMPL_RESOURCE) { |
221 return buddy_getresources(NULL); | 222 return buddy_getresources(NULL); |
222 } | 223 } |
224 if (cat_flags == COMPL_EVENTSID) { | |
225 return evs_geteventscomplist(); | |
226 } | |
223 | 227 |
224 return NULL; | 228 return NULL; |
225 } | 229 } |
226 | 230 |
227 /* vim: set expandtab cindent cinoptions=>2\:2(0: For Vim users... */ | 231 /* vim: set expandtab cindent cinoptions=>2\:2(0: For Vim users... */ |