In my application Gtk-Rust, I have a GTKNotebook container, with three children, each having a TreeView and below the treeview, a GtkLabel, GtkEntry and GtkButton. When I run the app, as I switch pages the GtkLabel, gets highlighted in blue sometimes. The Entry and button also get selection highlights randomly. See img below
I found the problem. I had the three widgets in a FlowBox and this adds FlowBoxChild containers around each widget that causes this strange behaviour. Using Box instead solves the problem