summaryrefslogtreecommitdiffstats
path: root/src/PYProperty.h
diff options
context:
space:
mode:
authorPeng Wu <alexepico@gmail.com>2012-12-17 13:33:31 +0800
committerPeng Wu <alexepico@gmail.com>2012-12-17 14:24:32 +0800
commit382c9a706be19c3b4466afba8b964d50ece5c254 (patch)
treef97198f22fa13f9fa2ddb33e92bf167162af2023 /src/PYProperty.h
parent6d70508e192367a1007dc6f10aed8ca3d3a25da9 (diff)
downloadibus-libpinyin-382c9a706be19c3b4466afba8b964d50ece5c254.tar.gz
ibus-libpinyin-382c9a706be19c3b4466afba8b964d50ece5c254.tar.xz
ibus-libpinyin-382c9a706be19c3b4466afba8b964d50ece5c254.zip
improves property labels
Diffstat (limited to 'src/PYProperty.h')
-rw-r--r--src/PYProperty.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/PYProperty.h b/src/PYProperty.h
index 868ea5b..70c0808 100644
--- a/src/PYProperty.h
+++ b/src/PYProperty.h
@@ -60,6 +60,16 @@ public:
ibus_property_set_sensitive (get<IBusProperty> (), sensitive);
}
+ void setTooltip (IBusText *text)
+ {
+ ibus_property_set_tooltip (get<IBusProperty> (), text);
+ }
+
+ void setTooltip (const gchar *text)
+ {
+ setTooltip (Text (text));
+ }
+
operator IBusProperty * (void) const
{
return get<IBusProperty> ();