Re: [gtk-list] Carriage Return/Line Feed in GTK Text Box
- From: Lyndon Drake <lyndon stat auckland ac nz>
- To: gtk-list redhat com
- Subject: Re: [gtk-list] Carriage Return/Line Feed in GTK Text Box
- Date: Wed, 2 Dec 1998 09:51:41 +1300
On Tue, Dec 01, 1998 at 10:19:37AM -0500, Crampton, Ray wrote:
> I am using a gtk text box in an application where I write characters one at
> a time as they are received over a network connection. Here's my
> gtk_insert_text line:
>
> gtk_text_insert(GTK_TEXT(text_box),NULL,NULL,NULL,buff,1);
>
> Here are some earlier declarations:
>
> char buff[5];
> GtkWidget *main_text_box;
> main_text_box = gtk_text_new (NULL,NULL);
>
> When I try to insert a carriage return / line feed nothing happens. Any help
> in how to handle this so that CR/LF acts "normally" would be greatly
> appreciated.
>
You could try emitting a "key_press_event" signal to the text box, with a
GDK_Return key code.
Lyndon
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]