]> mj.ucw.cz Git - leo.git/blobdiff - style.c
TODO
[leo.git] / style.c
diff --git a/style.c b/style.c
index 7c203ad902ce960315b97f809072e7f1d53eda26..96f2c2220c990f4c1794b1b00f5dc3caefa5ccfb 100644 (file)
--- a/style.c
+++ b/style.c
@@ -143,6 +143,12 @@ void style_set_by_layer(struct style_results *r, layer_t layer, struct style_pro
   style_assign(style_prop_lookup(si->hash, p->key), p);
 }
 
+struct style_prop *style_get_by_layer(struct style_results *r, layer_t layer, prop_t key)
+{
+  struct style_info *si = style_get_info(r, layer);
+  return style_get(si, key);
+}
+
 void style_set(struct style_info *si, struct style_prop *p)
 {
   style_assign(style_prop_lookup(si->hash, p->key), p);