Revision: 7420
Author: nogu.dev
Date: Sat Jan 21 19:56:35 2012
Log: * notify/CMakeLists.txt
- (include_directories): Add "${CMAKE_SOURCE_DIR}/.."
and "${CMAKE_SOURCE_DIR}/../qt4" for qtgettext.h.
* notify/uim-knotify4.cpp
- (send_knotify): Use mygettext() for l10n.
http://code.google.com/p/uim/source/detail?r=7420
Modified:
/trunk/notify/CMakeLists.txt
/trunk/notify/uim-knotify4.cpp
=======================================
--- /trunk/notify/CMakeLists.txt Sat Jan 21 06:30:54 2012
+++ /trunk/notify/CMakeLists.txt Sat Jan 21 19:56:35 2012
@@ -2,8 +2,9 @@
find_package(KDE4 REQUIRED)
-include_directories(${KDE4_INCLUDES} ${CMAKE_SOURCE_DIR}/../uim
- ${CMAKE_SOURCE_DIR}/../replace)
+include_directories(${KDE4_INCLUDES} ${CMAKE_SOURCE_DIR}/..
+ ${CMAKE_SOURCE_DIR}/../uim ${CMAKE_SOURCE_DIR}/../replace
+ ${CMAKE_SOURCE_DIR}/../qt4)
set(uimnotify_knotify4_SRCS
uim-knotify4.cpp)
=======================================
--- /trunk/notify/uim-knotify4.cpp Sat Jan 21 06:46:56 2012
+++ /trunk/notify/uim-knotify4.cpp Sat Jan 21 19:56:35 2012
@@ -34,12 +34,11 @@
#include <kdemacros.h> // for KDE_EXPORT
#include <knotification.h>
+#include "qtgettext.h"
#include "uim.h" // for uim_bool
#include "uim-notify.h"
-/*
- interface
- */
+// interface
static uim_notify_desc uim_notify_knotify4_desc = {
"knotify4",
"Output via knotify",
@@ -65,7 +64,7 @@
static uim_bool
send_knotify(const char *msg, KNotification::StandardEvent eventId)
{
- KNotification::event(eventId, msg,
+ KNotification::event(eventId, mygettext(msg),
QPixmap(UIM_PIXMAPSDIR "/uim-icon.png"));
return UIM_TRUE;
}