From e5ed4d48c7fa65d6ac63f82f8ff9340b4d12e990 Mon Sep 17 00:00:00 2001 From: Peng Wu Date: Wed, 23 Apr 2014 16:38:35 +0800 Subject: write ZhuyinConfig::valueChangedCallback --- src/ZYZConfig.cc | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'src/ZYZConfig.cc') diff --git a/src/ZYZConfig.cc b/src/ZYZConfig.cc index 5725d9e..ca463ba 100644 --- a/src/ZYZConfig.cc +++ b/src/ZYZConfig.cc @@ -21,6 +21,7 @@ #include "ZYZConfig.h" #include +#include "ZYLibZhuyin.h" namespace ZY { @@ -229,4 +230,19 @@ ZhuyinConfig::valueChanged (const std::string §ion, } +void +ZhuyinConfig::valueChangedCallback (IBusConfig *config, + const gchar *section, + const gchar *name, + GVariant *value, + ZhuyinConfig *self) +{ + if (self->m_section != section) + return; + + self->valueChanged (section, name, value); + + LibZhuyinBackEnd::instance ().setZhuyinOptions (self); +} + }; -- cgit