Mercurial > ~mikael > mcabber > hg
view mcabber/src/utils.h @ 880:ea983a945eba
/buffer scroll_unlock: Don't always jump to the end of the buffer
If there is no pending message, do not jump to the bottom of the buffer.
For special buffers (e.g. for the status buffer) pending flag is currently
disabled so we jump unconditionally.
author | Mikael Berthe <mikael@lilotux.net> |
---|---|
date | Sat, 27 May 2006 15:59:05 +0200 |
parents | 8f8d8f8157a2 |
children | 527d6f234924 |
line wrap: on
line source
#ifndef __UTILS_H__ #define __UTILS_H__ 1 #include <config.h> extern char *LocaleCharSet; #define to_utf8(s) ((s) ? g_locale_to_utf8((s), -1, NULL,NULL,NULL) : NULL) #define from_utf8(s) ((s) ? g_convert_with_fallback((s), -1, LocaleCharSet, \ "UTF-8", NULL,NULL,NULL,NULL) : NULL) void ut_InitDebug(unsigned int level, const char *file); void ut_WriteLog(unsigned int flag, const char *data); int checkset_perm(const char *name, unsigned int setmode); const char *ut_get_tmpdir(void); int to_iso8601(char *dststr, time_t timestamp); time_t from_iso8601(const char *timestamp, int utc); inline void safe_usleep(unsigned int usec); /* Only for delays < 1s */ int check_jid_syntax(char *jid); void mc_strtolower(char *str); void strip_arg_special_chars(char *s); char **split_arg(const char *arg, unsigned int n, int dontstriplast); void free_arg_lst(char **arglst); void replace_nl_with_dots(char *bufstr); char *ut_expand_tabs(const char *text); #if !defined (HAVE_STRCASESTR) char *strcasestr(const char *haystack, const char *needle); #endif #endif // __UTILS_H__ /* vim: set expandtab cindent cinoptions=>2\:2(0: For Vim users... */