mirror of
https://github.com/irssi/irssi.git
synced 2026-08-11 12:53:42 +02:00
Added support to define new default abstracts at runtime.
Irssi::abstracts_register([key => value, ...]); git-svn-id: http://svn.irssi.org/repos/irssi/trunk@3079 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
3a1ceaf3d0
commit
9c18cb00e7
3 changed files with 87 additions and 20 deletions
|
|
@ -48,6 +48,8 @@ THEME_REC *theme_load(const char *name);
|
|||
void theme_register_module(const char *module, FORMAT_REC *formats);
|
||||
void theme_unregister_module(const char *module);
|
||||
|
||||
void theme_set_default_abstract(const char *key, const char *value);
|
||||
|
||||
#define EXPAND_FLAG_IGNORE_REPLACES 0x01 /* don't use the character replaces when expanding */
|
||||
#define EXPAND_FLAG_IGNORE_EMPTY 0x02 /* if abstract's argument is empty, or the argument is a $variable that is empty, don't try to expand it (ie. {xx }, but not {xx}) */
|
||||
#define EXPAND_FLAG_RECURSIVE_MASK 0x0f
|
||||
|
|
@ -61,6 +63,8 @@ char *theme_format_expand_data(THEME_REC *theme, const char **format,
|
|||
char *save_last_fg, char *save_last_bg,
|
||||
int flags);
|
||||
|
||||
void themes_reload(void);
|
||||
|
||||
void themes_init(void);
|
||||
void themes_deinit(void);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue