diff options
author | Debarshi Ray <debarshir@src.gnome.org> | 2012-07-04 21:13:24 +0800 |
---|---|---|
committer | Debarshi Ray <debarshir@src.gnome.org> | 2013-01-21 23:42:24 +0800 |
commit | 3197deed2e55d252ecaf4740ec61416977f9f87e (patch) | |
tree | 666f11659c8130462bc0e2a4bf1786ef8f28fd2b /src/empathy-chat.c | |
parent | 4ccbecd15680fd76ac5ebf1b8da82bffc8f68ca0 (diff) | |
download | gsoc2013-empathy-3197deed2e55d252ecaf4740ec61416977f9f87e.tar gsoc2013-empathy-3197deed2e55d252ecaf4740ec61416977f9f87e.tar.gz gsoc2013-empathy-3197deed2e55d252ecaf4740ec61416977f9f87e.tar.bz2 gsoc2013-empathy-3197deed2e55d252ecaf4740ec61416977f9f87e.tar.lz gsoc2013-empathy-3197deed2e55d252ecaf4740ec61416977f9f87e.tar.xz gsoc2013-empathy-3197deed2e55d252ecaf4740ec61416977f9f87e.tar.zst gsoc2013-empathy-3197deed2e55d252ecaf4740ec61416977f9f87e.zip |
empathy-chat: load and register the JavaScript resource
Fixes: https://bugzilla.gnome.org/639877
Diffstat (limited to 'src/empathy-chat.c')
-rw-r--r-- | src/empathy-chat.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/empathy-chat.c b/src/empathy-chat.c index da69a8ebe..0e571bc3b 100644 --- a/src/empathy-chat.c +++ b/src/empathy-chat.c @@ -34,6 +34,7 @@ #include <libempathy-gtk/empathy-ui-utils.h> #include "empathy-chat-manager.h" +#include "empathy-chat-resources.h" #define DEBUG_FLAG EMPATHY_DEBUG_CHAT #include <libempathy/empathy-debug.h> @@ -91,6 +92,7 @@ main (int argc, GOptionEntry options[] = { { NULL } }; + GResource *resource; #ifdef ENABLE_DEBUG TpDebugSender *debug_sender; #endif @@ -124,6 +126,9 @@ main (int argc, notify_init (_(PACKAGE_NAME)); + resource = empathy_chat_get_resource (); + g_resources_register (resource); + app = gtk_application_new (EMPATHY_CHAT_DBUS_NAME, G_APPLICATION_FLAGS_NONE); g_signal_connect (app, "activate", G_CALLBACK (activate_cb), NULL); @@ -164,6 +169,9 @@ main (int argc, g_object_unref (debug_sender); #endif + g_resources_unregister (resource); + g_resource_unref (resource); + notify_uninit (); return retval; |