From 2a081fc8bfcf498b558c5c5434069572f6245b8e Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Fri, 1 Feb 2013 15:05:56 -0600 Subject: Rename a number of classes to enhance compatibility with KDE4 --- powermanager/guidance-power-manager.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'powermanager') diff --git a/powermanager/guidance-power-manager.py b/powermanager/guidance-power-manager.py index c861bfa..c28e846 100755 --- a/powermanager/guidance-power-manager.py +++ b/powermanager/guidance-power-manager.py @@ -310,21 +310,21 @@ class PowerManager(PowerManagerUI): # add suspend/hibernate to tray's context menu menu = self.systray.contextMenu() if self.canSuspend: - action = KAction( i18n("Suspend"), KShortcut(), self.suspend, + action = TDEAction( i18n("Suspend"), TDEShortcut(), self.suspend, self.systray.actionCollection(), "suspend") action.setIcon("suspend") action.plug(menu) if self.canHibernate: - action = KAction( i18n("Hibernate"), KShortcut(), self.hibernate, + action = TDEAction( i18n("Hibernate"), TDEShortcut(), self.hibernate, self.systray.actionCollection(), "hibernate") action.setIcon("hibernate") action.plug(menu) # add list of governators if self.powermanager.hasCpuFreqGovernors and len(self.cb_freq) > 0: - submenu = KPopupMenu(menu) + submenu = TDEPopupMenu(menu) for policy in self.cb_freq: - action = KRadioAction(self.freq_name[policy], KShortcut(), + action = TDERadioAction(self.freq_name[policy], TDEShortcut(), self.freq_call[policy], self.systray.actionCollection(), policy) action.setExclusiveGroup("freqs") @@ -339,9 +339,9 @@ class PowerManager(PowerManagerUI): # TDEGlobalAccel crashes the application in pytde # see http://mats.gmd.de/pipermail/pytde/2006-May/013224.html #self.globalActions = TDEGlobalAccel(self) - #self.suspendShortcut = KShortcut("XF86Sleep") - #self.hibernateShortcut = KShortcut("XF86Standby") - #self.hshutdownShortcut = KShortcut("XF86PowerOff") + #self.suspendShortcut = TDEShortcut("XF86Sleep") + #self.hibernateShortcut = TDEShortcut("XF86Standby") + #self.hshutdownShortcut = TDEShortcut("XF86PowerOff") #self.globalActions.insert("suspend", i18n("Suspend"), i18n("what's this?"), self.suspendShortcut, #self.suspendShortcut, self.suspend) #self.globalActions.updateConnections() -- cgit v1.2.1