aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy
diff options
context:
space:
mode:
authorXavier Claessens <xclaesse@src.gnome.org>2008-10-13 15:53:31 +0800
committerXavier Claessens <xclaesse@src.gnome.org>2008-10-13 15:53:31 +0800
commitc1a9949c8c94bf7392b99320d0ead6836d429293 (patch)
tree3c413c47ffea927dc92e8922913f01d97c84de66 /libempathy
parent1b58cac1d0063bd150b152bd482047cb930174eb (diff)
downloadgsoc2013-empathy-c1a9949c8c94bf7392b99320d0ead6836d429293.tar
gsoc2013-empathy-c1a9949c8c94bf7392b99320d0ead6836d429293.tar.gz
gsoc2013-empathy-c1a9949c8c94bf7392b99320d0ead6836d429293.tar.bz2
gsoc2013-empathy-c1a9949c8c94bf7392b99320d0ead6836d429293.tar.lz
gsoc2013-empathy-c1a9949c8c94bf7392b99320d0ead6836d429293.tar.xz
gsoc2013-empathy-c1a9949c8c94bf7392b99320d0ead6836d429293.tar.zst
gsoc2013-empathy-c1a9949c8c94bf7392b99320d0ead6836d429293.zip
auto-connect implies favorite
svn path=/trunk/; revision=1539
Diffstat (limited to 'libempathy')
-rw-r--r--libempathy/empathy-chatroom.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/libempathy/empathy-chatroom.c b/libempathy/empathy-chatroom.c
index 5c25de3ca..ac81af252 100644
--- a/libempathy/empathy-chatroom.c
+++ b/libempathy/empathy-chatroom.c
@@ -226,6 +226,11 @@ chatroom_set_property (GObject *object,
break;
case PROP_FAVORITE:
priv->favorite = g_value_get_boolean (value);
+ if (!priv->favorite)
+ {
+ empathy_chatroom_set_auto_connect (EMPATHY_CHATROOM (object),
+ FALSE);
+ }
break;
case PROP_TP_CHANNEL:
if (priv->tp_channel != NULL)
@@ -387,6 +392,12 @@ empathy_chatroom_set_auto_connect (EmpathyChatroom *chatroom,
priv->auto_connect = auto_connect;
+ if (priv->auto_connect)
+ {
+ /* auto_connect implies favorite */
+ priv->favorite = TRUE;
+ }
+
g_object_notify (G_OBJECT (chatroom), "auto-connect");
}