| 323 gtk_entry_set_text(GTK_ENTRY(pass), ""); |
323 gtk_entry_set_text(GTK_ENTRY(pass), ""); |
| 324 return; |
324 return; |
| 325 } |
325 } |
| 326 |
326 |
| 327 mainwindow = gtk_window_new(GTK_WINDOW_TOPLEVEL); |
327 mainwindow = gtk_window_new(GTK_WINDOW_TOPLEVEL); |
| |
328 /* Set the WM name and class */ |
| |
329 gtk_window_set_wmclass(GTK_WINDOW(mainwindow), "login", |
| |
330 "Gaim"); |
| |
331 /* Disallow resizing */ |
| |
332 gtk_window_set_policy(GTK_WINDOW(mainwindow), FALSE, FALSE, TRUE); |
| 328 gtk_widget_realize(mainwindow); |
333 gtk_widget_realize(mainwindow); |
| 329 signon = gtk_button_new_with_label(_("Signon")); |
334 signon = gtk_button_new_with_label(_("Signon")); |
| 330 cancel = gtk_button_new_with_label(_("Cancel")); |
335 cancel = gtk_button_new_with_label(_("Cancel")); |
| 331 reg = gtk_button_new_with_label(_("Register")); |
336 reg = gtk_button_new_with_label(_("Register")); |
| 332 options = gtk_button_new_with_label(_("Options")); |
337 options = gtk_button_new_with_label(_("Options")); |
| 456 gtk_container_border_width(GTK_CONTAINER(sbox), 10); |
461 gtk_container_border_width(GTK_CONTAINER(sbox), 10); |
| 457 |
462 |
| 458 gtk_container_add(GTK_CONTAINER(mainwindow),table ); |
463 gtk_container_add(GTK_CONTAINER(mainwindow),table ); |
| 459 |
464 |
| 460 gtk_widget_show(table); |
465 gtk_widget_show(table); |
| 461 gtk_window_set_title(GTK_WINDOW(mainwindow),_("Gaim - Login")); |
466 gtk_window_set_title(GTK_WINDOW(mainwindow),_("Gaim - Login")); |
| 462 |
|
| 463 |
467 |
| 464 gtk_toggle_button_set_state(GTK_TOGGLE_BUTTON(remember), (general_options & OPT_GEN_REMEMBER_PASS)); |
468 gtk_toggle_button_set_state(GTK_TOGGLE_BUTTON(remember), (general_options & OPT_GEN_REMEMBER_PASS)); |
| 465 |
469 |
| 466 if (current_user) { |
470 if (current_user) { |
| 467 sprintf(debug_buff, "Current user is %s\n", current_user->username); |
471 sprintf(debug_buff, "Current user is %s\n", current_user->username); |