]> git.0d.be Git - empathy.git/commitdiff
new-chatroom-dialog: set default response
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Wed, 11 Jul 2012 09:50:45 +0000 (11:50 +0200)
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Wed, 11 Jul 2012 10:47:00 +0000 (12:47 +0200)
We want to activate the dialog when user hits 'Enter' so he joins the room
right away.

src/empathy-new-chatroom-dialog.c

index 72505472c37414bfa04a80411c8e80a35e2d5243..f0b6147b1e649663432a206edf2dec22fa2e9e06 100644 (file)
@@ -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");