aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2010-10-15 21:31:07 +0800
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2010-10-18 16:11:46 +0800
commit359fed84d5ee5b0fb82699cb927dbc3293c235cc (patch)
treee8ac22417d85c6c49203e89fdc2293a6e725d2f3 /src
parent935bd1c90642bbef3430f19769e5649354f75731 (diff)
downloadgsoc2013-empathy-359fed84d5ee5b0fb82699cb927dbc3293c235cc.tar
gsoc2013-empathy-359fed84d5ee5b0fb82699cb927dbc3293c235cc.tar.gz
gsoc2013-empathy-359fed84d5ee5b0fb82699cb927dbc3293c235cc.tar.bz2
gsoc2013-empathy-359fed84d5ee5b0fb82699cb927dbc3293c235cc.tar.lz
gsoc2013-empathy-359fed84d5ee5b0fb82699cb927dbc3293c235cc.tar.xz
gsoc2013-empathy-359fed84d5ee5b0fb82699cb927dbc3293c235cc.tar.zst
gsoc2013-empathy-359fed84d5ee5b0fb82699cb927dbc3293c235cc.zip
empathy-debugger: use GtkApplication (#621339)
Diffstat (limited to 'src')
-rw-r--r--src/empathy-debugger.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/empathy-debugger.c b/src/empathy-debugger.c
index 9ff142b1c..2203041d1 100644
--- a/src/empathy-debugger.c
+++ b/src/empathy-debugger.c
@@ -27,16 +27,20 @@
#include "empathy-debug-window.h"
+#define EMPATHY_DEBUGGER_DBUS_NAME "org.gnome.Empathy.Debugger"
+
int
main (int argc,
char **argv)
{
GtkWidget *window;
+ GtkApplication *app;
g_thread_init (NULL);
- gtk_init (&argc, &argv);
empathy_gtk_init ();
+ app = gtk_application_new (EMPATHY_DEBUGGER_DBUS_NAME, &argc, &argv);
+
g_set_application_name (_("Empathy Debugger"));
gtk_window_set_default_icon_name ("empathy");
@@ -45,7 +49,8 @@ main (int argc,
window = empathy_debug_window_new (NULL);
g_signal_connect (window, "destroy", gtk_main_quit, NULL);
- gtk_main ();
+ gtk_application_run (app);
+ g_object_unref (app);
return EXIT_SUCCESS;
}