Mercurial > hg
changeset 127:0f7ec11efd06
[/trunk] Changeset 140 by mikael
* Add /group and /help in completion system (but matching functions are not
implemented yet).
author | mikael |
---|---|
date | Thu, 28 Apr 2005 06:58:47 +0000 |
parents | d3ee9abe9ca6 |
children | 81ccb1091dd8 |
files | mcabber/src/commands.c mcabber/src/compl.h |
diffstat | 2 files changed, 7 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/mcabber/src/commands.c Thu Apr 28 06:52:31 2005 +0000 +++ b/mcabber/src/commands.c Thu Apr 28 06:58:47 2005 +0000 @@ -63,8 +63,8 @@ cmd_add("add", "Add a jabber user", COMPL_JID, 0, &do_add); cmd_add("clear", "Clear the dialog window", 0, 0, &do_clear); //cmd_add("del"); - //cmd_add("group"); - //cmd_add("help"); + cmd_add("group", "Change group display settings", COMPL_GROUP, 0, NULL); + cmd_add("help", "Display some help", COMPL_CMD, 0, NULL); //cmd_add("info"); //cmd_add("move"); //cmd_add("nick"); @@ -92,6 +92,10 @@ compl_add_category_word(COMPL_ROSTER, "hide_offline"); compl_add_category_word(COMPL_ROSTER, "show_offline"); compl_add_category_word(COMPL_ROSTER, "top"); + + // Group category + compl_add_category_word(COMPL_GROUP, "expand"); + compl_add_category_word(COMPL_GROUP, "shrink"); } // cmd_get
--- a/mcabber/src/compl.h Thu Apr 28 06:52:31 2005 +0000 +++ b/mcabber/src/compl.h Thu Apr 28 06:58:47 2005 +0000 @@ -10,6 +10,7 @@ #define COMPL_STATUS 16 #define COMPL_FILENAME 32 // Not implemented yet #define COMPL_ROSTER 64 +#define COMPL_GROUP 128 void compl_add_category_word(guint, const char *command); GSList *compl_get_category_list(guint cat_flags);