GTK : CpuFreq : Avoid copy-paste with an intermediate func to create similar menu