aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy-gtk
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2012-06-18 16:58:36 +0800
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2012-06-18 18:06:28 +0800
commit8bcfaf8f90a53ea4cd5fd92937aab8d313e373cb (patch)
treec37b2e9a38d63195e972af1656e58f593529de56 /libempathy-gtk
parent00a6f4588e7c564ff5a4a0a5aa6650775532f701 (diff)
downloadgsoc2013-empathy-8bcfaf8f90a53ea4cd5fd92937aab8d313e373cb.tar
gsoc2013-empathy-8bcfaf8f90a53ea4cd5fd92937aab8d313e373cb.tar.gz
gsoc2013-empathy-8bcfaf8f90a53ea4cd5fd92937aab8d313e373cb.tar.bz2
gsoc2013-empathy-8bcfaf8f90a53ea4cd5fd92937aab8d313e373cb.tar.lz
gsoc2013-empathy-8bcfaf8f90a53ea4cd5fd92937aab8d313e373cb.tar.xz
gsoc2013-empathy-8bcfaf8f90a53ea4cd5fd92937aab8d313e373cb.tar.zst
gsoc2013-empathy-8bcfaf8f90a53ea4cd5fd92937aab8d313e373cb.zip
roster-view: select the child when firing the popup menu
It's a bit weird to have the popup being open without knowing for sure which contact it's referring to.
Diffstat (limited to 'libempathy-gtk')
-rw-r--r--libempathy-gtk/empathy-roster-view.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/libempathy-gtk/empathy-roster-view.c b/libempathy-gtk/empathy-roster-view.c
index 201c5e639..1b1c394d1 100644
--- a/libempathy-gtk/empathy-roster-view.c
+++ b/libempathy-gtk/empathy-roster-view.c
@@ -1184,7 +1184,11 @@ empathy_roster_view_button_press_event (GtkWidget *widget,
child = egg_list_box_get_child_at_y (EGG_LIST_BOX (self), event->y);
if (child != NULL)
- fire_popup_individual_menu (self, child, event->button, event->time);
+ {
+ egg_list_box_select_child (EGG_LIST_BOX (self), child);
+
+ fire_popup_individual_menu (self, child, event->button, event->time);
+ }
}
return chain_up (widget, event);