From 3197deed2e55d252ecaf4740ec61416977f9f87e Mon Sep 17 00:00:00 2001 From: Debarshi Ray Date: Wed, 4 Jul 2012 15:13:24 +0200 Subject: empathy-chat: load and register the JavaScript resource Fixes: https://bugzilla.gnome.org/639877 --- src/empathy-chat.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src') 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 #include "empathy-chat-manager.h" +#include "empathy-chat-resources.h" #define DEBUG_FLAG EMPATHY_DEBUG_CHAT #include @@ -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; -- cgit v1.2.3