add themes XDG support

- fix is_xdg_supported() not being in common.h
- themes are now loaded from $XDG_DATA_HOME, if and only if xdg paths
are being used
This commit is contained in:
altffour 2021-01-06 19:20:09 +03:00
commit dad31bdfde
No known key found for this signature in database
GPG key ID: B4ADFA86EDF5CCE9
4 changed files with 20 additions and 8 deletions

View file

@ -55,9 +55,11 @@ int g_input_add(GIOChannel *source, int condition,
int g_input_add_full(GIOChannel *source, int priority, int condition,
GInputFunction function, void *data);
/* return full path for ~/.irssi */
/* return if xdg is being used */
int is_xdg_supported();
/* return full path for irssi folder */
const char *get_irssi_dir(void);
/* return full path for ~/.irssi/config */
/* return full path for irssi config */
const char *get_irssi_config(void);
/* max. size for %d */