RE: GtkTreeView focus problem
- From: "Melinda Chin" <melinda cacmedia tv>
- To: "Miller, Ryan D" <MilleRD kscems ksc nasa gov>, <gtk-app-devel-list gnome org>
- Cc:
- Subject: RE: GtkTreeView focus problem
- Date: Mon, 26 Jul 2004 16:16:22 -0400
Hi Ryan,
Thank you for your advice.
I tried your suggestion, but unfortunately,
it did not give me the result I wanted.
I have 2 windows, Window1 and Window2.
Window1 is on top of Window2.
Window2 contains a treeview.
Window1 is smaller is size of window2, where
the treeview in window2 is visible to the user.
What I would like to happen is this.
While window1 is on top of window2,
keep the selected item in the treeview in window2 highlighted
and selected.
Any suggestions ?
Thanks in advance.
- Melinda
-----Original Message-----
From: Miller, Ryan D [mailto:MilleRD kscems ksc nasa gov]
Sent: Tuesday, July 20, 2004 11:02 AM
To: gtk-app-devel-list gnome org
Cc: Melinda Chin
Subject: RE: GtkTreeView focus problem
From: "Melinda Chin" <melinda cacmedia tv>
I have a focus dilemma concerning GtkTreeView.
I have 2 treeviews plus several other widgets in a GtkWindow
and I would like keep the selected items in both treeviews
highlighted reguardless of what or where the user clicks on.
Is there a way to achieve this ?
You can create your own selection function for a TreeView by using a
GtkTreeSelection object. Check out
http://developer.gnome.org/doc/API/2.0/gtk/GtkTreeSelection.html.
Your select function can then return TRUE if you want what the user
clicked on to get selected, or FALSE if you don't - which it sounds like
is what you want.
~Ryan
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]