Revision: 7459
Author: nogu.dev
Date: Thu Feb 16 05:13:44 2012
Log: * notify/uim-knotify4.cpp
- Don't include kdemacros.h because it is unneeded.
- (send_knotify): Output messages to stderr.
http://code.google.com/p/uim/source/detail?r=7459
Modified:
/trunk/notify/uim-knotify4.cpp
=======================================
--- /trunk/notify/uim-knotify4.cpp Sat Jan 21 19:56:53 2012
+++ /trunk/notify/uim-knotify4.cpp Thu Feb 16 05:13:44 2012
@@ -31,9 +31,10 @@
*/
#include <config.h>
+#include <cstdio> // for fprintf
+
#include <QtGui/QApplication>
-#include <kdemacros.h> // for KDE_EXPORT
#include <knotification.h>
#include "qtgettext.h"
@@ -66,6 +67,8 @@
static uim_bool
send_knotify(const char *msg, KNotification::StandardEvent eventId)
{
+ fprintf(stderr, "%s\n", dgettext(GETTEXT_PACKAGE, msg));
+
if (QApplication::instance()) {
KNotification::event(eventId, mygettext(msg),
QPixmap(UIM_PIXMAPSDIR "/uim-icon.png"));