Permalink
Browse files

! use existing self.shell object

  • Loading branch information...
1 parent f1b1d0a commit 68b764d4fbd5008ea2f88c5bf23240089c350cce @bkueng committed Jul 29, 2012
Showing with 1 addition and 2 deletions.
  1. +1 −2 src/__init__.py
View
@@ -495,15 +495,14 @@ def do_activate (self):
self.config.load_settings(self.window)
self.create_columns(self.playlist_tree)
- shell = self.object
self.action = Gtk.Action (name='JumpToWindow', label=_('Show JumpToWindow'),
tooltip=_(''),
stock_id='')
self.action_id = self.action.connect ('activate', self.dbus_activate_from_menu, 'org.rhythmbox.JumpToWindow')
self.action_group = Gtk.ActionGroup (name='JumpToWindowPluginActions')
self.action_group.add_action_with_accel (self.action, "<control><shift>J")
- uim = shell.props.ui_manager
+ uim = self.shell.props.ui_manager
uim.insert_action_group (self.action_group, 0)
self.ui_id = uim.add_ui_from_string (UI_STRING)
uim.ensure_update ()

0 comments on commit 68b764d

Please sign in to comment.