[empathy] new-chatroom-dialog: set default response
- From: Guillaume Desmottes <gdesmott src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [empathy] new-chatroom-dialog: set default response
- Date: Wed, 11 Jul 2012 10:47:10 +0000 (UTC)
commit cdd2887a1d29b6e8a4489980991dc5283e7065d7
Author: Guillaume Desmottes <guillaume desmottes collabora co uk>
Date: Wed Jul 11 11:50:45 2012 +0200
new-chatroom-dialog: set default response
We want to activate the dialog when user hits 'Enter' so he joins the room
right away.
src/empathy-new-chatroom-dialog.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/empathy-new-chatroom-dialog.c b/src/empathy-new-chatroom-dialog.c
index 7250547..f0b6147 100644
--- a/src/empathy-new-chatroom-dialog.c
+++ b/src/empathy-new-chatroom-dialog.c
@@ -779,6 +779,8 @@ empathy_new_chatroom_dialog_init (EmpathyNewChatroomDialog *self)
self->priv->button_join = gtk_dialog_add_button (GTK_DIALOG (self),
_("Join"), GTK_RESPONSE_OK);
+ gtk_dialog_set_default_response (GTK_DIALOG (self), GTK_RESPONSE_OK);
+
gtk_window_set_title (GTK_WINDOW (self), _("Join Room"));
gtk_window_set_role (GTK_WINDOW (self), "join_new_chatroom");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]