Applied various fixes and patches

git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/kerry@1163769 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
v3.5.13-sru
tpearson 14 years ago
parent 643c8222b7
commit 763098a08f

@ -134,9 +134,9 @@ dnl Check for libbeagle 0.2.0
# LIBBEAGLE_LIBADD: libbeagle libraries (-l options) # LIBBEAGLE_LIBADD: libbeagle libraries (-l options)
# LIBBEAGLE_LDFLAGS: flags containing path to libbeagle libraries (-L options) # LIBBEAGLE_LDFLAGS: flags containing path to libbeagle libraries (-L options)
LIBBEAGLE_PACKAGES="libbeagle-0.0" LIBBEAGLE_PACKAGES="libbeagle-1.0"
LIBBEAGLE_VERSION="0.2.5" LIBBEAGLE_VERSION="0.3.0"
AC_MSG_CHECKING(for libbeagle-0.2.5 (at least $LIBBEAGLE_VERSION)) AC_MSG_CHECKING(for libbeagle-0.3.0 (at least $LIBBEAGLE_VERSION))
if $PKG_CONFIG --atleast-pkgconfig-version 0.15 ; then if $PKG_CONFIG --atleast-pkgconfig-version 0.15 ; then
if $PKG_CONFIG --atleast-version $LIBBEAGLE_VERSION $LIBBEAGLE_PACKAGES >/dev/null 2>&1 ; then if $PKG_CONFIG --atleast-version $LIBBEAGLE_VERSION $LIBBEAGLE_PACKAGES >/dev/null 2>&1 ; then

@ -57,9 +57,9 @@ dnl Check for libbeagle 0.2.0
# LIBBEAGLE_LIBADD: libbeagle libraries (-l options) # LIBBEAGLE_LIBADD: libbeagle libraries (-l options)
# LIBBEAGLE_LDFLAGS: flags containing path to libbeagle libraries (-L options) # LIBBEAGLE_LDFLAGS: flags containing path to libbeagle libraries (-L options)
LIBBEAGLE_PACKAGES="libbeagle-0.0" LIBBEAGLE_PACKAGES="libbeagle-1.0"
LIBBEAGLE_VERSION="0.2.5" LIBBEAGLE_VERSION="0.3.0"
AC_MSG_CHECKING(for libbeagle-0.2.5 (at least $LIBBEAGLE_VERSION)) AC_MSG_CHECKING(for libbeagle-0.3.0 (at least $LIBBEAGLE_VERSION))
if $PKG_CONFIG --atleast-pkgconfig-version 0.15 ; then if $PKG_CONFIG --atleast-pkgconfig-version 0.15 ; then
if $PKG_CONFIG --atleast-version $LIBBEAGLE_VERSION $LIBBEAGLE_PACKAGES >/dev/null 2>&1 ; then if $PKG_CONFIG --atleast-version $LIBBEAGLE_VERSION $LIBBEAGLE_PACKAGES >/dev/null 2>&1 ; then

@ -33,8 +33,8 @@ kerry_la_LIBADD = -lkio -lkonq $(LIB_KDEUI) $(LIBBEAGLE_LIBADD) $(GLIB_LIBADD) $
autostartdir = $(datadir)/autostart autostartdir = $(datadir)/autostart
autostart_DATA = kerry.autostart.desktop beagled.desktop autostart_DATA = kerry.autostart.desktop beagled.desktop
shutdowndir = $(prefix)/shutdown shutdowndir = $(prefix)/bin
shutdown_SCRIPTS = beagled-shutdown.sh shutdown_SCRIPTS = beagled-shutdown
xdg_apps_DATA = kerry.desktop xdg_apps_DATA = kerry.desktop

@ -1,5 +1,4 @@
[Desktop Entry] [Desktop Entry]
Encoding=UTF-8
Type=Application Type=Application
Icon=kerry Icon=kerry
Exec=kcmshell beagle Exec=kcmshell beagle

@ -1279,7 +1279,7 @@ void SearchDlg::slotOpen()
} }
else if (item->uri().startsWith("knotes:/") ) else if (item->uri().startsWith("knotes:/") )
{ {
slotOpenKNotes(item->uri().mid(9,22)); slotOpenKNotes(item->uri().mid(10,21));
} }
else if (item->uri().startsWith("note:/")) { else if (item->uri().startsWith("note:/")) {
KProcess *proc = new KProcess; KProcess *proc = new KProcess;
@ -1350,7 +1350,6 @@ void SearchDlg::slotOpenKNotes(const QString &noteid)
QByteArray data; QByteArray data;
QDataStream arg(data, IO_WriteOnly); QDataStream arg(data, IO_WriteOnly);
arg << noteid; arg << noteid;
kapp->dcopClient()->send("knotes","KNotesIface","showNote(QString)", data); kapp->dcopClient()->send("knotes","KNotesIface","showNote(QString)", data);
} }
} }
@ -1819,6 +1818,11 @@ static QLabel* dateSwitches[dateSwitchesCount] = {showAnyDate, showToday, showSi
bool SearchDlg::ensureServiceRunning(const QString& name) bool SearchDlg::ensureServiceRunning(const QString& name)
{ {
QCString appname = name.utf8();
if (kapp->dcopClient()->isApplicationRegistered(appname)) {
return true;
}
else {
QStringList URLs; QStringList URLs;
QByteArray data, replyData; QByteArray data, replyData;
QCString replyType; QCString replyType;
@ -1848,5 +1852,6 @@ bool SearchDlg::ensureServiceRunning(const QString & name)
} }
return true; return true;
} }
}
#include "searchdlg.moc" #include "searchdlg.moc"

File diff suppressed because it is too large Load Diff
Loading…
Cancel
Save