Retrieving Gtk_Text Position



I'm trying to receive the position of the cursor in a Gtk_Text widget. I get
the following error while doing so.

---------------
gint position;
position = gtk_editable_get_position(GTK_EDITABLE(textbox));
---------------
Program received signal SIGSEGV, Segmentation fault.
gtk_type_check_object_cast (type_object=0x80730f0, cast_type=38165)
	at gtktypeutils.c:600
(gdb)
---------------

Any ideas? Is there an easier way?

Eric
(btw, anyone happen to know where there's a good tutorial on using GDB?)



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]