diff options
author | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2011-10-17 20:14:31 +0800 |
---|---|---|
committer | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2011-10-18 16:46:21 +0800 |
commit | 90c54d2cfa5ebab8343906cde98845e1186a42d3 (patch) | |
tree | b031fdb4ef9afee38058669f71c37beae0112d9c | |
parent | 061d4ab96a0ebde9665192c3712ca3928ff2c679 (diff) | |
download | gsoc2013-empathy-90c54d2cfa5ebab8343906cde98845e1186a42d3.tar gsoc2013-empathy-90c54d2cfa5ebab8343906cde98845e1186a42d3.tar.gz gsoc2013-empathy-90c54d2cfa5ebab8343906cde98845e1186a42d3.tar.bz2 gsoc2013-empathy-90c54d2cfa5ebab8343906cde98845e1186a42d3.tar.lz gsoc2013-empathy-90c54d2cfa5ebab8343906cde98845e1186a42d3.tar.xz gsoc2013-empathy-90c54d2cfa5ebab8343906cde98845e1186a42d3.tar.zst gsoc2013-empathy-90c54d2cfa5ebab8343906cde98845e1186a42d3.zip |
invite-participant-dialog: activate the dialog when the chooser is activated
https://bugzilla.gnome.org/show_bug.cgi?id=661993
-rw-r--r-- | src/empathy-invite-participant-dialog.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/empathy-invite-participant-dialog.c b/src/empathy-invite-participant-dialog.c index 9280dda32..7651fad38 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); |