Re: Tooltips on GtkTreeView
- From: Binary Chen <binary chen gmail com>
- To: Kevin DeKorte <kdekorte gmail com>
- Cc: gtk-app-devel-list gnome org
- Subject: Re: Tooltips on GtkTreeView
- Date: Mon, 15 Oct 2007 23:14:56 +0800
On Mon, 2007-10-15 at 09:08 -0600, Kevin DeKorte wrote:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi All,
Is there an easy way to set a tooltip on a GtkTreeView for the row that
the user is hovering their cursor over. It is not guaranteed that the
row the user is over is the selected row. Also if the tooltip can be set
on row addition that is fine.
How about connect a motion-notify-event signal and show the tooltips in
in the signal handler?
Seems like:
g_signal_connect(G_OBJECT(gtkblist->treeview), "motion-notify-event",
G_CALLBACK(pidgin_blist_motion_cb), NULL);
in the handler:
gtk_tree_view_get_path_at_pos(GTK_TREE_VIEW(tv), event->x, event->y,
&path, NULL, NULL, NULL);
Thanks,
Kevin
- --
Get my public GnuPG key from
http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x7D0BD5D1
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org
iD8DBQFHE4J36w2kMH0L1dERAtU9AJ9HF5NzcpSHu8eyBs+NtySsBqhxPwCfZJOO
rk2/0oVHAd2NCMvzbNYSLPw=
=dEv8
-----END PGP SIGNATURE-----
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]