diff options
author | Timothy Pearson <[email protected]> | 2013-02-01 15:05:56 -0600 |
---|---|---|
committer | Timothy Pearson <[email protected]> | 2013-02-01 15:05:56 -0600 |
commit | 2a081fc8bfcf498b558c5c5434069572f6245b8e (patch) | |
tree | afad48e0a2769d1079cbc6af0d890bd2e0e1dbbf /powermanager | |
parent | 671df160874c6e4ff50b230a5e5f1eb35f1c6464 (diff) | |
download | tde-guidance-2a081fc8bfcf498b558c5c5434069572f6245b8e.tar.gz tde-guidance-2a081fc8bfcf498b558c5c5434069572f6245b8e.zip |
Rename a number of classes to enhance compatibility with KDE4
Diffstat (limited to 'powermanager')
-rwxr-xr-x | powermanager/guidance-power-manager.py | 14 |
1 files changed, 7 insertions, 7 deletions
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() |