[gtk-list] Re: Retrieving Gtk_Text Position



Eric Meek wrote:
> 
> 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));

What about  
     position = GTK_EDITABLE (textbox)->current_pos; ?

-- 
Marc
** ERROR **: sigsegv caught



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