liststore issue 2 - which 'path' comes from signal

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

liststore issue 2 - which 'path' comes from signal

Gtk+ - Apps Dev mailing list
according to the docs the path reference is

edited signal = path
editing-started = path
changed = path_string

which I thought meant that path would be a treepath (ie: an object) and
path_string would be a reference to the row (an integer in the case of a
simple liststore)

However in all three cases the value is the same ie: an integer, not an
object

Can anyone clarify this

thanks

Mike
_______________________________________________
gtk-app-devel-list mailing list
[hidden email]
https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
Reply | Threaded
Open this post in threaded view
|

Re: liststore issue 2 - which 'path' comes from signal

Reuben Rissler


On 02/27/2019 06:51 AM, Mike Martin via gtk-app-devel-list wrote:
> according to the docs the path reference is
>
> edited signal = path
> editing-started = path
These above two look like something a treeview uses
> changed = path_string
And this one I assume to be coming from a CellRendererCombo? So this
would actually be describing the combo renderer's model path. Which is
not necessarily the same as the TreeView model.
>
> which I thought meant that path would be a treepath (ie: an object) and
> path_string would be a reference to the row (an integer in the case of a
> simple liststore)
no, paths are not objects, they are integers telling which row was affected
>
> However in all three cases the value is the same ie: an integer, not an
> object
>
> Can anyone clarify this
That is what I found.
>
> thanks
>
> Mike
> _______________________________________________
> gtk-app-devel-list mailing list
> [hidden email]
> https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
>

_______________________________________________
gtk-app-devel-list mailing list
[hidden email]
https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list