aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorxclaesse <xclaesse@4ee84921-47dd-4033-b63a-18d7a039a3e4>2008-07-15 22:00:46 +0800
committerxclaesse <xclaesse@4ee84921-47dd-4033-b63a-18d7a039a3e4>2008-07-15 22:00:46 +0800
commit9add9cfcca7237a86b96a44a9f03535ab5cf9083 (patch)
tree29113ac4a90a9c3ab8933005bfb6cf997cd4600a
parentd1bc637407ed43a95dd95b0c36997136e3fd5039 (diff)
downloadgsoc2013-empathy-9add9cfcca7237a86b96a44a9f03535ab5cf9083.tar
gsoc2013-empathy-9add9cfcca7237a86b96a44a9f03535ab5cf9083.tar.gz
gsoc2013-empathy-9add9cfcca7237a86b96a44a9f03535ab5cf9083.tar.bz2
gsoc2013-empathy-9add9cfcca7237a86b96a44a9f03535ab5cf9083.tar.lz
gsoc2013-empathy-9add9cfcca7237a86b96a44a9f03535ab5cf9083.tar.xz
gsoc2013-empathy-9add9cfcca7237a86b96a44a9f03535ab5cf9083.tar.zst
gsoc2013-empathy-9add9cfcca7237a86b96a44a9f03535ab5cf9083.zip
Fix reviewer complains
git-svn-id: svn+ssh://svn.gnome.org/svn/empathy/trunk@1250 4ee84921-47dd-4033-b63a-18d7a039a3e4
-rw-r--r--libempathy-gtk/empathy-contact-list-view.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/libempathy-gtk/empathy-contact-list-view.c b/libempathy-gtk/empathy-contact-list-view.c
index d51fade2a..9925527a5 100644
--- a/libempathy-gtk/empathy-contact-list-view.c
+++ b/libempathy-gtk/empathy-contact-list-view.c
@@ -153,7 +153,10 @@ contact_list_view_flash_foreach (GtkTreeModel *model,
GtkTreePath *parent_path = NULL;
GtkTreeIter parent_iter;
- gtk_tree_model_get (model, iter,
+ /* To be used with gtk_tree_model_foreach, update the status icon
+ * of the contact to show the event icon (on=TRUE) or the presence
+ * (on=FALSE) */
+ gtk_tree_model_get (model, iter,
EMPATHY_CONTACT_LIST_STORE_COL_CONTACT, &contact,
-1);
@@ -237,6 +240,7 @@ contact_list_view_flash_start (EmpathyContactListView *view)
priv->flash_timeout_id = g_timeout_add (FLASH_TIMEOUT,
(GSourceFunc) contact_list_view_flash_cb,
view);
+ contact_list_view_flash_cb (view);
}
static void
@@ -680,7 +684,8 @@ contact_list_view_row_activated_cb (EmpathyContactListView *view,
return;
}
- if (priv->event_manager) {
+ /* If the contact has an event, activate it */
+ if (priv->contact_features & EMPATHY_CONTACT_FEATURE_EVENT) {
GSList *events, *l;
events = empathy_event_manager_get_events (priv->event_manager);
@@ -694,6 +699,7 @@ contact_list_view_row_activated_cb (EmpathyContactListView *view,
}
}
+ /* There is no event for the contact, default action is starting a chat */
if (priv->contact_features & EMPATHY_CONTACT_FEATURE_CHAT) {
empathy_dispatcher_chat_with_contact (contact);
}