File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -330,7 +330,7 @@ def do_activate(self):
330330 self ._sourcetree .expand_rows = self .expand_rows
331331 self ._sourcetree .sort_list = self .sort_list
332332 panel = self .window .get_side_panel ()
333- panel .add_item (self ._sourcetree , "SymbolBrowserPlugin" , "Source Code" , self . icon )
333+ panel .add_titled (self ._sourcetree , "SymbolBrowserPlugin" , "Source Code" )
334334 self ._handlers = []
335335 hid = self ._sourcetree .connect ("focus" , self .on_sourcetree_focus )
336336 self ._handlers .append ((self ._sourcetree , hid ))
@@ -353,7 +353,7 @@ def do_deactivate(self):
353353 obj .disconnect (hid )
354354 self ._handlers = None
355355 pane = self .window .get_side_panel ()
356- pane .remove_item (self ._sourcetree )
356+ pane .remove (self ._sourcetree )
357357 self ._sourcetree = None
358358
359359 def _has_settings_schema (self ):
@@ -393,7 +393,7 @@ def _load_active_document_symbols(self):
393393 self ._is_loaded = False
394394 # do not load if not the active tab in the panel
395395 panel = self .window .get_side_panel ()
396- if not panel .item_is_active ( self ._sourcetree ) :
396+ if panel .get_visible_child () != self ._sourcetree :
397397 return
398398
399399 document = self .window .get_active_document ()
You can’t perform that action at this time.
0 commit comments