[rhythmbox] im-status: fix plugin load by using GLib.GError
- From: Antoine Jacoutot <ajacoutot src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [rhythmbox] im-status: fix plugin load by using GLib.GError
- Date: Mon, 15 Apr 2013 10:03:11 +0000 (UTC)
commit 85795ac2342762bc8eed666e027b7f06a3b5b932
Author: Antoine Jacoutot <ajacoutot gnome org>
Date: Mon Apr 15 10:34:26 2013 +0200
im-status: fix plugin load by using GLib.GError
plugins/im-status/im-status.py | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/plugins/im-status/im-status.py b/plugins/im-status/im-status.py
index 6bb5b89..f3ede0f 100644
--- a/plugins/im-status/im-status.py
+++ b/plugins/im-status/im-status.py
@@ -212,7 +212,7 @@ class IMStatusPlugin (GObject.Object, Peas.Activatable):
vstatus = GLib.Variant("(uss)", (status[0], status[1], new_status))
# Set the status!
acct_proxy.Set("(ssv)", MC5_ACCT_IFACE_NAME, "RequestedPresence", vstatus)
- except gi._glib.GError as e:
+ except GLib.GError as e:
print ("GError while setting status: " + str(e))
def get_mc5_status (self):
@@ -234,7 +234,7 @@ class IMStatusPlugin (GObject.Object, Peas.Activatable):
# if all accounts have empty status, return that
if got_status:
return ""
- except gi._glib.GError as e:
+ except GLib.GError as e:
print ("GError while setting status: " + str(e))
return None
@@ -244,7 +244,7 @@ class IMStatusPlugin (GObject.Object, Peas.Activatable):
status = proxy.PurpleSavedstatusGetCurrent()
proxy.PurpleSavedstatusSetMessage("(is)", status, new_status)
proxy.PurpleSavedstatusActivate("(i)", status)
- except gi._glib.GError as e:
+ except GLib.GError as e:
print ("GError while setting status: " + str(e))
def get_purple_status (self):
@@ -252,6 +252,6 @@ class IMStatusPlugin (GObject.Object, Peas.Activatable):
proxy = self.proxies["purple"]
status = proxy.PurpleSavedstatusGetCurrent()
return proxy.PurpleSavedstatusGetMessage("(i)", status)
- except gi._glib.GError as e:
+ except GLib.GError as e:
print ("GError while setting status: " + str(e))
return None
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]