Re: GtkTextBuffer: how to insert new line?
- From: Felix Kater <f kater2 gmx net>
- To: Paolo Costabel <paolo zebradevelopment com>
- Cc: gtk-app-devel-list gnome org
- Subject: Re: GtkTextBuffer: how to insert new line?
- Date: Fri, 28 Jan 2005 00:28:06 +0100
Paolo Costabel:
I just tried this:
gtk_text_buffer_insert_at_cursor(buffer, "\n\n\n\n", 4);
and works fine here (gtk 2.4.10).
What call are you using?
Hm.
a)
First I used gtk_text_buffer_insert_at_cursor(buffer, "\n\0", -1);
This didn't work (maybe the 0 termination is not right this way?)
b)
then I just tried gtk_text_buffer_insert_at_cursor(buffer, "\n", -1);
which is of course wrong for what I realize now (missing 0 termination).
c)
Why are you using 4 times "\n"? Is it creating 4 new lines or just one?
Felix
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]