Re: "changed" signal operation for GtkTreeSelection
- From: Ron Lockwood-Childs <rchilds vctlabs com>
- To: gtk-app-devel-list gnome org
- Subject: Re: "changed" signal operation for GtkTreeSelection
- Date: Mon, 02 Feb 2004 18:13:26 -0800
Hello again,
I found in the FAQ information about capturing the occasion when a user
selects a row in a ListStore -- providing a callback for the "changed"
Instead of using the selection changed signal, I decided to allow the
user to select an item, then click on it again to switch to the new
path. So, the application watches the "button_click_event" on the
TreeView (returns false to let the TreeView do what it normally does
with the button press), looks to see what row was clicked on
(GtkTreeView::get_path_at_pos), compares that to which row is selected
(GtkTreeView::get_cursor) and changes the directory if they match.
Just a follow-up.. Hope it helps someone else.
--
Ron Lockwood-Childs
VCT Labs, Inc.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]