aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorXavier Claessens <xclaesse@src.gnome.org>2008-05-22 18:05:12 +0800
committerXavier Claessens <xclaesse@src.gnome.org>2008-05-22 18:05:12 +0800
commit52a2f629e73d8d50378530a621469b5e29406742 (patch)
tree6590c6e85ba73666912fc69734d3e3e8fb3187f6
parenteaeaab40ae4cf870301649df1ad81f1bfcca5e3d (diff)
downloadgsoc2013-empathy-52a2f629e73d8d50378530a621469b5e29406742.tar
gsoc2013-empathy-52a2f629e73d8d50378530a621469b5e29406742.tar.gz
gsoc2013-empathy-52a2f629e73d8d50378530a621469b5e29406742.tar.bz2
gsoc2013-empathy-52a2f629e73d8d50378530a621469b5e29406742.tar.lz
gsoc2013-empathy-52a2f629e73d8d50378530a621469b5e29406742.tar.xz
gsoc2013-empathy-52a2f629e73d8d50378530a621469b5e29406742.tar.zst
gsoc2013-empathy-52a2f629e73d8d50378530a621469b5e29406742.zip
Do not add a separator on the contact menu if there is no remove feature.
svn path=/trunk/; revision=1117
-rw-r--r--libempathy-gtk/empathy-contact-list-view.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/libempathy-gtk/empathy-contact-list-view.c b/libempathy-gtk/empathy-contact-list-view.c
index 6935ead50..58ae7711f 100644
--- a/libempathy-gtk/empathy-contact-list-view.c
+++ b/libempathy-gtk/empathy-contact-list-view.c
@@ -1293,10 +1293,9 @@ empathy_contact_list_view_get_contact_menu (EmpathyContactListView *view)
menu = empathy_contact_menu_new (contact, priv->contact_features);
- if (!menu &&
- !(priv->list_features & EMPATHY_CONTACT_LIST_FEATURE_CONTACT_REMOVE)) {
+ if (!(priv->list_features & EMPATHY_CONTACT_LIST_FEATURE_CONTACT_REMOVE)) {
g_object_unref (contact);
- return NULL;
+ return menu;
}
if (menu) {