The geometry_widget parameter is ignored from 3.20 onwards [1], not
3.18 as mentioned in the documentation.
[1] commit
08974a1e9a6099a5a94b9d56970dbf96e473ba87
https://bugzilla.gnome.org/show_bug.cgi?id=764321
* gtk_window_set_geometry_hints:
* @window: a #GtkWindow
* @geometry_widget: (allow-none): widget the geometry hints used to be applied to
- * or %NULL. Since 3.18 this argument is ignored and GTK behaves as if %NULL was
+ * or %NULL. Since 3.20 this argument is ignored and GTK behaves as if %NULL was
* set.
* @geometry: (allow-none): struct containing geometry information or %NULL
* @geom_mask: mask indicating which struct fields should be paid attention to