Re: Highlight(activating?) a specific row in a list

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

 



On Mon, 2007-05-14 at 20:19 +0000, 999alfred@xxxxxxxxxxx wrote:
> I have a project where I periodically update a list tree view. Now when ever I update the list, is there was a row highlighted by a mouse single click, the highlight disappears. Now, I wrote code to be able to identify the old row as the new store is built. But, my question is how is the best way to activate that row?
> I looked at 
> (void gtk_tree_view_row_activated         (GtkTreeView *tree_view,
>                                                          GtkTreePath *path,
>                                                          GtkTreeViewColumn *column);
> 
> But, How do I get the GtkTreeViewColumn argument? And why is it a column and not a row?

you really want to use the GtkTreeSelection object:

  http://developer.gnome.org/doc/API/2.0/gtk/GtkTreeSelection.html

and the gtk_tree_selection_select_iter()/_path() functions.

ciao,
 Emmanuele.

-- 
Emmanuele Bassi,  E: ebassi@xxxxxxxxx
W: http://www.emmanuelebassi.net
B: http://log.emmanuelebassi.net

_______________________________________________
gtk-list mailing list
gtk-list@xxxxxxxxx
http://mail.gnome.org/mailman/listinfo/gtk-list

[Index of Archives]     [Touch Screen Library]     [GIMP Users]     [Gnome]     [KDE]     [Yosemite News]     [Steve's Art]

  Powered by Linux