Small fixes

* Places plugin no longer tries to internationalize your own text
* do_standard_places in Places plugin no longer includes custom places
* Removed unneeded and inconsistent space in mintMenu.py
This commit is contained in:
clhodapp 2009-09-06 22:46:34 -05:00
parent f5cea6f6d5
commit c64ff322bd
2 changed files with 8 additions and 4 deletions

View File

@ -97,7 +97,7 @@ class MainWindow( object ):
wTree.signal_autoconnect( dic )
self.gconf = EasyGConf( "/apps/mintMenu/" )
self.gconftheme = EasyGConf ( "/desktop/gnome/interface/" )
self.gconftheme = EasyGConf( "/desktop/gnome/interface/" )
self.getSetGconfEntries()
self.SetupMintMenuBorder()
@ -112,6 +112,7 @@ class MainWindow( object ):
self.gconf.notifyAdd( "plugins_list", self.RegenPlugins )
self.gconftheme.notifyAdd( "gtk_theme", self.RegenPlugins )
self.gconf.notifyAdd( "show_side_pane", self.toggleShowSidepane )
self.gconf.notifyAdd( "/apps/panel/global/tooltips_enabled", self.toggleTooltipsEnabled )
self.gconf.notifyAdd( "tooltips_enabled", self.toggleTooltipsEnabled )

View File

@ -69,14 +69,15 @@ class pluginclass( object ):
self.width = entry.get_value().get_int()
elif entry.get_key() == self.gconf.gconfDir+"height":
self.heigth = entry.get_value().get_int()
self.content_holder.set_size_request( self.width, self.height )
def RegenPlugin( self, *args, **kargs ):
self.GetGconfEntries()
self.ClearAll()
self.do_standard_places()
self.do_custom_places()
def GetGconfEntries( self ):
@ -168,9 +169,10 @@ class pluginclass( object ):
self.placesBtnHolder.pack_start( self.trashButton, False, False )
self.mintMenuWin.setTooltip( self.trashButton, _("Browse deleted files") )
def do_custom_places( self ):
for index in range( len(self.custompaths) ):
command = ( "nautilus --no-desktop " + self.custompaths[index] )
currentbutton = easyButton( "folder", self.iconsize, [_(self.customnames[index])], -1, -1 )
currentbutton = easyButton( "folder", self.iconsize, [self.customnames[index]], -1, -1 )
currentbutton.connect( "clicked", self.ButtonClicked, command )
currentbutton.show()
self.placesBtnHolder.pack_start( currentbutton, False, False )
@ -195,7 +197,8 @@ class pluginclass( object ):
Execute( Exec )
def do_plugin( self ):
self.do_standard_places()
self.do_standard_places()
self.do_custom_places()
def refreshTrash (self):
iconName = "user-trash"