From c64ff322bd1c6140a025e2f175236dcf1d620d94 Mon Sep 17 00:00:00 2001 From: clhodapp Date: Sun, 6 Sep 2009 22:46:34 -0500 Subject: [PATCH] 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 --- usr/lib/linuxmint/mintMenu/mintMenu.py | 3 ++- usr/lib/linuxmint/mintMenu/plugins/places.py | 9 ++++++--- 2 files changed, 8 insertions(+), 4 deletions(-) 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"