« Return to Thread: GtkField becoming the interactive search field

Re: GtkField becoming the interactive search field

by CsMAr51 :: Rate this Message:

Reply to Author | View in Thread

Hello Scott,

>> Is someone able to tell me how to make a normal GtkField becoming the
>> interactive search field for a GtkTreeView ?
>
> I am not sure what you mean by GtkField, but if you want to set a search
> column for a GtkTreeView, you can use GtkTreeView::set_search_column().
> Take a look here:
> http://developer.gnome.org/doc/API/2.0/gtk/GtkTreeView.html#gtk-tree-view-set-search-column 
>

When you hit a key on a GtkTreeView (or hit ctrl+f) it opens a field for
interactive search on the GtkTreeView. I've already used
GtkTreeView::set_search_column() to do that, but I want to use a
GtkField that I've created instead of the default one. Here is the
example of what I want: http://csmar51.dyndns.org/php-gtk/replace.png

Thanks.

--
Marion DESNAULT

--
PHP-GTK General Mailing List (http://gtk.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

 « Return to Thread: GtkField becoming the interactive search field