summaryrefslogtreecommitdiffstats
path: root/src/PYConfig.h
diff options
context:
space:
mode:
authorPeng Huang <shawn.p.huang@gmail.com>2010-07-12 18:14:46 +0800
committerPeng Huang <shawn.p.huang@gmail.com>2010-10-29 17:16:55 +0900
commit2924d05cf008f7c7794d4f4b65940a70ba2247bd (patch)
tree84cd658e1eda51457fc93d27e2b33f4b91dc9b03 /src/PYConfig.h
parentbcf86cbf44e2a9658fda42724ed066f3f05ced79 (diff)
downloadibus-libpinyin-2924d05cf008f7c7794d4f4b65940a70ba2247bd.tar.gz
ibus-libpinyin-2924d05cf008f7c7794d4f4b65940a70ba2247bd.tar.xz
ibus-libpinyin-2924d05cf008f7c7794d4f4b65940a70ba2247bd.zip
Fix problem with ibus-2.0
Diffstat (limited to 'src/PYConfig.h')
-rw-r--r--src/PYConfig.h30
1 files changed, 15 insertions, 15 deletions
diff --git a/src/PYConfig.h b/src/PYConfig.h
index cec46e8..61b92bf 100644
--- a/src/PYConfig.h
+++ b/src/PYConfig.h
@@ -61,19 +61,19 @@ public:
protected:
bool read (const gchar * name, bool defval);
gint read (const gchar * name, gint defval);
- const gchar * read (const gchar * name, const gchar * defval);
+ std::string read (const gchar * name, const gchar * defval);
virtual void readDefaultValues (void);
- virtual gboolean valueChanged (const std::string & section,
- const std::string & name,
- const GValue *value);
+ virtual gboolean valueChanged (const std::string &section,
+ const std::string &name,
+ GVariant *value);
private:
- static void valueChangedCallback (IBusConfig *config,
- const gchar *section,
- const gchar *name,
- const GValue *value,
- Config *self);
+ static void valueChangedCallback (IBusConfig *config,
+ const gchar *section,
+ const gchar *name,
+ GVariant *value,
+ Config *self);
protected:
std::string m_section;
@@ -116,9 +116,9 @@ protected:
PinyinConfig (Bus & bus);
virtual void readDefaultValues (void);
- virtual gboolean valueChanged (const std::string & section,
- const std::string & name,
- const GValue *value);
+ virtual gboolean valueChanged (const std::string &section,
+ const std::string &name,
+ GVariant *value);
private:
static std::unique_ptr<PinyinConfig> m_instance;
@@ -134,9 +134,9 @@ protected:
BopomofoConfig (Bus & bus);
virtual void readDefaultValues (void);
- virtual gboolean valueChanged (const std::string & section,
- const std::string & name,
- const GValue *value);
+ virtual gboolean valueChanged (const std::string &section,
+ const std::string &name,
+ GVariant *value);
private:
static std::unique_ptr<BopomofoConfig> m_instance;