Re: GtkTreeview::get_path_at_pos() possible bug?
| From: | Christian Weiske | Date: | Mon, 12 Feb 2007 06:37:22 +0000 |
| Subject: | Re: GtkTreeview::get_path_at_pos() possible bug? | ||
| References: | 1 | Groups: | php.gtk.general |
| Request: | Send a blank email to php-gtk-general+get-7683@lists.php.net to get a copy of this message | ||
Andre,
> In my experience however the drop destination sometimes was one row off,
> sometimes two, making the result rather unpredictable. Looking at the (x,
> y) coordinates returned by the drop event, I concluded that the y
> coordinate included the height of the column header, and
> get_path_at_pos() *doesn't know this*. Turning off the column headers, or
> subtracting the header height from the y coordinate, cured the problem.
>
> If one does want headers however, that would involve hard coding the
> header height since there is no way I know off to get the actual header
> height - which depends on things like character height and might vary
> between systems...
It's intended behavior:
http://mail.gnome.org/archives/gtkmm-list/2005-January/msg00080.html
--
Regards/Mit freundlichen Grüßen
Christian Weiske
Attachment: [application/pgp-signature] OpenPGP digital signature signature.asc
Attachment: [application/pgp-signature] OpenPGP digital signature signature.asc