author | sandman <sandman> | 2002-10-13 16:15:30 (UTC) |
---|---|---|
committer | sandman <sandman> | 2002-10-13 16:15:30 (UTC) |
commit | 93133ba6cc82398012c8f7206a7e9a270a04edc6 (patch) (side-by-side diff) | |
tree | f2af0d8b8d456077a9e91289290d4c19d120ae90 /core | |
parent | 467451d6d19a2cf5245afa2d219b7d2b1cd008f5 (diff) | |
download | opie-93133ba6cc82398012c8f7206a7e9a270a04edc6.zip opie-93133ba6cc82398012c8f7206a7e9a270a04edc6.tar.gz opie-93133ba6cc82398012c8f7206a7e9a270a04edc6.tar.bz2 |
changed to reflect the qcop interface cleanup of the launcher
-rw-r--r-- | core/applets/homeapplet/home.cpp | 2 | ||||
-rw-r--r-- | core/applets/suspendapplet/suspend.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/core/applets/homeapplet/home.cpp b/core/applets/homeapplet/home.cpp index 3670e6d..0d4ad66 100644 --- a/core/applets/homeapplet/home.cpp +++ b/core/applets/homeapplet/home.cpp @@ -28,47 +28,47 @@ QString HomeApplet::name ( ) const QString HomeApplet::text ( ) const { return tr( "Home" ); } QIconSet HomeApplet::icon ( ) const { QPixmap pix; QImage img = Resource::loadImage ( "home" ); if ( !img. isNull ( )) pix. convertFromImage ( img. smoothScale ( 14, 14 )); return pix; } QPopupMenu *HomeApplet::popup ( QWidget * ) const { return 0; } void HomeApplet::activated ( ) { // to desktop (home) - QCopEnvelope ( "QPE/Desktop", "home()" ); + QCopEnvelope ( "QPE/Application/qpe", "raise()" ); } QRESULT HomeApplet::queryInterface ( const QUuid &uuid, QUnknownInterface **iface ) { *iface = 0; if ( uuid == IID_QUnknown ) *iface = this; else if ( uuid == IID_MenuApplet ) *iface = this; if ( *iface ) (*iface)-> addRef ( ); return QS_OK; } Q_EXPORT_INTERFACE( ) { Q_CREATE_INSTANCE( HomeApplet ) } diff --git a/core/applets/suspendapplet/suspend.cpp b/core/applets/suspendapplet/suspend.cpp index e9861e8..b502e87 100644 --- a/core/applets/suspendapplet/suspend.cpp +++ b/core/applets/suspendapplet/suspend.cpp @@ -28,47 +28,47 @@ QString SuspendApplet::name ( ) const QString SuspendApplet::text ( ) const { return tr( "Suspend" ); } QIconSet SuspendApplet::icon ( ) const { QPixmap pix; QImage img = Resource::loadImage ( "suspend" ); if ( !img. isNull ( )) pix. convertFromImage ( img. smoothScale ( 14, 14 )); return pix; } QPopupMenu *SuspendApplet::popup ( QWidget * ) const { return 0; } void SuspendApplet::activated ( ) { // suspend - QCopEnvelope ( "QPE/Desktop", "suspend()" ); + QCopEnvelope ( "QPE/System", "suspend()" ); } QRESULT SuspendApplet::queryInterface ( const QUuid &uuid, QUnknownInterface **iface ) { *iface = 0; if ( uuid == IID_QUnknown ) *iface = this; else if ( uuid == IID_MenuApplet ) *iface = this; if ( *iface ) (*iface)-> addRef ( ); return QS_OK; } Q_EXPORT_INTERFACE( ) { Q_CREATE_INSTANCE( SuspendApplet ) } |