Refine coding style
authorPeng Huang <shawn.p.huang@gmail.com>
Sun, 30 May 2010 13:53:34 +0000 (21:53 +0800)
committerPeng Huang <shawn.p.huang@gmail.com>
Sun, 30 May 2010 13:53:34 +0000 (21:53 +0800)
src/Bus.h
src/Property.h

index 518a62f..4ed9932 100644 (file)
--- a/src/Bus.h
+++ b/src/Bus.h
@@ -28,14 +28,15 @@ namespace PY {
 
 class Bus : Object {
 public:
-    Bus (void) : Object (ibus_bus_new ()) {
-    }
+    Bus (void) : Object (ibus_bus_new ()) { }
 
-    bool isConnected (void) {
+    bool isConnected (void)
+    {
         return ibus_bus_is_connected (*this);
     }
 
-    operator IBusBus * (void) const {
+    operator IBusBus * (void) const
+    {
         return get<IBusBus> ();
     }
 };
index 2bbb6b8..09429c4 100644 (file)
@@ -40,23 +40,28 @@ public:
               IBusPropList  *props = NULL)
         : Object (ibus_property_new (key, type, label, icon, tooltip, sensitive, visible, state, props)) { }
 
-    void setLabel (IBusText *text) {
+    void setLabel (IBusText *text)
+    {
         ibus_property_set_label (get<IBusProperty> (), text);
     }
 
-    void setLabel (const gchar *text) {
+    void setLabel (const gchar *text)
+    {
         setLabel (Text (text));
     }
 
-    void setIcon (const gchar *icon) {
+    void setIcon (const gchar *icon)
+    {
         ibus_property_set_icon (get<IBusProperty> (), icon);
     }
 
-    void setSensitive (gboolean sensitive) {
+    void setSensitive (gboolean sensitive)
+    {
         ibus_property_set_sensitive (get<IBusProperty> (), sensitive);
     }
 
-    operator IBusProperty * (void) const {
+    operator IBusProperty * (void) const
+    {
         return get<IBusProperty> ();
     }
 };
@@ -66,11 +71,13 @@ class PropList : Object {
 public:
     PropList (void) : Object (ibus_prop_list_new ()) { }
 
-    void append (Property &prop) {
+    void append (Property &prop)
+    {
         ibus_prop_list_append (get<IBusPropList> (), prop);
     }
 
-    operator IBusPropList * (void) const {
+    operator IBusPropList * (void) const
+    {
         return get<IBusPropList> ();
     }
 };