]> git.0d.be Git - empathy.git/commitdiff
Do not highlight contacts already known when creating the contact list. Do
authorXavier Claessens <xclaesse@gmail.com>
Sat, 26 May 2007 14:10:47 +0000 (14:10 +0000)
committerXavier Claessens <xclaesse@src.gnome.org>
Sat, 26 May 2007 14:10:47 +0000 (14:10 +0000)
2007-05-26  Xavier Claessens  <xclaesse@gmail.com>

* libempathy-gtk/gossip-contact-list-store.c: Do not highlight contacts
already known when creating the contact list.
* libempathy/empathy-tp-contact-list.c: Do not set alias if DBus
returns an error.
* libempathy/empathy-idle.c: Do not set status message to
"Extended autoaway", let user's message unchanged.

svn path=/trunk/; revision=99

ChangeLog
libempathy-gtk/gossip-contact-list-store.c
libempathy/empathy-idle.c
libempathy/empathy-tp-contact-list.c

index 5fe6e428cf7602b70fde26ebe59e39315cda8c91..56836288725809c378957500c79bb40ffb466285 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2007-05-26  Xavier Claessens  <xclaesse@gmail.com>
+
+       * libempathy-gtk/gossip-contact-list-store.c: Do not highlight contacts
+       already known when creating the contact list.
+       * libempathy/empathy-tp-contact-list.c: Do not set alias if DBus
+       returns an error.
+       * libempathy/empathy-idle.c: Do not set status message to
+       "Extended autoaway", let user's message unchanged.
+
 2007-05-25  Xavier Claessens  <xclaesse@gmail.com>
 
        * configure.ac: Bump version to 0.6
@@ -10,7 +19,6 @@
        request fails.
        * data/22x22/empathy-group-message.png:
        * data/22x22/Makefile.am: Add group message icon.
-
 2007-05-25  Xavier Claessens  <xclaesse@gmail.com>
 
        * libempathy-gtk/gossip-new-chatroom-dialog.c: Do not use the server
index c8a43ed5ab1a7ab5a7705cb387f99c7376575e7d..f0ff476ddd69d7f35b99125aa8bfc8e80e200dfb 100644 (file)
@@ -320,6 +320,7 @@ gossip_contact_list_store_new (EmpathyContactList *list_iface)
        GossipContactListStore     *store;
        GossipContactListStorePriv *priv;
        GList                      *contacts, *l;
+       gboolean                    show_active;
 
        g_return_val_if_fail (EMPATHY_IS_CONTACT_LIST (list_iface), NULL);
 
@@ -339,7 +340,9 @@ gossip_contact_list_store_new (EmpathyContactList *list_iface)
                          G_CALLBACK (contact_list_store_contact_removed_cb),
                          store);
 
-       /* Add contacts already created */
+       /* Add contacts already created. Do not highlight them. */
+       show_active = priv->show_active;
+       priv->show_active = FALSE;
        contacts = empathy_contact_list_get_contacts (priv->list);
        for (l = contacts; l; l = l->next) {
                GossipContact *contact;
@@ -351,6 +354,7 @@ gossip_contact_list_store_new (EmpathyContactList *list_iface)
                g_object_unref (contact);
        }
        g_list_free (contacts);
+       priv->show_active = show_active;
 
        return store;
 }
index bf81160600b2c8ed4a806ee90ae87dad3815ba44..42719a47eb0d27fbb2b50c3ce6f9d3efa814fc14 100644 (file)
@@ -231,7 +231,7 @@ idle_ext_away_cb (EmpathyIdle *idle)
        gossip_debug (DEBUG_DOMAIN, "Going to extended autoaway");
        mission_control_set_presence (priv->mc,
                                      MC_PRESENCE_EXTENDED_AWAY,
-                                     _("Extended autoaway"),
+                                     priv->saved_status,
                                      NULL, NULL);
 
        priv->ext_away_timeout = 0;
index 8338e9eb458daa313004d98219c5f64b7a829ba8..64bec75ff052b1642488f6e719cf20cbd9040e97 100644 (file)
@@ -1719,11 +1719,11 @@ tp_contact_list_request_aliases_cb (DBusGProxy                       *proxy,
                              error->message);
        }
 
-       for (name = contact_names; *name; name++) {
+       for (name = contact_names; *name && !error; name++) {
                GossipContact *contact;
 
                contact = empathy_tp_contact_list_get_from_handle (data->list,
-                                                               data->handles[i]);
+                                                                  data->handles[i]);
                tp_contact_list_block_contact (data->list, contact);
                gossip_contact_set_name (contact, *name);
                tp_contact_list_unblock_contact (data->list, contact);