aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDanielle Madeley <danielle.madeley@collabora.co.uk>2011-10-20 12:29:51 +0800
committerDanielle Madeley <danielle.madeley@collabora.co.uk>2011-10-20 12:29:51 +0800
commit1358b8ae4551e659e3a61a7d1dc41b768cab46ea (patch)
treed3884b6a2bdc74cffa94e3ca0c58a4090e04579d
parentcac463c56410465da586d911516dfaf5b7e0233d (diff)
downloadgsoc2013-empathy-1358b8ae4551e659e3a61a7d1dc41b768cab46ea.tar
gsoc2013-empathy-1358b8ae4551e659e3a61a7d1dc41b768cab46ea.tar.gz
gsoc2013-empathy-1358b8ae4551e659e3a61a7d1dc41b768cab46ea.tar.bz2
gsoc2013-empathy-1358b8ae4551e659e3a61a7d1dc41b768cab46ea.tar.lz
gsoc2013-empathy-1358b8ae4551e659e3a61a7d1dc41b768cab46ea.tar.xz
gsoc2013-empathy-1358b8ae4551e659e3a61a7d1dc41b768cab46ea.tar.zst
gsoc2013-empathy-1358b8ae4551e659e3a61a7d1dc41b768cab46ea.zip
[contact-chooser] emit 'activate' on 'row-activated' as well
This means the selection can be activated when the treeview is focused.
-rw-r--r--libempathy-gtk/empathy-contact-chooser.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/libempathy-gtk/empathy-contact-chooser.c b/libempathy-gtk/empathy-contact-chooser.c
index 1e61667fa..5444ff5ad 100644
--- a/libempathy-gtk/empathy-contact-chooser.c
+++ b/libempathy-gtk/empathy-contact-chooser.c
@@ -301,6 +301,15 @@ search_activate_cb (GtkEntry *entry,
}
static void
+view_activate_cb (GtkTreeView *view,
+ GtkTreePath *path,
+ GtkTreeViewColumn *column,
+ EmpathyContactChooser *self)
+{
+ g_signal_emit (self, signals[SIG_ACTIVATE], 0);
+}
+
+static void
empathy_contact_chooser_init (EmpathyContactChooser *self)
{
EmpathyIndividualManager *mgr;
@@ -346,6 +355,8 @@ empathy_contact_chooser_init (EmpathyContactChooser *self)
g_signal_connect (selection, "changed",
G_CALLBACK (view_selection_changed_cb), self);
+ g_signal_connect (self->priv->view, "row-activated",
+ G_CALLBACK (view_activate_cb), self);
scroll = gtk_scrolled_window_new (NULL, NULL);