diff --git a/usr/lib/linuxmint/mintMenu/mintMenu.py b/usr/lib/linuxmint/mintMenu/mintMenu.py index 3b7791c..373012f 100755 --- a/usr/lib/linuxmint/mintMenu/mintMenu.py +++ b/usr/lib/linuxmint/mintMenu/mintMenu.py @@ -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 ) diff --git a/usr/lib/linuxmint/mintMenu/plugins/places.py b/usr/lib/linuxmint/mintMenu/plugins/places.py index 54ea28d..0c77c78 100755 --- a/usr/lib/linuxmint/mintMenu/plugins/places.py +++ b/usr/lib/linuxmint/mintMenu/plugins/places.py @@ -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"