QGtkStyle: use gtk_widget_get_parent() and gtk_widget_is_toplevel()