X-Git-Url: https://git.distorted.org.uk/~mdw/disorder/blobdiff_plain/f44417cf9d3d5ddea2f0dfb2e238a2826eb6691d..0eaf64e8d26c08228401fa89741c63fc2ff064c3:/disobedience/login.c diff --git a/disobedience/login.c b/disobedience/login.c index f5ef053..b1047d6 100644 --- a/disobedience/login.c +++ b/disobedience/login.c @@ -27,6 +27,10 @@ * window remains. * * It you hit Cancel then the window disappears without saving anything. + * + * TODO + * - escape and return should work + * - cancel/close should be consistent with properties */ #include "disobedience.h" @@ -153,7 +157,7 @@ static void login_ok(GtkButton attribute((unused)) *button, if(!disorder_connect(c)) { /* Success; save the config and start using it */ login_save_config(); - reset(); + logged_in(); /* Pop down login window */ gtk_widget_destroy(login_window); } else { @@ -234,7 +238,7 @@ void login_box(void) { TRUE/*expand*/, TRUE/*fill*/, 1/*padding*/); gtk_box_pack_start(GTK_BOX(vbox), buttonbox, FALSE/*expand*/, FALSE/*fill*/, 1/*padding*/); - gtk_container_add(GTK_CONTAINER(login_window), vbox); + gtk_container_add(GTK_CONTAINER(login_window), frame_widget(vbox, NULL)); gtk_window_set_transient_for(GTK_WINDOW(login_window), GTK_WINDOW(toplevel)); gtk_widget_show_all(login_window);