]> git.0d.be Git - empathy.git/commitdiff
empathy-chat: load and register the JavaScript resource
authorDebarshi Ray <debarshir@src.gnome.org>
Wed, 4 Jul 2012 13:13:24 +0000 (15:13 +0200)
committerDebarshi Ray <debarshir@src.gnome.org>
Mon, 21 Jan 2013 15:42:24 +0000 (16:42 +0100)
Fixes: https://bugzilla.gnome.org/639877
src/empathy-chat.c

index da69a8ebe3c021248e64321228c1bd0abd016c97..0e571bc3b3a1fcde6e7d4691c70f33dc6eabab22 100644 (file)
@@ -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;