Re: GtkTreeView +ListStoreModel +Column Highlighting
- From: kilobug freesurf fr (Gaël Le Mignot)
- To: "HOCHSTETLER, BRUCE W. (JSC-DV3/T) (TSI)" <bruce w hochstetler1 jsc nasa gov>
- Cc: "'gtk-app-devel-list gnome org'" <gtk-app-devel-list gnome org>
- Subject: Re: GtkTreeView +ListStoreModel +Column Highlighting
- Date: Thu, 01 Apr 2004 15:11:49 +0200
Hello HOCHSTETLER,!
Tue, 23 Mar 2004 10:50:17 -0600, you wrote:
Hi,
I've got a treeview that uses a liststore model. The liststore is comprised
of {GDK_TYPE_PIXBUF and G_TYPE_STRING}. Each pair is placed in multiple
columns side-by-side:
[icon + name] [icon + name]
[icon + name] [icon + name]
...
I want to treat each pair as a single column, but more importantly I want
only those pairs to be selected, e.g. highlighted. I've connected the signal
'button-press' on the treeview, it returns TRUE to stop the handler from
propagating. I've tried various calls in the handler to get a highlighted
column. gtk_paint_focus, gtk_paint_flat_box, gdk_draw_rectangle... nothing
appears. Anybody have any ideas how to do this? Is there an easier way to do
this? Any suggestions would help.
You can group several renderers in the same column, using the
gtk_tree_view_column_pack_start and gtk_tree_view_column_pack_end
functions.
--
Gael Le Mignot "Kilobug" - kilobug nerim net - http://kilobug.free.fr
GSM : 06.71.47.18.22 (in France) ICQ UIN : 7299959
Fingerprint : 1F2C 9804 7505 79DF 95E6 7323 B66B F67B 7103 C5DA
Member of HurdFr: http://hurdfr.org - The GNU Hurd: http://hurd.gnu.org
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]