Whitespace cleanup. Always use tabs and tabs are four spaces.
This commit is contained in:
parent
d13cf9a91d
commit
da89103081
@ -1,4 +1,5 @@
|
|||||||
#!/usr/bin/python
|
#!/usr/bin/python
|
||||||
|
# -*- tab-width: 4; indent-tabs-mode: t -*-
|
||||||
|
|
||||||
import string
|
import string
|
||||||
|
|
||||||
@ -88,15 +89,32 @@ class Activity(dbus.service.Object):
|
|||||||
return self.__activity_id
|
return self.__activity_id
|
||||||
|
|
||||||
|
|
||||||
def __reply_cb(self):
|
def __shutdown_reply_cb(self):
|
||||||
print "in __reply_cb"
|
print "in __reply_cb"
|
||||||
|
|
||||||
|
self.__plug.destroy()
|
||||||
|
self.__plug = None
|
||||||
|
|
||||||
|
self.__bus = None
|
||||||
|
self.__activity_container_object = None
|
||||||
|
self.__activity_container = None
|
||||||
|
self.__activity_object = None
|
||||||
|
self.__service = None
|
||||||
|
|
||||||
|
self.__bus.remove_signal_receiver(self.name_owner_changed, dbus_interface = "org.freedesktop.DBus", signal_name = "NameOwnerChanged")
|
||||||
|
|
||||||
self.activity_on_disconnected_from_shell()
|
self.activity_on_disconnected_from_shell()
|
||||||
|
|
||||||
def __error_cb(self, error):
|
|
||||||
|
del self
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
def __shutdown_error_cb(self, error):
|
||||||
print "in __error_cb"
|
print "in __error_cb"
|
||||||
|
|
||||||
def activity_shutdown(self):
|
def activity_shutdown(self):
|
||||||
self.__activity_object.shutdown(reply_handler = self.__reply_cb, error_handler = self.__error_cb)
|
self.__activity_object.shutdown(reply_handler = self.__shutdown_reply_cb, error_handler = self.__shutdown_error_cb)
|
||||||
|
|
||||||
# pure virtual methods
|
# pure virtual methods
|
||||||
|
|
||||||
@ -104,7 +122,7 @@ class Activity(dbus.service.Object):
|
|||||||
print "act %d: you need to override activity_on_connected_to_shell"%self.activity_get_id()
|
print "act %d: you need to override activity_on_connected_to_shell"%self.activity_get_id()
|
||||||
|
|
||||||
def activity_on_disconnected_from_shell(self):
|
def activity_on_disconnected_from_shell(self):
|
||||||
print "act %d: you need to override activity_on_disconnected_to_shell"%self.activity_get_id()
|
print "act %d: you need to override activity_on_disconnected_from_shell"%self.activity_get_id()
|
||||||
|
|
||||||
def activity_on_close_from_user(self):
|
def activity_on_close_from_user(self):
|
||||||
print "act %d: you need to override activity_on_close_from_user"%self.activity_get_id()
|
print "act %d: you need to override activity_on_close_from_user"%self.activity_get_id()
|
||||||
@ -144,12 +162,8 @@ class ExampleActivity(Activity):
|
|||||||
plug.show_all()
|
plug.show_all()
|
||||||
|
|
||||||
def activity_on_disconnected_from_shell(self):
|
def activity_on_disconnected_from_shell(self):
|
||||||
print "act %d: in activity_on_disconnected_to_shell"%self.activity_get_id()
|
print "act %d: in activity_on_disconnected_from_shell"%self.activity_get_id()
|
||||||
print "act %d: Shell disappeared..."%self.activity_get_id()
|
print "act %d: Shell disappeared..."%self.activity_get_id()
|
||||||
plug = self.activity_get_gtk_plug()
|
|
||||||
plug.destroy()
|
|
||||||
|
|
||||||
del self
|
|
||||||
|
|
||||||
gc.collect()
|
gc.collect()
|
||||||
|
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
#!/usr/bin/python
|
#!/usr/bin/python
|
||||||
|
# -*- tab-width: 4; indent-tabs-mode: t -*-
|
||||||
|
|
||||||
import string
|
import string
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user