simplify gtk3/4 code in create_window

fix gtk4 build

(0) -1000 -300 -100 -30 -10 -2 +2 tip

mercurial