diff options
author | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2010-10-15 21:31:07 +0800 |
---|---|---|
committer | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2010-10-18 16:11:46 +0800 |
commit | 359fed84d5ee5b0fb82699cb927dbc3293c235cc (patch) | |
tree | e8ac22417d85c6c49203e89fdc2293a6e725d2f3 | |
parent | 935bd1c90642bbef3430f19769e5649354f75731 (diff) | |
download | gsoc2013-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)
-rw-r--r-- | src/empathy-debugger.c | 9 |
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; } |