[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: playground/base/plasma/applets/leavenote/LeaveNoteHelperDaemon/dbus
From: Christian Weilbach <christian () whiletaker ! homeip ! net>
Date: 2008-08-09 13:31:28
Message-ID: 1218288688.815715.7454.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 844363 by weilbach:
Fix the notification, should work now.
M +3 -7 DaemonDBusHandler.cpp
--- trunk/playground/base/plasma/applets/leavenote/LeaveNoteHelperDaemon/dbus/DaemonDBusHandler.cpp \
#844362:844363 @@ -91,14 +91,10 @@
}
void DaemonDBusHandler::newMessageSender( const QString& title, const QString& \
msg ){
- if( ! mNotification )
- {
- return;
- }
-
mNotification= new KNotification ( "incomingNote", 0L,
KNotification::Persistent );
mNotification->setText( i18n( "Left note: %1", msg ) );
+ // FIXME
KIcon knotesIcon("knotes");
mNotification->setPixmap( knotesIcon.pixmap( 16, 16 ) );
mNotification->setActions( QStringList() << i18n( "Load" )
@@ -113,6 +109,7 @@
QString title = mNotificationToNote[sender()].first;
QString msg = mNotificationToNote[sender()].second;
mNotificationToNote.remove(sender());
+ qobject_cast<KNotification*>(sender())->close();
switch(action){
case 1:
@@ -131,11 +128,10 @@
widget->setLayout( layout );
widget->show();
}
+ break;
default:
return;
};
-
- qobject_cast<KNotification*>(sender())->close();
}
} // namespace LeaveNoteHelperDaemon
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic