]> git.0d.be Git - empathy.git/commitdiff
roster-view: select the child when firing the popup menu
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Mon, 18 Jun 2012 08:58:36 +0000 (10:58 +0200)
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Mon, 18 Jun 2012 10:06:28 +0000 (12:06 +0200)
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

index 201c5e639502daa5675bf11973b3502c5dbe3e4d..1b1c394d17428f292835ef8141d3206331c9f26a 100644 (file)
@@ -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);