summaryrefslogtreecommitdiffstats
path: root/src/Applet/Applet.cpp
diff options
context:
space:
mode:
authorJiri Moskovcak <jmoskovc@redhat.com>2009-02-19 14:52:09 +0100
committerJiri Moskovcak <jmoskovc@redhat.com>2009-02-19 14:52:09 +0100
commit71d3637ffe75f9dd910d418e9b9d5242ec9ac423 (patch)
tree46938b59068d0f8a0d5ba61db6305cd2dee10a75 /src/Applet/Applet.cpp
parente5fdb1cbef199fd48ed7615cc83383bc55a345fa (diff)
downloadabrt-71d3637ffe75f9dd910d418e9b9d5242ec9ac423.tar.gz
abrt-71d3637ffe75f9dd910d418e9b9d5242ec9ac423.tar.xz
abrt-71d3637ffe75f9dd910d418e9b9d5242ec9ac423.zip
Moved dbus backend from lib to applet - better OO model.
Diffstat (limited to 'src/Applet/Applet.cpp')
-rw-r--r--src/Applet/Applet.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/Applet/Applet.cpp b/src/Applet/Applet.cpp
index b33cc9f1..8984e0e2 100644
--- a/src/Applet/Applet.cpp
+++ b/src/Applet/Applet.cpp
@@ -18,7 +18,6 @@
*/
#include "CCApplet.h"
-#include "DBusClient.h"
#include <iostream>
//@@global applet object
@@ -43,7 +42,6 @@ int main(int argc, char **argv)
gdk_threads_init();
gdk_threads_enter();
gtk_init(&argc,&argv);
- applet = new CApplet();
/* move to the DBusClient::connect */
DBus::Glib::BusDispatcher dispatcher;
/* this should bind the dispatcher with mainloop */
@@ -51,8 +49,9 @@ int main(int argc, char **argv)
DBus::default_dispatcher = &dispatcher;
DBus::Connection conn = DBus::Connection::SystemBus();
- CDBusClient client(conn, CC_DBUS_PATH, CC_DBUS_NAME);
- client.ConnectCrashHandler(crash_notify_cb);
+ //CDBusClient client(conn, CC_DBUS_PATH, CC_DBUS_NAME);
+ applet = new CApplet(conn, CC_DBUS_PATH, CC_DBUS_NAME);
+ applet->ConnectCrashHandler(crash_notify_cb);
gtk_main();
gdk_threads_leave();
return 0;