connect signal directly

This commit is contained in:
Tom Beckmann 2013-08-09 20:37:25 +02:00
parent fec97f1469
commit 51f054ccee

View File

@ -95,9 +95,7 @@ namespace Gala
try { try {
screensaver = Bus.get_proxy_sync (BusType.SESSION, "org.gnome.ScreenSaver", screensaver = Bus.get_proxy_sync (BusType.SESSION, "org.gnome.ScreenSaver",
"/org/gnome/ScreenSaver"); "/org/gnome/ScreenSaver");
screensaver.active_changed.connect (() => { screensaver.active_changed.connect (update_input_area);
update_input_area ();
});
} catch (Error e) { warning (e.message); } } catch (Error e) { warning (e.message); }
var stage = Compositor.get_stage_for_screen (screen) as Clutter.Stage; var stage = Compositor.get_stage_for_screen (screen) as Clutter.Stage;