|
Packit Service |
fb6fa5 |
#include <gtk/gtk.h>
|
|
Packit Service |
fb6fa5 |
#include "widgets.h"
|
|
Packit Service |
fb6fa5 |
|
|
Packit Service |
fb6fa5 |
GtkWidget *
|
|
Packit Service |
fb6fa5 |
text_view_new (void)
|
|
Packit Service |
fb6fa5 |
{
|
|
Packit Service |
fb6fa5 |
GtkWidget *sw;
|
|
Packit Service |
fb6fa5 |
GtkWidget *text_view;
|
|
Packit Service |
fb6fa5 |
GtkTextBuffer *buffer;
|
|
Packit Service |
fb6fa5 |
|
|
Packit Service |
fb6fa5 |
sw = gtk_scrolled_window_new (NULL, NULL);
|
|
Packit Service |
fb6fa5 |
gtk_scrolled_window_set_shadow_type (GTK_SCROLLED_WINDOW (sw), GTK_SHADOW_IN);
|
|
Packit Service |
fb6fa5 |
|
|
Packit Service |
fb6fa5 |
text_view = gtk_text_view_new ();
|
|
Packit Service |
fb6fa5 |
gtk_widget_set_size_request (text_view, 400, 300);
|
|
Packit Service |
fb6fa5 |
gtk_container_add (GTK_CONTAINER (sw), text_view);
|
|
Packit Service |
fb6fa5 |
|
|
Packit Service |
fb6fa5 |
buffer = gtk_text_view_get_buffer (GTK_TEXT_VIEW (text_view));
|
|
Packit Service |
fb6fa5 |
|
|
Packit Service |
fb6fa5 |
gtk_text_buffer_set_text (buffer,
|
|
Packit Service |
fb6fa5 |
"In felaweshipe, and pilgrimes were they alle,\n"
|
|
Packit Service |
fb6fa5 |
"That toward Caunterbury wolden ryde.\n"
|
|
Packit Service |
fb6fa5 |
"The chambres and the stables weren wyde,\n"
|
|
Packit Service |
fb6fa5 |
"And wel we weren esed atte beste;\n"
|
|
Packit Service |
fb6fa5 |
"And shortly, whan the sonne was to reste,\n"
|
|
Packit Service |
fb6fa5 |
"\n"
|
|
Packit Service |
fb6fa5 |
"So hadde I spoken with hem everychon \n"
|
|
Packit Service |
fb6fa5 |
"That I was of hir felaweshipe anon, \n"
|
|
Packit Service |
fb6fa5 |
"And made forward erly for to ryse \n"
|
|
Packit Service |
fb6fa5 |
"To take our wey, ther as I yow devyse. \n"
|
|
Packit Service |
fb6fa5 |
" But nathelees, whil I have tyme and space, \n"
|
|
Packit Service |
fb6fa5 |
" \n"
|
|
Packit Service |
fb6fa5 |
"Er that I ferther in this tale pace, \n"
|
|
Packit Service |
fb6fa5 |
"Me thynketh it acordaunt to resoun \n"
|
|
Packit Service |
fb6fa5 |
"To telle yow al the condicioun \n"
|
|
Packit Service |
fb6fa5 |
"Of ech of hem, so as it semed me, \n"
|
|
Packit Service |
fb6fa5 |
"And whiche they weren, and of what degree, \n"
|
|
Packit Service |
fb6fa5 |
" \n"
|
|
Packit Service |
fb6fa5 |
"And eek in what array that they were inne; \n"
|
|
Packit Service |
fb6fa5 |
"And at a knyght than wol I first bigynne. \n"
|
|
Packit Service |
fb6fa5 |
" A knyght ther was, and that a worthy man, \n"
|
|
Packit Service |
fb6fa5 |
"That fro the tyme that he first bigan \n"
|
|
Packit Service |
fb6fa5 |
"To riden out, he loved chivalrie, \n"
|
|
Packit Service |
fb6fa5 |
" \n"
|
|
Packit Service |
fb6fa5 |
"Trouthe and honour, fredom and curteisie. \n"
|
|
Packit Service |
fb6fa5 |
"Ful worthy was he in his lordes werre, \n"
|
|
Packit Service |
fb6fa5 |
" \n"
|
|
Packit Service |
fb6fa5 |
"And therto hadde he riden, no man ferre, \n"
|
|
Packit Service |
fb6fa5 |
"As wel in Cristendom as in Hethenesse, \n"
|
|
Packit Service |
fb6fa5 |
"And evere honoured for his worthynesse. \n"
|
|
Packit Service |
fb6fa5 |
" \n"
|
|
Packit Service |
fb6fa5 |
" At Alisaundre he was, whan it was wonne; \n"
|
|
Packit Service |
fb6fa5 |
"Ful ofte tyme he hadde the bord bigonne \n"
|
|
Packit Service |
fb6fa5 |
"Aboven alle nacions in Pruce; \n"
|
|
Packit Service |
fb6fa5 |
"In Lettow hadde he reysed, and in Ruce, \n"
|
|
Packit Service |
fb6fa5 |
"No cristen man so ofte of his degree. \n",
|
|
Packit Service |
fb6fa5 |
-1);
|
|
Packit Service |
fb6fa5 |
|
|
Packit Service |
fb6fa5 |
return sw;
|
|
Packit Service |
fb6fa5 |
}
|