summaryrefslogtreecommitdiffstats
path: root/src/Applet/Applet.cpp
diff options
context:
space:
mode:
authorJiri Moskovcak <jmoskovc@redhat.com>2009-02-19 14:28:58 +0100
committerJiri Moskovcak <jmoskovc@redhat.com>2009-02-19 14:28:58 +0100
commit67a0890956d2c9878e2fdaf078c90551548b765c (patch)
treeb087371b230e13dc7fae05f8fe6991d17435baf9 /src/Applet/Applet.cpp
parent0979cbdd39166d6b5a42380e3ff6297e77d1236d (diff)
downloadabrt-67a0890956d2c9878e2fdaf078c90551548b765c.tar.gz
abrt-67a0890956d2c9878e2fdaf078c90551548b765c.tar.xz
abrt-67a0890956d2c9878e2fdaf078c90551548b765c.zip
Rewritten applet - got rid of gtkmm
Diffstat (limited to 'src/Applet/Applet.cpp')
-rw-r--r--src/Applet/Applet.cpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/Applet/Applet.cpp b/src/Applet/Applet.cpp
index cc40642..b33cc9f 100644
--- a/src/Applet/Applet.cpp
+++ b/src/Applet/Applet.cpp
@@ -38,7 +38,11 @@ crash_notify_cb(const char* progname)
int main(int argc, char **argv)
{
- Gtk::Main kit(argc, argv);
+ /* need to be thread safe */
+ g_thread_init(NULL);
+ gdk_threads_init();
+ gdk_threads_enter();
+ gtk_init(&argc,&argv);
applet = new CApplet();
/* move to the DBusClient::connect */
DBus::Glib::BusDispatcher dispatcher;
@@ -49,6 +53,7 @@ int main(int argc, char **argv)
DBus::Connection conn = DBus::Connection::SystemBus();
CDBusClient client(conn, CC_DBUS_PATH, CC_DBUS_NAME);
client.ConnectCrashHandler(crash_notify_cb);
- Gtk::Main::run();
+ gtk_main();
+ gdk_threads_leave();
return 0;
}