[rhythmbox] pythonconsole: don't use the deprecated GObject.get_data and set_data
- From: Jonathan Matthew <jmatthew src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [rhythmbox] pythonconsole: don't use the deprecated GObject.get_data and set_data
- Date: Sun, 19 Aug 2012 21:53:53 +0000 (UTC)
commit c662e3cc13c33f8f80f56cf077dc4d2101f73390
Author: Jonathan Matthew <jonathan d14n org>
Date: Mon Aug 20 07:52:30 2012 +1000
pythonconsole: don't use the deprecated GObject.get_data and set_data
plugins/pythonconsole/pythonconsole.py | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/plugins/pythonconsole/pythonconsole.py b/plugins/pythonconsole/pythonconsole.py
index 013df87..b78251c 100644
--- a/plugins/pythonconsole/pythonconsole.py
+++ b/plugins/pythonconsole/pythonconsole.py
@@ -100,18 +100,18 @@ class PythonConsolePlugin(GObject.Object, Peas.Activatable):
data['ui_id'] = manager.add_ui_from_string(ui_str)
manager.ensure_update()
- shell.set_data('PythonConsolePluginInfo', data)
+ shell.PythonConsolePluginInfo = data
def do_deactivate(self):
shell = self.object
- data = shell.get_data('PythonConsolePluginInfo')
+ data = shell.PythonConsolePluginInfo
manager = shell.props.ui_manager
manager.remove_ui(data['ui_id'])
manager.remove_action_group(data['action_group'])
manager.ensure_update()
- shell.set_data('PythonConsolePluginInfo', None)
+ shell.PythonConsolePluginInfo = None
if self.window is not None:
self.window.destroy()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]