| 440 : purple_connection_get_account(purple_connections_get_all()->data)); |
440 : purple_connection_get_account(purple_connections_get_all()->data)); |
| 441 |
441 |
| 442 if (username != NULL) |
442 if (username != NULL) |
| 443 dialog->username = g_strdup(username); |
443 dialog->username = g_strdup(username); |
| 444 |
444 |
| 445 dialog->win = gtk_window_new(GTK_WINDOW_TOPLEVEL); |
445 dialog->win = pidgin_create_window(_("Add Buddy"), PIDGIN_HIG_BORDER, "add_buddy", TRUE); |
| 446 gtk_window_set_role(GTK_WINDOW(dialog->win), "add_buddy"); |
|
| 447 gtk_window_set_title(GTK_WINDOW(dialog->win), _("Add Buddy")); |
|
| 448 gtk_container_set_border_width(GTK_CONTAINER(dialog->win), 12); |
|
| 449 gtk_widget_set_size_request(dialog->win, -1, 400); |
446 gtk_widget_set_size_request(dialog->win, -1, 400); |
| 450 |
447 |
| 451 g_signal_connect(G_OBJECT(dialog->win), "delete_event", |
448 g_signal_connect(G_OBJECT(dialog->win), "delete_event", |
| 452 G_CALLBACK(delete_win_cb), dialog); |
449 G_CALLBACK(delete_win_cb), dialog); |
| 453 |
450 |