[empathy] Adium: Events must be queued until the Template.html loaded
- From: Xavier Claessens <xclaesse src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [empathy] Adium: Events must be queued until the Template.html loaded
- Date: Tue, 3 May 2011 09:37:17 +0000 (UTC)
commit 9c9775421d361b2f615bb06a7e9286bfeb912da0
Author: Xavier Claessens <xclaesse gmail com>
Date: Tue May 3 11:11:43 2011 +0200
Adium: Events must be queued until the Template.html loaded
libempathy-gtk/empathy-theme-adium.c | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/libempathy-gtk/empathy-theme-adium.c b/libempathy-gtk/empathy-theme-adium.c
index 0d09de9..8d5b3b7 100644
--- a/libempathy-gtk/empathy-theme-adium.c
+++ b/libempathy-gtk/empathy-theme-adium.c
@@ -833,8 +833,15 @@ static void
theme_adium_append_event (EmpathyChatView *view,
const gchar *str)
{
+ EmpathyThemeAdiumPriv *priv = GET_PRIV (view);
gchar *str_escaped;
+ if (priv->pages_loading != 0) {
+ /* FIXME: events should be queued until page loaded */
+ DEBUG ("Error appending event (%s): Page not loaded", str);
+ return;
+ }
+
str_escaped = g_markup_escape_text (str, -1);
theme_adium_append_event_escaped (view, str_escaped);
g_free (str_escaped);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]