From 2a739e13783c0db7b928d0fca87fc0e9d29494c1 Mon Sep 17 00:00:00 2001 From: Abraxa Date: Tue, 2 Sep 2008 23:21:01 +0000 Subject: [PATCH] Remove PyneoController's "init" event and the corresponding callbacks. It was part of the initial PyneoControl draft, no longer used. git-svn-id: http://www.neo1973-germany.de/svn@119 46df4e5c-bc4e-4628-a0fc-830ba316316d --- epydial/epydial.py | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/epydial/epydial.py b/epydial/epydial.py index 7809ae0..9e4498a 100755 --- a/epydial/epydial.py +++ b/epydial/epydial.py @@ -61,11 +61,7 @@ class InCallScreen(EdjeGroup): EdjeGroup.__init__(self, screen_manager, INCALL_SCREEN_NAME) def register_pyneo_callbacks(self): - PyneoController.register_callback("init", self.on_dbus_initialized) - - def on_dbus_initialized(self): - print "Dbus is ready, says InCallScreen" - + pass class MainScreen(EdjeGroup): text = None @@ -75,16 +71,12 @@ class MainScreen(EdjeGroup): self.text = [] def register_pyneo_callbacks(self): - PyneoController.register_callback("init", self.on_dbus_initialized) PyneoController.register_callback("sim_key_required", self.on_sim_key_required) PyneoController.register_callback("sim_ready", self.on_sim_ready) PyneoController.register_callback("gsm_registering", self.on_gsm_registering) PyneoController.register_callback("gsm_registered", self.on_gsm_registered) PyneoController.register_callback("gsm_dialing", self.on_gsm_dialing) - def on_dbus_initialized(self): - print "Dbus is ready, says MainScreen" - def on_sim_key_required(self): print '---', 'opening keyring' self.part_text_set("numberdisplay_text", "Enter " + PyneoController.gsm_keyring_status['code']) @@ -183,9 +175,6 @@ class PyneoController(object): # Register our own D-Bus callbacks class_.gsm_wireless.connect_to_signal("Status", class_.on_gsm_wireless_status, dbus_interface=DIN_WIRELESS) - # Notify all screens that the interfaces are here so that they can connect their signal callbacks - class_.notify_callbacks("init") - # D-Bus is ready, let's power up GSM class_.power_up_gsm()