Commit 793e6333 authored by Colomban Wendling's avatar Colomban Wendling

GTK client: reset connection dialog message on reshow

parent 35f93e44
......@@ -872,7 +872,14 @@ G_MODULE_EXPORT void
game_connect_activate_handler (GtkAction *action,
App *app)
{
OVCCGtkConnectionDialog *dialog = OVCCGTK_CONNECTION_DIALOG (app->connection_dialog);
ovccgtk_connection_dialog_set_message (dialog,
GTK_MESSAGE_INFO,
_("Fill in the fields and hit Connect"),
NULL);
gtk_widget_show (app->connection_dialog);
ovccgtk_connection_dialog_validate (dialog);
}
G_MODULE_EXPORT void
......
......@@ -222,7 +222,7 @@ ovccgtk_connection_dialog_init (OVCCGtkConnectionDialog *self)
/* message */
self->priv->message = ovccgtk_message_info_new (GTK_MESSAGE_INFO,
GTK_BUTTONS_NONE,
_("Fill in the fields and hit Connect"));
NULL);
gtk_box_pack_start (GTK_BOX (vbox), self->priv->message, TRUE, TRUE, 0);
group = gtk_size_group_new (GTK_SIZE_GROUP_HORIZONTAL);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment