Re: GtkTreeView in gtk2



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hey

Why? Whats the problem with the GtkTreeSelection API? Seems very straight
forward to me? All you have to do is...

view = gtk_tree_view_new (blah);
sel = gtk_tree_selection_get (view);
g_signal_connect (G_OBJECT (sel), "changed", blah, blah, blah);

See the signature of the changed callback for parameters passed.

However, you could use the GtkTreeModel::row_changed signal if u want a simpler
interface, I think.


Hope that helps.
Archit Baweja

Tim O'Brien <timob paradise net nz> writes:

Hi,

I am trying to use a GtkTreeView / GtkListStore in GTK2 to implement a
simple list box,is there anyway to easily get the selected position
(number)in the list from a callback func connected to "cursor_changed"
signal? (instead of going thru tree_get_selection/selection_get_selecd)


Tim

_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list



- -- 
Homepage: http://symonds.net/~bighead/
GPG Key: http://symonds.net/~bighead/bighead-gpg-key.asc
Gnome in Hindi: http://symonds.net/~bighead/gnome/gnome-devnag-howto/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: Processed by Mailcrypt 3.5.6 and Gnu Privacy Guard <http://www.gnupg.org/>

iD8DBQE87G942rWNPKmGjMcRAmCRAJ40zAQ/yBd8BgnVCmsfpMIRQx8X9QCfTNvh
Ru6YlBbPy3c3HwUpi0ycdpY=
=Mze6
-----END PGP SIGNATURE-----



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]