X-Git-Url: https://git.0d.be/?p=empathy.git;a=blobdiff_plain;f=src%2Fempathy-invite-participant-dialog.c;h=7651fad3874e70fb7628c3aca43a516872a835d3;hp=9280dda3274125a9c85aaf4a51418e37e0a7393a;hb=90c54d2cfa5ebab8343906cde98845e1186a42d3;hpb=061d4ab96a0ebde9665192c3712ca3928ff2c679 diff --git a/src/empathy-invite-participant-dialog.c b/src/empathy-invite-participant-dialog.c index 9280dda3..7651fad3 100644 --- a/src/empathy-invite-participant-dialog.c +++ b/src/empathy-invite-participant-dialog.c @@ -97,6 +97,13 @@ selection_changed_cb (GtkWidget *treeview, gtk_widget_set_sensitive (self->priv->invite_button, selected != NULL); } +static void +activate_cb (GtkWidget *chooser, + EmpathyInviteParticipantDialog *self) +{ + gtk_dialog_response (GTK_DIALOG (self), GTK_RESPONSE_ACCEPT); +} + /* Return the TpContact of @individual which is on the same connection as the * EmpathyTpChat */ static TpContact * @@ -197,6 +204,8 @@ invite_participant_dialog_constructed (GObject *object) g_signal_connect (self->priv->chooser, "selection-changed", G_CALLBACK (selection_changed_cb), self); + g_signal_connect (self->priv->chooser, "activate", + G_CALLBACK (activate_cb), self); self->priv->invite_button = gtk_dialog_add_button (dialog, _("Invite"), GTK_RESPONSE_ACCEPT);