diff options
author | Danielle Madeley <danielle.madeley@collabora.co.uk> | 2011-10-20 12:29:51 +0800 |
---|---|---|
committer | Danielle Madeley <danielle.madeley@collabora.co.uk> | 2011-10-20 12:29:51 +0800 |
commit | 1358b8ae4551e659e3a61a7d1dc41b768cab46ea (patch) | |
tree | d3884b6a2bdc74cffa94e3ca0c58a4090e04579d /libempathy-gtk | |
parent | cac463c56410465da586d911516dfaf5b7e0233d (diff) | |
download | gsoc2013-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.
Diffstat (limited to 'libempathy-gtk')
-rw-r--r-- | libempathy-gtk/empathy-contact-chooser.c | 11 |
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); |