aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy-gtk/gossip-chat.c
diff options
context:
space:
mode:
authorXavier Claessens <xclaesse@gmail.com>2007-06-03 23:43:02 +0800
committerXavier Claessens <xclaesse@src.gnome.org>2007-06-03 23:43:02 +0800
commit23230ae320a27d2c66bf8e338a2cc197eafd6b3c (patch)
tree363e05eb7df53e1381d97826e5cb21bdca4eff2f /libempathy-gtk/gossip-chat.c
parent835cd9e9ed1327cf0bf98ae15c7a6761823c8f18 (diff)
downloadgsoc2013-empathy-23230ae320a27d2c66bf8e338a2cc197eafd6b3c.tar
gsoc2013-empathy-23230ae320a27d2c66bf8e338a2cc197eafd6b3c.tar.gz
gsoc2013-empathy-23230ae320a27d2c66bf8e338a2cc197eafd6b3c.tar.bz2
gsoc2013-empathy-23230ae320a27d2c66bf8e338a2cc197eafd6b3c.tar.lz
gsoc2013-empathy-23230ae320a27d2c66bf8e338a2cc197eafd6b3c.tar.xz
gsoc2013-empathy-23230ae320a27d2c66bf8e338a2cc197eafd6b3c.tar.zst
gsoc2013-empathy-23230ae320a27d2c66bf8e338a2cc197eafd6b3c.zip
Add all properties described by TP spec for the Text channel on
2007-06-03 Xavier Claessens <xclaesse@gmail.com> * libempathy-gtk/gossip-group-chat.c: * libempathy-gtk/gossip-private-chat.c: * libempathy-gtk/gossip-chat.c: * libempathy-gtk/gossip-chat.h: * libempathy/empathy-tp-chat.c: Add all properties described by TP spec for the Text channel on EmpathyTpChat. Make use of "name" and "subject" properties in GossipGroupChat. svn path=/trunk/; revision=118
Diffstat (limited to 'libempathy-gtk/gossip-chat.c')
-rw-r--r--libempathy-gtk/gossip-chat.c18
1 files changed, 11 insertions, 7 deletions
diff --git a/libempathy-gtk/gossip-chat.c b/libempathy-gtk/gossip-chat.c
index 37da0853c..5492edfbf 100644
--- a/libempathy-gtk/gossip-chat.c
+++ b/libempathy-gtk/gossip-chat.c
@@ -319,7 +319,6 @@ chat_destroy_cb (EmpathyTpChat *tp_chat,
GossipChat *chat)
{
GossipChatPriv *priv;
- GtkWidget *widget;
priv = GET_PRIV (chat);
@@ -327,12 +326,14 @@ chat_destroy_cb (EmpathyTpChat *tp_chat,
g_object_unref (priv->tp_chat);
priv->tp_chat = NULL;
}
+ priv->sensitive = FALSE;
gossip_chat_view_append_event (chat->view, _("Disconnected"));
+ gtk_widget_set_sensitive (chat->input_text_view, FALSE);
- widget = gossip_chat_get_widget (chat);
- gtk_widget_set_sensitive (widget, FALSE);
- priv->sensitive = FALSE;
+ if (GOSSIP_CHAT_GET_CLASS (chat)->set_tp_chat) {
+ GOSSIP_CHAT_GET_CLASS (chat)->set_tp_chat (chat, NULL);
+ }
}
static void
@@ -1284,7 +1285,6 @@ gossip_chat_set_tp_chat (GossipChat *chat,
EmpathyTpChat *tp_chat)
{
GossipChatPriv *priv;
- GtkWidget *widget;
g_return_if_fail (GOSSIP_IS_CHAT (chat));
g_return_if_fail (EMPATHY_IS_TP_CHAT (tp_chat));
@@ -1327,11 +1327,15 @@ gossip_chat_set_tp_chat (GossipChat *chat,
empathy_tp_chat_request_pending (tp_chat);
if (!priv->sensitive) {
- widget = gossip_chat_get_widget (chat);
- gtk_widget_set_sensitive (widget, TRUE);
+ gtk_widget_set_sensitive (chat->input_text_view, TRUE);
gossip_chat_view_append_event (chat->view, _("Connected"));
priv->sensitive = TRUE;
}
+
+ if (GOSSIP_CHAT_GET_CLASS (chat)->set_tp_chat) {
+ GOSSIP_CHAT_GET_CLASS (chat)->set_tp_chat (chat, tp_chat);
+ }
+
}
const gchar *