Re: [gtkmm] TreeView.set_cursor weirdness
- From: Steve Przepiora <support nyhost net>
- To: Steve Przepiora <steve przepiora org>
- Cc: gtkmm-list <gtkmm-list gnome org>
- Subject: Re: [gtkmm] TreeView.set_cursor weirdness
- Date: 31 Jul 2002 12:11:07 -0400
I figured out why it wasn't working, I had an incorrect Path (the path
string is a 0 based array) however I still am wondering if there is an
easier way to get a Path from a Row?
Steve
On Wed, 2002-07-31 at 11:57, Steve Przepiora wrote:
> Hello I am having a problem with set_cursor, according to the
> documentation calling set_cursor will select the row and start editing
> the column. the following is the section of code I am using:
>
> // create the new row
> Gtk::TreeRow row = *(model->append());
> row[columns.url] = "Add the new URL here.";
> row[columns.editable] = true;
>
> //start editing the new row
> char buff[13];
> snprintf(buff,13,"%d",model->children().size());
> Glib::ustring p(buff);
> const Gtk::TreeModel::Path path(p);
> //list.scroll_to_cell(path,*urlcolumn,false,0,0);
> list.set_cursor(path,*urlcolumn,true);
>
> urlcolumn is the one and only column that is showing in the treeview.
>
> The only thing I can think of is I am creating the Path incorrectly, is
> there an better way to create the Path?
>
> Steve
>
>
> _______________________________________________
> gtkmm-list mailing list
> gtkmm-list gnome org
> http://mail.gnome.org/mailman/listinfo/gtkmm-list
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]