Use GTK 3.22's way to get screen size
Use gdk_display_get_primary_monitor
instead of gdk_screen_get_monitor_geometry
;
use gdk_monitor_get_width_mm
instead of gdk_screen_get_monitor_width_mm
; which is current GTK recommanded, also can avoid the compile warnings.