Orientation: use new syntax to connect to D-Bus signals
authorPhilipp Zabel <philipp.zabel@gmail.com>
Sat, 22 May 2010 11:17:25 +0000 (13:17 +0200)
committerPhilipp Zabel <philipp.zabel@gmail.com>
Fri, 28 May 2010 20:18:33 +0000 (22:18 +0200)
src/orientation.vala

index c708d71..1630f98 100644 (file)
@@ -45,10 +45,10 @@ public class Orientation : Object {
                        mce_enable_accelerometer ();
 
                        mce_signal = conn.get_object (MCE_SERVICE, MCE_SIGNAL_PATH, MCE_SIGNAL_IF);
-                       mce_signal.sig_device_orientation_ind += on_mce_orientation_changed;
+                       mce_signal.sig_device_orientation_ind.connect (on_mce_orientation_changed);
 
                        hal_slide = conn.get_object (HAL_SERVICE, HAL_SLIDE_PATH, HAL_DEVICE_IF);
-                       hal_slide.Condition += on_hal_slide_condition;
+                       hal_slide.Condition.connect (on_hal_slide_condition);
                        bool closed = hal_slide.GetPropertyBoolean ("button.state.value");
                        keyboard = !closed;
                } catch (Error e) {