diff options
author | Danielle Madeley <danielle.madeley@collabora.co.uk> | 2011-03-03 21:16:18 +0800 |
---|---|---|
committer | Emilio Pozuelo Monfort <emilio.pozuelo@collabora.co.uk> | 2011-03-03 21:35:13 +0800 |
commit | 897a8fc900ff393f204b5e5a6e1ba2b2e170f1a3 (patch) | |
tree | 7f92a5b466c2b9feae6d714a7e60502269ccd658 /libempathy-gtk/empathy-contact-search-dialog.c | |
parent | a5667a859d34c1d79c966f625e6c7f8997f4af36 (diff) | |
download | gsoc2013-empathy-897a8fc900ff393f204b5e5a6e1ba2b2e170f1a3.tar gsoc2013-empathy-897a8fc900ff393f204b5e5a6e1ba2b2e170f1a3.tar.gz gsoc2013-empathy-897a8fc900ff393f204b5e5a6e1ba2b2e170f1a3.tar.bz2 gsoc2013-empathy-897a8fc900ff393f204b5e5a6e1ba2b2e170f1a3.tar.lz gsoc2013-empathy-897a8fc900ff393f204b5e5a6e1ba2b2e170f1a3.tar.xz gsoc2013-empathy-897a8fc900ff393f204b5e5a6e1ba2b2e170f1a3.tar.zst gsoc2013-empathy-897a8fc900ff393f204b5e5a6e1ba2b2e170f1a3.zip |
Emit RESPONSE_APPLY on row-activated
Diffstat (limited to 'libempathy-gtk/empathy-contact-search-dialog.c')
-rw-r--r-- | libempathy-gtk/empathy-contact-search-dialog.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/libempathy-gtk/empathy-contact-search-dialog.c b/libempathy-gtk/empathy-contact-search-dialog.c index cd62a1940..ce5c578ac 100644 --- a/libempathy-gtk/empathy-contact-search-dialog.c +++ b/libempathy-gtk/empathy-contact-search-dialog.c @@ -432,6 +432,16 @@ empathy_account_chooser_filter_supports_contact_search ( } static void +contact_search_dialog_row_activated_cb (GtkTreeView *tv, + GtkTreePath *path, + GtkTreeViewColumn *column, + EmpathyContactSearchDialog *self) +{ + /* just emit the same response as the Add Button */ + gtk_dialog_response (GTK_DIALOG (self), GTK_RESPONSE_APPLY); +} + +static void empathy_contact_search_dialog_init (EmpathyContactSearchDialog *self) { EmpathyContactSearchDialogPrivate *priv = GET_PRIVATE (self); @@ -500,6 +510,8 @@ empathy_contact_search_dialog_init (EmpathyContactSearchDialog *self) selection = gtk_tree_view_get_selection (GTK_TREE_VIEW (priv->tree_view)); gtk_tree_selection_set_mode (selection, GTK_SELECTION_SINGLE); + g_signal_connect (priv->tree_view, "row-activated", + G_CALLBACK (contact_search_dialog_row_activated_cb), self); g_signal_connect (selection, "changed", G_CALLBACK (on_selection_changed), self); |