From 1f3832a1368de214e95a38dd391367f8ae2456cb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sl=C3=A1vek=20Banko?= Date: Tue, 4 Feb 2014 02:46:39 +0100 Subject: Removed unnecessary dependency on dbus-tqt and dbus-1-tqt --- ksmserver/CMakeLists.txt | 4 +--- ksmserver/shutdowndlg.h | 13 ++----------- 2 files changed, 3 insertions(+), 14 deletions(-) (limited to 'ksmserver') diff --git a/ksmserver/CMakeLists.txt b/ksmserver/CMakeLists.txt index dc197e1f8..fdd521b90 100644 --- a/ksmserver/CMakeLists.txt +++ b/ksmserver/CMakeLists.txt @@ -23,14 +23,12 @@ include_directories( ${CMAKE_SOURCE_DIR}/tdmlib ${TDE_INCLUDE_DIR} ${TQT_INCLUDE_DIRS} - ${DBUS_1_TQT_INCLUDE_DIRS} ${DBUS_TQT_INCLUDE_DIRS} ${HAL_INCLUDE_DIRS} ) link_directories( ${TQT_LIBRARY_DIRS} - ${DBUS_1_TQT_LIBRARY_DIRS} ${DBUS_TQT_LIBRARY_DIRS} ) @@ -50,5 +48,5 @@ tde_add_tdeinit_executable( ksmserver AUTOMOC main.cpp server.cpp shutdowndlg.cpp startupdlg.cpp legacy.cpp startup.cpp shutdown.cpp client.cpp KSMServerInterface.skel server.skel timed.ui - LINK dmctl-static tdeui-shared tdersync-shared ${HAL_LIBRARIES} ${DBUS_1_TQT_LIBRARIES} ${DBUS_TQT_LIBRARIES} + LINK dmctl-static tdeui-shared tdersync-shared ${HAL_LIBRARIES} ${DBUS_TQT_LIBRARIES} ) diff --git a/ksmserver/shutdowndlg.h b/ksmserver/shutdowndlg.h index d8f6b9d3b..a3864e616 100644 --- a/ksmserver/shutdowndlg.h +++ b/ksmserver/shutdowndlg.h @@ -34,20 +34,15 @@ class TDEAction; #include -#ifdef WITH_UPOWER - #include -#else - #warning test +#ifdef COMPILE_HALBACKEND #ifndef NO_QT3_DBUS_SUPPORT /* We acknowledge the the dbus API is unstable */ #define DBUS_API_SUBJECT_TO_CHANGE #include #endif // NO_QT3_DBUS_SUPPORT - #ifdef COMPILE_HALBACKEND #include - #endif -#endif // WITH_UPOWER +#endif // COMPILE_HALBACKEND // The (singleton) widget that makes/fades the desktop gray. class KSMShutdownFeedback : public TQWidget @@ -153,14 +148,10 @@ private: TQString m_bootOption; TQPopupMenu *targets; TQStringList rebootOptions; -#ifdef WITH_UPOWER - TQT_DBusConnection m_dbusConn; -#else #ifdef COMPILE_HALBACKEND LibHalContext* m_halCtx; DBusConnection *m_dbusConn; #endif -#endif // WITH_UPOWER bool m_lockOnResume; int* m_selection; }; -- cgit v1.2.1