From: Vadim Zeitlin Date: Thu, 9 Mar 2006 13:02:30 +0000 (+0000) Subject: compilation fix after last commit; some extra comments X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/57772185bc87d731189d308ae552b83f52c3321d compilation fix after last commit; some extra comments git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37924 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/gtk/listbox.cpp b/src/gtk/listbox.cpp index 42a5fe109a..151b027b34 100644 --- a/src/gtk/listbox.cpp +++ b/src/gtk/listbox.cpp @@ -1019,17 +1019,24 @@ void wxListBox::DoSetFirstItem( int n ) // hittest // ---------------------------------------------------------------------------- -int wxListBox::DoListHitTest(const wxPoint& point) +int wxListBox::DoListHitTest(const wxPoint& point) const { - //Need to translate from master window since it is in client coords + // need to translate from master window since it is in client coords gint binx, biny; gdk_window_get_geometry(gtk_tree_view_get_bin_window(m_treeview), &binx, &biny, NULL, NULL, NULL); GtkTreePath* path; - if(!gtk_tree_view_get_path_at_pos(m_treeview, - point.x - binx, point.y - biny, - &path, NULL, NULL, NULL)) //last two == x,y rel to cell + if ( !gtk_tree_view_get_path_at_pos + ( + m_treeview, + point.x - binx, + point.y - biny, + &path, + NULL, // [out] column (always 0 here) + NULL, // [out] x-coord relative to the cell (not interested) + NULL // [out] y-coord relative to the cell + ) ) { return wxNOT_FOUND; }