Re: 3 questions with GtkListView



Sorry for the preceding message, there was a problem with the cut and paste and the conversion to plain text in my client :) I made the good change.

Arno wrote:

Tristan Van Berkom wrote:

most container widgets provide a "forall" fuction (or like your
GtkTreeIter)
I assume that internally the GtkListView probably uses a GList to keep
track
of its items (use g_list_find_custom()).

I've never worked with a GtkListView before but my suggestion is to
check out the source and see if what you want to do is supported and
if not; copy the framework of GtkListView or inherit from GtkListView
and write a widget that does.

    -Tristan

I found this function :

void        gtk_tree_view_set_enable_search (GtkTreeView *tree_view,
                                            gboolean enable_search);
void        gtk_tree_view_set_search_column (GtkTreeView *tree_view,
                                            gint column);
GtkTreeViewSearchEqualFunc gtk_tree_view_get_search_equal_func (GtkTreeView *tree_view);
void        gtk_tree_view_set_search_equal_func (GtkTreeView *tree_view,
GtkTreeViewSearchEqualFunc search_equal_func,
                                            gpointer search_user_data,
GtkDestroyNotify search_destroy);


But I don't how work the last one. And I think it's the more important function to find one or more line in the list.




______________________________________________________________________________
Pour mieux recevoir vos emails, utilisez un PC plus performant !
Découvrez la nouvelle gamme DELL en exclusivité sur i (france)
http://www.ifrance.com/_reloc/signedell




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