Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 0.8, 0.8.1, and 0.8.2

nautilus: simpler test if submenu is suported

Changeset b3b1d01d24e2

Parent 389671014a18

by Simon Heimberg

Changes to one file · Browse files at b3b1d01d24e2 Showing diff from parent 389671014a18 Diff from another changeset...

 
193
194
195
196
 
197
198
199
 
193
194
195
 
196
197
198
199
@@ -193,7 +193,7 @@
  # can not insert a separator till now   pass   elif menu_info.isSubmenu(): - if nautilus.__dict__.get('Menu'): + if hasattr(nautilus, 'Menu'):   item = nautilus.MenuItem(idstr, menu_info.menutext,   menu_info.helptext)   submenu = nautilus.Menu()