mirror of
https://github.com/irssi/irssi.git
synced 2026-08-10 12:23:37 +02:00
Lots of changes again. Biggest ones:
- window's text buffer should work better - themes are almost working, you can change the text formats with /format - automatically try to rejoin the channel after 5 minutes if the join there failed because it was "temporarily unavailable" (netsplits) - generally cleaning code.. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@216 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
969cfe8abc
commit
cbdaf7d06d
63 changed files with 2471 additions and 1912 deletions
|
|
@ -1,18 +1,18 @@
|
|||
#ifndef __THEMES_H
|
||||
#define __THEMES_H
|
||||
|
||||
#include "printtext.h"
|
||||
|
||||
#define THEME_FLAG_BG_SCROLLABLE 0x0001
|
||||
#define THEME_FLAG_BG_SCALED 0x0002
|
||||
#define THEME_FLAG_BG_SHADED 0x0004
|
||||
|
||||
typedef struct
|
||||
{
|
||||
typedef struct {
|
||||
char *name;
|
||||
|
||||
char **formatlist;
|
||||
char **format;
|
||||
}
|
||||
MODULE_THEME_REC;
|
||||
int count;
|
||||
char **formats; /* in same order as in module's default formats */
|
||||
} MODULE_THEME_REC;
|
||||
|
||||
typedef struct {
|
||||
char *path;
|
||||
|
|
@ -30,10 +30,16 @@ typedef struct {
|
|||
|
||||
extern GSList *themes;
|
||||
extern THEME_REC *current_theme;
|
||||
extern GHashTable *default_formats;
|
||||
|
||||
THEME_REC *theme_create(const char *path, const char *name);
|
||||
void theme_destroy(THEME_REC *rec);
|
||||
|
||||
#define theme_register(formats) theme_register_module(MODULE_NAME, formats)
|
||||
#define theme_unregister() theme_unregister_module(MODULE_NAME)
|
||||
void theme_register_module(const char *module, FORMAT_REC *formats);
|
||||
void theme_unregister_module(const char *module);
|
||||
|
||||
void themes_init(void);
|
||||
void themes_deinit(void);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue