empathy r1539 - trunk/libempathy



Author: xclaesse
Date: Mon Oct 13 07:53:31 2008
New Revision: 1539
URL: http://svn.gnome.org/viewvc/empathy?rev=1539&view=rev

Log:
auto-connect implies favorite

Modified:
   trunk/libempathy/empathy-chatroom.c

Modified: trunk/libempathy/empathy-chatroom.c
==============================================================================
--- trunk/libempathy/empathy-chatroom.c	(original)
+++ trunk/libempathy/empathy-chatroom.c	Mon Oct 13 07:53:31 2008
@@ -226,6 +226,11 @@
 		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 @@
 
 	priv->auto_connect = auto_connect;
 
+  if (priv->auto_connect)
+    {
+      /* auto_connect implies favorite */
+      priv->favorite = TRUE;
+    }
+
 	g_object_notify (G_OBJECT (chatroom), "auto-connect");
 }
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]