[empathy] roster-view: select the child when firing the popup menu



commit 8bcfaf8f90a53ea4cd5fd92937aab8d313e373cb
Author: Guillaume Desmottes <guillaume desmottes collabora co uk>
Date:   Mon Jun 18 10:58:36 2012 +0200

    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 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/libempathy-gtk/empathy-roster-view.c b/libempathy-gtk/empathy-roster-view.c
index 201c5e6..1b1c394 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);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]