diff options
author | Xavier Claessens <xclaesse@gmail.com> | 2011-05-04 05:39:38 +0800 |
---|---|---|
committer | Xavier Claessens <xclaesse@gmail.com> | 2011-05-04 20:30:56 +0800 |
commit | d26565223775beb169f46c315f8c09d1de0b85da (patch) | |
tree | 2540b385438f8aa471b79ce68a9d503743568965 /libempathy-gtk/empathy-theme-adium.h | |
parent | f4d37063650dd562b21ff722700fff573ca5e6b6 (diff) | |
download | gsoc2013-empathy-d26565223775beb169f46c315f8c09d1de0b85da.tar gsoc2013-empathy-d26565223775beb169f46c315f8c09d1de0b85da.tar.gz gsoc2013-empathy-d26565223775beb169f46c315f8c09d1de0b85da.tar.bz2 gsoc2013-empathy-d26565223775beb169f46c315f8c09d1de0b85da.tar.lz gsoc2013-empathy-d26565223775beb169f46c315f8c09d1de0b85da.tar.xz gsoc2013-empathy-d26565223775beb169f46c315f8c09d1de0b85da.tar.zst gsoc2013-empathy-d26565223775beb169f46c315f8c09d1de0b85da.zip |
Adium: Fix selection of default variant
For theme version >= 3, a variant CSS is mandatory. If none are set
inf DefaultVariant, the first one from Variant/ should be used.
For theme version <= 2, a variant CSS is optional, and by default they
should not have one. If no variant is selected, fallback to main.css.
This also prepare needed API to select other variants
Diffstat (limited to 'libempathy-gtk/empathy-theme-adium.h')
-rw-r--r-- | libempathy-gtk/empathy-theme-adium.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libempathy-gtk/empathy-theme-adium.h b/libempathy-gtk/empathy-theme-adium.h index a8ed19de4..d0ad0170d 100644 --- a/libempathy-gtk/empathy-theme-adium.h +++ b/libempathy-gtk/empathy-theme-adium.h @@ -52,7 +52,10 @@ GType empathy_theme_adium_get_type (void) G_GNUC_CONST; EmpathyThemeAdium *empathy_theme_adium_new (EmpathyAdiumData *data); gboolean empathy_adium_path_is_valid (const gchar *path); + GHashTable *empathy_adium_info_new (const gchar *path); +const gchar * empathy_adium_info_get_default_variant (GHashTable *info); +GPtrArray * empathy_adium_info_get_available_variants (GHashTable *info); #define EMPATHY_TYPE_ADIUM_DATA (empathy_adium_data_get_type ()) GType empathy_adium_data_get_type (void) G_GNUC_CONST; |