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:
parent
f5cea6f6d5
commit
c64ff322bd
@ -97,7 +97,7 @@ class MainWindow( object ):
|
|||||||
wTree.signal_autoconnect( dic )
|
wTree.signal_autoconnect( dic )
|
||||||
|
|
||||||
self.gconf = EasyGConf( "/apps/mintMenu/" )
|
self.gconf = EasyGConf( "/apps/mintMenu/" )
|
||||||
self.gconftheme = EasyGConf ( "/desktop/gnome/interface/" )
|
self.gconftheme = EasyGConf( "/desktop/gnome/interface/" )
|
||||||
|
|
||||||
self.getSetGconfEntries()
|
self.getSetGconfEntries()
|
||||||
self.SetupMintMenuBorder()
|
self.SetupMintMenuBorder()
|
||||||
@ -112,6 +112,7 @@ class MainWindow( object ):
|
|||||||
|
|
||||||
self.gconf.notifyAdd( "plugins_list", self.RegenPlugins )
|
self.gconf.notifyAdd( "plugins_list", self.RegenPlugins )
|
||||||
self.gconftheme.notifyAdd( "gtk_theme", self.RegenPlugins )
|
self.gconftheme.notifyAdd( "gtk_theme", self.RegenPlugins )
|
||||||
|
|
||||||
self.gconf.notifyAdd( "show_side_pane", self.toggleShowSidepane )
|
self.gconf.notifyAdd( "show_side_pane", self.toggleShowSidepane )
|
||||||
self.gconf.notifyAdd( "/apps/panel/global/tooltips_enabled", self.toggleTooltipsEnabled )
|
self.gconf.notifyAdd( "/apps/panel/global/tooltips_enabled", self.toggleTooltipsEnabled )
|
||||||
self.gconf.notifyAdd( "tooltips_enabled", self.toggleTooltipsEnabled )
|
self.gconf.notifyAdd( "tooltips_enabled", self.toggleTooltipsEnabled )
|
||||||
|
@ -69,14 +69,15 @@ class pluginclass( object ):
|
|||||||
self.width = entry.get_value().get_int()
|
self.width = entry.get_value().get_int()
|
||||||
elif entry.get_key() == self.gconf.gconfDir+"height":
|
elif entry.get_key() == self.gconf.gconfDir+"height":
|
||||||
self.heigth = entry.get_value().get_int()
|
self.heigth = entry.get_value().get_int()
|
||||||
|
|
||||||
self.content_holder.set_size_request( self.width, self.height )
|
self.content_holder.set_size_request( self.width, self.height )
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
def RegenPlugin( self, *args, **kargs ):
|
def RegenPlugin( self, *args, **kargs ):
|
||||||
self.GetGconfEntries()
|
self.GetGconfEntries()
|
||||||
self.ClearAll()
|
self.ClearAll()
|
||||||
self.do_standard_places()
|
self.do_standard_places()
|
||||||
|
self.do_custom_places()
|
||||||
|
|
||||||
def GetGconfEntries( self ):
|
def GetGconfEntries( self ):
|
||||||
|
|
||||||
@ -168,9 +169,10 @@ class pluginclass( object ):
|
|||||||
self.placesBtnHolder.pack_start( self.trashButton, False, False )
|
self.placesBtnHolder.pack_start( self.trashButton, False, False )
|
||||||
self.mintMenuWin.setTooltip( self.trashButton, _("Browse deleted files") )
|
self.mintMenuWin.setTooltip( self.trashButton, _("Browse deleted files") )
|
||||||
|
|
||||||
|
def do_custom_places( self ):
|
||||||
for index in range( len(self.custompaths) ):
|
for index in range( len(self.custompaths) ):
|
||||||
command = ( "nautilus --no-desktop " + self.custompaths[index] )
|
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.connect( "clicked", self.ButtonClicked, command )
|
||||||
currentbutton.show()
|
currentbutton.show()
|
||||||
self.placesBtnHolder.pack_start( currentbutton, False, False )
|
self.placesBtnHolder.pack_start( currentbutton, False, False )
|
||||||
@ -195,7 +197,8 @@ class pluginclass( object ):
|
|||||||
Execute( Exec )
|
Execute( Exec )
|
||||||
|
|
||||||
def do_plugin( self ):
|
def do_plugin( self ):
|
||||||
self.do_standard_places()
|
self.do_standard_places()
|
||||||
|
self.do_custom_places()
|
||||||
|
|
||||||
def refreshTrash (self):
|
def refreshTrash (self):
|
||||||
iconName = "user-trash"
|
iconName = "user-trash"
|
||||||
|
Loading…
Reference in New Issue
Block a user