Re: 3 questions with GtkListView
- From: Arno <dark-arno ifrance com>
- To: Tristan Van Berkom <vantr touchtunes com>
- Cc: Mailling List gtk-app-devel-list <gtk-app-devel-list gnome org>
- Subject: Re: 3 questions with GtkListView
- Date: Wed, 28 Aug 2002 23:56:03 +0200
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
<http://developer.gnome.org/doc/API/2.0/gtk/gtktreeview.html#gtk-tree-view-set-enable-search> (GtkTreeView
<http://developer.gnome.org/doc/API/2.0/gtk/gtktreeview.html> *tree_view,
gboolean
<http://developer.gnome.org/doc/API/2.0/glib/glib-basic-types.html#gboolean> enable_search);
void gtk_tree_view_set_search_column
<http://developer.gnome.org/doc/API/2.0/gtk/gtktreeview.html#gtk-tree-view-set-search-column> (GtkTreeView
<http://developer.gnome.org/doc/API/2.0/gtk/gtktreeview.html> *tree_view,
gint
<http://developer.gnome.org/doc/API/2.0/glib/glib-basic-types.html#gint> column);
GtkTreeViewSearchEqualFunc <http://developer.gnome.org/doc/API/2.0/gtk/gtktreeview.html#GtkTreeViewSearchEqualFunc>
gtk_tree_view_get_search_equal_func
<http://developer.gnome.org/doc/API/2.0/gtk/gtktreeview.html#gtk-tree-view-get-search-equal-func>
(GtkTreeView
<http://developer.gnome.org/doc/API/2.0/gtk/gtktreeview.html> *tree_view);
void gtk_tree_view_set_search_equal_func
<http://developer.gnome.org/doc/API/2.0/gtk/gtktreeview.html#gtk-tree-view-set-search-equal-func>
(GtkTreeView
<http://developer.gnome.org/doc/API/2.0/gtk/gtktreeview.html> *tree_view,
GtkTreeViewSearchEqualFunc
<http://developer.gnome.org/doc/API/2.0/gtk/gtktreeview.html#GtkTreeViewSearchEqualFunc> search_equal_func,
gpointer
<http://developer.gnome.org/doc/API/2.0/glib/glib-basic-types.html#gpointer> search_user_data,
GtkDestroyNotify
<http://developer.gnome.org/doc/API/2.0/gtk/gtk-types.html#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.
Arno wrote:
Arno wrote:
Hello,
I want to do 3 things with GtkListView but I have some problems.
First, I want to change the background of a line. In fact I want to do
a function that it take a number (the number of the line) and it
change the background of this line.
The second one it's to make search in this GtlListView. There is a
field that give the number of the line and I would like to find a line
by this number. How could I do this. For the moment, I use a
GtkTreeIter to traverse the list but I think that there is a better
solution.
The third and last point is to hide some line in the GtkListView. The
goal is to hide the line which doesn't match the pattern. And after
when I reinitialise the list, I must only to unhide the line.
So if you could help me.
Thank you
Arno
Anybody could help me because I don't find solutions and I can't
continue my project.
Arno
______________________________________________________________________________
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]