- return (window == GetGtkBinWindow());
-}
-
-GdkWindow* wxListBox::GetGtkBinWindow()
-{
- // GtkTreeView has 2 GdkWindows (just like GtkPizza and
- // any other GtkWidget that can scroll). The one on top
- // is usually called "->bin_window" and is the one we are
- // looking for here. Since GtkTreeView hides this in the
- // private data section, we assume that "->window" only has
- // one child window, namely, the "->bin_window".
-
- GdkWindow *window = GTK_WIDGET(m_treeview)->window;
- if (window == NULL)
- return NULL;
-
- GList *children = gdk_window_peek_children( window );
- if (g_list_length(children) == 0)
- return NULL;
-
- GdkWindow *bin_window = (GdkWindow*) g_list_nth_data( children, 0 );
- return bin_window;