[empathy] empathy-chat: load and register the JavaScript resource
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [empathy] empathy-chat: load and register the JavaScript resource
- Date: Mon, 21 Jan 2013 15:43:03 +0000 (UTC)
commit 3197deed2e55d252ecaf4740ec61416977f9f87e
Author: Debarshi Ray <debarshir src gnome org>
Date: Wed Jul 4 15:13:24 2012 +0200
empathy-chat: load and register the JavaScript resource
Fixes: https://bugzilla.gnome.org/639877
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 da69a8e..0e571bc 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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]