Mercurial > ~mikael > mcabber > hg
view mcabber/mcabber/compl.h @ 2190:ee3a40ffcd8b
New option: 'clear_unread_on_carbon'
If the new 'clear_unread_on_carbon' option is set to 1, clear the unread
message flag for a contact whenever an outgoing carbon copy of a message
sent to that contact is received from another client.
---
mcabber/mcabber/commands.c | 2 +-
mcabber/mcabber/hbuf.h | 1 +
mcabber/mcabber/hooks.c | 17 ++++++++++++-----
mcabber/mcabber/hooks.h | 2 +-
mcabber/mcabber/screen.c | 18 ++++++++++++++----
mcabber/mcabber/xmpp.c | 2 +-
mcabber/mcabberrc.example | 5 +++++
7 files changed, 35 insertions(+), 12 deletions(-)
author | Holger Weiß <holger@zedat.fu-berlin.de> |
---|---|
date | Thu, 23 Jul 2015 23:44:45 +0200 |
parents | 2f294c2b6778 |
children |
line wrap: on
line source
#ifndef __MCABBER_COMPL_H__ #define __MCABBER_COMPL_H__ 1 #include <glib.h> #include <mcabber/config.h> #define COMPL_CMD 1 #define COMPL_JID 2 #define COMPL_URLJID 3 // Not implemented yet #define COMPL_NAME 4 // Not implemented yet #define COMPL_STATUS 5 #define COMPL_FILENAME 6 // Not implemented yet #define COMPL_ROSTER 7 #define COMPL_BUFFER 8 #define COMPL_GROUP 9 #define COMPL_GROUPNAME 10 #define COMPL_MULTILINE 11 #define COMPL_ROOM 12 #define COMPL_RESOURCE 13 #define COMPL_AUTH 14 #define COMPL_REQUEST 15 #define COMPL_EVENTS 16 #define COMPL_EVENTSID 17 #define COMPL_PGP 18 #define COMPL_COLOR 19 #define COMPL_OTR 20 #define COMPL_OTRPOLICY 21 #define COMPL_MODULE 22 #define COMPL_CARBONS 23 /* private */ #define COMPL_MAX_ID 23 void compl_init_system(void); /* private */ #ifdef MODULES_ENABLE #define COMPL_FLAGS_SORT 0x00 #define COMPL_FLAGS_REVERSE 0x10 #define COMPL_FLAGS_APPEND 0x20 #define COMPL_FLAGS_PREPEND 0x30 guint compl_new_category(guint flags); void compl_del_category(guint id); #endif void compl_add_category_word(guint categ, const gchar *command); void compl_del_category_word(guint categ, const gchar *word); GSList *compl_get_category_list(guint categ, guint *dynlist); guint new_completion(const gchar *prefix, GSList *compl_cat, const gchar *suffix); void done_completion(void); guint cancel_completion(void); const char *complete(gboolean fwd); #endif /* __MCABBER_COMPL_H__ */ /* vim: set expandtab cindent cinoptions=>2\:2(0 sw=2 ts=2: For Vim users... */