From 8bcfaf8f90a53ea4cd5fd92937aab8d313e373cb Mon Sep 17 00:00:00 2001 From: Guillaume Desmottes Date: Mon, 18 Jun 2012 10:58:36 +0200 Subject: 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. --- libempathy-gtk/empathy-roster-view.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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); -- cgit v1.2.3