[10161] in The GTK GIMP ToolKit mailing list archive

home help back first fref pref prev next nref lref last post

[gtk-list] Retrieving Gtk_Text Position

daemon@ATHENA.MIT.EDU (Eric Meek)
Mon Nov 16 08:37:36 1998

From: Eric Meek <lukrani@prodigy.net>
Reply-To: lukrani@prodigy.net
To: gtk-list@redhat.com
Date: Mon, 16 Nov 1998 09:31:07 -0500
Resent-From: gtk-list@redhat.com

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?)

-- 
To unsubscribe: mail -s unsubscribe gtk-list-request@redhat.com < /dev/null


home help back first fref pref prev next nref lref last post