aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy/gossip-chatroom.c
diff options
context:
space:
mode:
authorXavier Claessens <xclaesse@gmail.com>2007-06-02 04:25:05 +0800
committerXavier Claessens <xclaesse@src.gnome.org>2007-06-02 04:25:05 +0800
commit9223336edde583afe690a3757d71188ed6ebf16d (patch)
tree1554ddeff64a9fcdb14978076ce6cb63a29d0aeb /libempathy/gossip-chatroom.c
parent7a99a96e5b81b8d573104d1809364d5969b6b83d (diff)
downloadgsoc2013-empathy-9223336edde583afe690a3757d71188ed6ebf16d.tar
gsoc2013-empathy-9223336edde583afe690a3757d71188ed6ebf16d.tar.gz
gsoc2013-empathy-9223336edde583afe690a3757d71188ed6ebf16d.tar.bz2
gsoc2013-empathy-9223336edde583afe690a3757d71188ed6ebf16d.tar.lz
gsoc2013-empathy-9223336edde583afe690a3757d71188ed6ebf16d.tar.xz
gsoc2013-empathy-9223336edde583afe690a3757d71188ed6ebf16d.tar.zst
gsoc2013-empathy-9223336edde583afe690a3757d71188ed6ebf16d.zip
Monitor changes on chatrooms.xml file and relead it when it's modified.
2007-06-01 Xavier Claessens <xclaesse@gmail.com> * libempathy-gtk/gossip-chatrooms-window.c: * libempathy-gtk/gossip-chat-window.c: * libempathy/gossip-chatroom.c: * libempathy/gossip-chatroom-manager.c: * configure.ac: Monitor changes on chatrooms.xml file and relead it when it's modified. connect chatroom-added/removed in some places where needed. svn path=/trunk/; revision=111
Diffstat (limited to 'libempathy/gossip-chatroom.c')
-rw-r--r--libempathy/gossip-chatroom.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/libempathy/gossip-chatroom.c b/libempathy/gossip-chatroom.c
index eccd2824c..5b1760fdd 100644
--- a/libempathy/gossip-chatroom.c
+++ b/libempathy/gossip-chatroom.c
@@ -300,12 +300,14 @@ gossip_chatroom_set_name (GossipChatroom *chatroom,
GossipChatroomPriv *priv;
g_return_if_fail (GOSSIP_IS_CHATROOM (chatroom));
- g_return_if_fail (name != NULL);
priv = GET_PRIV (chatroom);
g_free (priv->name);
- priv->name = g_strdup (name);
+ priv->name = NULL;
+ if (name) {
+ priv->name = g_strdup (name);
+ }
g_object_notify (G_OBJECT (chatroom), "name");
}