From 7e48fd62cd74ea604c106da5122d060baca33844 Mon Sep 17 00:00:00 2001 From: monsta Date: Thu, 27 Mar 2014 13:37:39 +0400 Subject: [PATCH] System plugin: fix applying of settings immediately after changing them --- .../mintMenu/plugins/system_management.py | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/usr/lib/linuxmint/mintMenu/plugins/system_management.py b/usr/lib/linuxmint/mintMenu/plugins/system_management.py index e629645..040b98b 100755 --- a/usr/lib/linuxmint/mintMenu/plugins/system_management.py +++ b/usr/lib/linuxmint/mintMenu/plugins/system_management.py @@ -48,14 +48,14 @@ class pluginclass( object ): # Gconf stuff self.settings = EasyGSettings( "com.linuxmint.mintmenu.plugins.system_management" ) - self.settings.notifyAdd( "icon_size", self.RegenPlugin ) - self.settings.notifyAdd( "show_control_center", self.RegenPlugin ) - self.settings.notifyAdd( "show_lock_screen", self.RegenPlugin ) - self.settings.notifyAdd( "show_logout", self.RegenPlugin ) - self.settings.notifyAdd( "show_package_manager", self.RegenPlugin ) - self.settings.notifyAdd( "show_software_manager", self.RegenPlugin ) - self.settings.notifyAdd( "show_terminal", self.RegenPlugin ) - self.settings.notifyAdd( "show_quit", self.RegenPlugin ) + self.settings.notifyAdd( "icon-size", self.RegenPlugin ) + self.settings.notifyAdd( "show-control-center", self.RegenPlugin ) + self.settings.notifyAdd( "show-lock-screen", self.RegenPlugin ) + self.settings.notifyAdd( "show-logout", self.RegenPlugin ) + self.settings.notifyAdd( "show-package-manager", self.RegenPlugin ) + self.settings.notifyAdd( "show-software-manager", self.RegenPlugin ) + self.settings.notifyAdd( "show-terminal", self.RegenPlugin ) + self.settings.notifyAdd( "show-quit", self.RegenPlugin ) self.settings.notifyAdd( "allow-scrollbar", self.RegenPlugin ) self.settings.notifyAdd( "height", self.changePluginSize ) self.settings.notifyAdd( "width", self.changePluginSize ) @@ -86,7 +86,7 @@ class pluginclass( object ): self.content_holder.set_size_request( self.width, self.height ) - def RegenPlugin( self, settings, key, args ): + def RegenPlugin( self, *args, **kargs ): self.GetGSettingsEntries() self.ClearAll() self.do_standard_items()