Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Index: src/kigo-games.knsrc
- ===================================================================
- --- src/kigo-games.knsrc (revision 1093067)
- +++ src/kigo-games.knsrc (working copy)
- @@ -1,4 +1,4 @@
- -[KNewStuff2]
- +[KNewStuff3]
- ProvidersUrl=http://newstuff.kde.org/cgi-bin/hotstuff-provider?site=kigo
- TargetDir=kigo/games
- Uncompress=archive
- Index: src/gui/mainwindow.cpp
- ===================================================================
- --- src/gui/mainwindow.cpp (revision 1093067)
- +++ src/gui/mainwindow.cpp (working copy)
- @@ -35,7 +35,7 @@
- #include <KConfigDialog>
- #include <KFileDialog>
- #include <KGameThemeSelector>
- -#include <knewstuff2/engine.h>
- +#include <knewstuff3/downloaddialog.h>
- #include <KStandardDirs>
- #include <KStandardGameAction>
- #include <KToggleAction>
- @@ -156,15 +156,14 @@
- void MainWindow::getMoreGames()
- {
- - KNS::Engine engine(0);
- + KNS3::DownloadDialog dialog("kigo-games.knsrc", this);
- + dialog.exec();
- - if (engine.init("kigo-games.knsrc")) {
- - KNS::Entry::List entries = engine.downloadDialogModal(this);
- - /*if (entries.size() > 0) {
- - // do something with the modified entries here if you want
- - // such as rescaning your data folder or whatnot
- - }*/
- - }
- + KNS3::Entry::List entries = dialog.changedEntries();
- + /*if (entries.size() > 0) {
- + // do something with the modified entries here if you want
- + // such as rescaning your data folder or whatnot
- + }*/
- }
- void MainWindow::backendError()
- Index: src/kigo.knsrc
- ===================================================================
- --- src/kigo.knsrc (revision 1093067)
- +++ src/kigo.knsrc (working copy)
- @@ -1,4 +1,4 @@
- -[KNewStuff2]
- +[KNewStuff3]
- ProvidersUrl=http://newstuff.kde.org/cgi-bin/hotstuff-provider?site=kigo
- TargetDir=kigo/themes
- Uncompress=never
- Index: src/CMakeLists.txt
- ===================================================================
- --- src/CMakeLists.txt (revision 1093067)
- +++ src/CMakeLists.txt (working copy)
- @@ -27,7 +27,7 @@
- kde4_add_app_icon(kigo_SRCS "${CMAKE_CURRENT_SOURCE_DIR}/../data/icons/hi*-app-kigo.png")
- kde4_add_executable(kigo ${kigo_SRCS})
- -target_link_libraries(kigo ${KDE4_KDEUI_LIBS} ${KDE4_KIO_LIBS} kdegames ${KDE4_KNEWSTUFF2_LIBS})# ${KGGZGAMES_LIBS})
- +target_link_libraries(kigo ${KDE4_KDEUI_LIBS} ${KDE4_KIO_LIBS} kdegames ${KDE4_KNEWSTUFF3_LIBS})# ${KGGZGAMES_LIBS})
- install(TARGETS kigo ${INSTALL_TARGETS_DEFAULT_ARGS})
- install(FILES kigo.kcfg DESTINATION ${KCFG_INSTALL_DIR})
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement