r7056 - bigboard/trunk
- From: commits mugshot org
- To: online-desktop-list gnome org
- Subject: r7056 - bigboard/trunk
- Date: Fri, 14 Dec 2007 13:31:10 -0600 (CST)
Author: walters
Date: 2007-12-14 13:31:10 -0600 (Fri, 14 Dec 2007)
New Revision: 7056
Modified:
bigboard/trunk/main.py
Log:
Send Kill method call when using --replace so existing panel frees keybinding.
Modified: bigboard/trunk/main.py
===================================================================
--- bigboard/trunk/main.py 2007-12-14 17:12:09 UTC (rev 7055)
+++ bigboard/trunk/main.py 2007-12-14 19:31:10 UTC (rev 7056)
@@ -895,6 +895,13 @@
bus = dbus.SessionBus()
bus_name = dbus.service.BusName(BUS_NAME_STR, bus=bus)
+ if replace:
+ try:
+ bb = bus.get_object(BUS_NAME_STR, '/bigboard/panel')
+ bb.Kill()
+ except dbus.DBusException, e:
+ pass
+
_logger.debug("Requesting D-BUS name")
try:
bigboard.libbig.dbusutil.take_name(BUS_NAME_STR, replace, on_name_lost)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]