summaryrefslogtreecommitdiff
path: root/src/lib/font.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2015-06-09 16:38:14 +0100
committerCarl Hetherington <cth@carlh.net>2015-06-09 16:38:14 +0100
commitacd023e023cfd0c4ccde3d658d038083e2071661 (patch)
treee9dee176713003eb65cd02d7ce4c71569239a342 /src/lib/font.h
parent2a01820de9229fd778787421ec4f7bbf1e4b8bf1 (diff)
Update hints properly when fonts are changed.
Diffstat (limited to 'src/lib/font.h')
-rw-r--r--src/lib/font.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/lib/font.h b/src/lib/font.h
index 0dedf7e49..0dd63448e 100644
--- a/src/lib/font.h
+++ b/src/lib/font.h
@@ -22,6 +22,7 @@
#include <libcxml/cxml.h>
#include <boost/optional.hpp>
+#include <boost/signals2.hpp>
#include <boost/filesystem.hpp>
#include <string>
@@ -45,8 +46,11 @@ public:
void set_file (boost::filesystem::path file) {
_file = file;
+ Changed ();
}
+ boost::signals2::signal<void()> Changed;
+
private:
/** Font ID, used to describe it in the subtitle content */
std::string _id;